radgrid

Save data from telerik radgrid to database

萝らか妹 提交于 2021-02-11 16:49:52
问题 Hi I'm new using telerik rad controls an asp development and I need some help. I have a radGrid wich is populated with data when a button is pressed, I found a solution here in the forum for selecting a row of the radGrid and taking the values of each cell, but now I want to know how to save this values into my database using entity framework. What I've been trying is to put the values into strings and then in my saving method call the strings, but when I execute the program I add two

Save data from telerik radgrid to database

 ̄綄美尐妖づ 提交于 2021-02-11 16:47:17
问题 Hi I'm new using telerik rad controls an asp development and I need some help. I have a radGrid wich is populated with data when a button is pressed, I found a solution here in the forum for selecting a row of the radGrid and taking the values of each cell, but now I want to know how to save this values into my database using entity framework. What I've been trying is to put the values into strings and then in my saving method call the strings, but when I execute the program I add two

How to bind data to radcombobox inside grid EditItemTemplate

谁说胖子不能爱 提交于 2021-01-29 15:47:28
问题 I try to bind data to a radcombobox from server side: Here is my grid: <telerik:RadGrid ID="gvWebUsers" runat="server" OnNeedDataSource="gvWebUsers_NeedDataSource" OnItemCreated="gvWebUsers_ItemCreated" Skin="Gray" AutoGenerateColumns="false" OnItemDataBound="gvWebUsers_ItemDataBound" AllowAutomaticUpdates="true" AllowPaging="true" CssClass="SettingsGrid" Width="99.7%"> <MasterTableView DataKeyNames="UserID" PageSize="15" EditMode="InPlace" > <Columns> <telerik:GridTemplateColumn HeaderText=

How to calculate RadGrid cell value on Client side?

主宰稳场 提交于 2020-01-23 03:42:05
问题 I have telerik RadGrid which is in edit mode. Each cell contains NumericTextBox. Is it possible to calculate one cell based on other cells in the same row (on client side). For example if I have a row which contains cells like price and item I want on every change to calculate total price but on client side, without going to server side. Is this possible with RadGrid? 回答1: Thanks for all your answers but I found the solution here at telerik forum. I'll just paste the solution here in case

FindControl in GridTemplateColumn in RadGrid

≡放荡痞女 提交于 2020-01-15 11:43:10
问题 Does anyone know how to FindControl in the GridTemplateColumn in a RadGrid. I can get it to find it find in EditForm. But it can't seem to find it in the GridTemplateColumn. I am trying to do this in the ItemDataBound event. The if statement never becomes true and never gets into to FindControl. This is what I am trying: if (e.Item is GridDataItem) { GridDataItem item = (GridDataItem)e.Item; DropDownList ddlAccountLookup = (DropDownList)item["Account"].FindControl("ddlAccountLookup"); }

FindControl in GridTemplateColumn in RadGrid

血红的双手。 提交于 2020-01-15 11:42:20
问题 Does anyone know how to FindControl in the GridTemplateColumn in a RadGrid. I can get it to find it find in EditForm. But it can't seem to find it in the GridTemplateColumn. I am trying to do this in the ItemDataBound event. The if statement never becomes true and never gets into to FindControl. This is what I am trying: if (e.Item is GridDataItem) { GridDataItem item = (GridDataItem)e.Item; DropDownList ddlAccountLookup = (DropDownList)item["Account"].FindControl("ddlAccountLookup"); }

Index Change event for Combobox of gridtemplateColumn in Telerik

别说谁变了你拦得住时间么 提交于 2020-01-05 08:12:34
问题 I can write a code. In this I can take a Template Column & in this I build a RadCombobox. When it's Index changed I want to affect the below text box. Link the selected value of the Combo box is set as Text on Below TextBox. Combo Box & Text Box are different Controls of Different Template Column. I can Write Control of Combo box like this : <telerik:RadComboBox ID="cmbGID" runat="server" DataSourceID="SqlDataSource8" DataTextField="Name" DataValueField="ID" AutoPostBack="True"

telerik radGrid - persist client state on sort/paging/filter

若如初见. 提交于 2020-01-03 18:35:13
问题 Even in this ajax example which I really like the look of, when ever the top level grid is sorted the "state" of what you were doing "disappears" For example, Open the first person's row (Nancy Davolio) so you can see the Sales grid Sort by Order Total in the Sales grid Sort by Birth Date in the top level grid Nancy Davoilo should now be second. Open her row. The sales grid is no longer sorted by Order Total This may seem trivial, or that i'm being picky; However: If I have some text box(or

How to create separate DetailTable on each row in a RadGrid?

让人想犯罪 __ 提交于 2019-12-25 08:11:20
问题 I have a telerik radgrid where columns and detail tables are declared like: <telerik:RadGrid> <Columns> <telerik:GridBoundColumn/> <telerik:GridBoundColumn/> </Columns> <DetailTables> <telerik:GridTableView <Columns> <telerik:GridBoundColumn/> <telerik:GridBoundColumn/> </Columns> </telerik:GridTableView </DetailTables> </telerik:RadGrid> Which gives a nested grid like this: Now, what I want is to be able to specify a detail table (those sub tables) per row, programmatically. (I cannot be