radgrid

Telerik radGrid - possible to do use AllowAutomaticUpdates when Datasource = a dataset?

淺唱寂寞╮ 提交于 2019-12-06 08:25:48
问题 I am setting the datasource of my radGrid to a dataset (that I have stored in session). I have enabled AllowAutomaticUpdates and EnableViewState, implemented NeedDataSource, set DatakeyNames, etc. (see code below) However, when I press the Edit button and make a change and press the Update link, the record does not update and leave Edit Mode.....it just stays in edit mode, and no error of any kind occurs. So, the question is....does anyone know if radGrid with EnableViewstate even supports

How to calculate RadGrid cell value on Client side?

和自甴很熟 提交于 2019-12-04 19:41:14
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? Thanks for all your answers but I found the solution here at telerik forum . I'll just paste the solution here in case that somebody get stuck on the same issue. ASPX: <Columns> <rad:GridTemplateColumn UniqueName="Price"

Telerik RadGrid - How do I default to edit mode?

别等时光非礼了梦想. 提交于 2019-12-04 04:59:14
I want to make the items of my RadGrid be editable on page load. I've tried both methods here http://www.telerik.com/help/aspnet/grid/grddefaulteditmodeforgriditemsoninitialload.html but neither have any effect. The 2nd method for example, shown below where the Edit property is set on the ItemCreated event, causes the Edit mode to be set true (verified by debugger) but it has no effect on the results when the page is displayed. Anyone have any ideas what I'm doing wrong? protected void RadGrid1_ItemCreated(object sender, Telerik.WebControls.GridItemEventArgs e) { if (!Page.IsPostBack && e.Item

How do I set Telerik RadGrid to Edit mode by default? (ASP.NET)

两盒软妹~` 提交于 2019-12-03 15:05:07
I have a checkbox column in a RadGrid that I want the user to be able to check/uncheck it and set the attached property. When the grid renders however, the checkboxes are disabled, because the grid is not in "edit mode". All the examples I'm finding want me to go through a lengthy process of selecting the record, putting it into edit mode, changing the value, saving the value.... yada yada yada... I just want the whole grid to be in edit mode (or the column, or whatever works) from the get-go, so the end user can make a one-click change to the data value. I know there must be a way to do this,

How do I programatically put telerik rad grid in “add new” mode on page load

做~自己de王妃 提交于 2019-12-03 06:24:43
Seems like this should be easy but I must just be missing something... I have a Telerik RadGrid on a page that allows inline editing. How do I programatically put the grid into edit mode to insert a new row into the grid. When the page loads I would like show the existing data and also display 1 empty row that a user can easily type into to add a new record to the table. (I don't want them to have to push the add new button) Todd Found the answer while back.... updating this in case others need it RadGrid1.MasterTableView.IsItemInserted = true; RadGrid1.Rebind(); Lifesaver!! You can set

Get rows of a Telerik RadGrid

a 夏天 提交于 2019-11-30 17:37:41
I'm working on a RadGrid, and I want to access its rows but it seems it does not have a .Rows property. Here's what I have tried until now: How can I access rgCustomers 's Rows collection? I want to add a button to each row. According to Telerik's documentation , "Each dynamic row in the grid represents a record from the specified data source. Dynamic rows are represented by the GridDataItem class (a descendent of GridItem). Each GridTableView has a set of rows (the Items collection) of type GridDataItem." So you want to use the Items collection of the grid, which is a collection of

Get rows of a Telerik RadGrid

谁说我不能喝 提交于 2019-11-30 16:49:48
问题 I'm working on a RadGrid, and I want to access its rows but it seems it does not have a .Rows property. Here's what I have tried until now: How can I access rgCustomers 's Rows collection? I want to add a button to each row. 回答1: According to Telerik's documentation, "Each dynamic row in the grid represents a record from the specified data source. Dynamic rows are represented by the GridDataItem class (a descendent of GridItem). Each GridTableView has a set of rows (the Items collection) of

“Cannot unregister UpdatePanel with ID 'xxx' since it was not registered with the ScriptManager… ” in RadGrid while editing record

血红的双手。 提交于 2019-11-29 01:50:16
Let me cut to the chase. My scenario is as follows: I have custom added fields to filter the RadGrid and filtering works perfectly. The problem comes when I want to edit record using EditForm inside RadGrid. It used to work fine, but then I had some problems with selecting the right row (I was always getting the wrong row selected) so this is what I did to fix it. So, my RadGrid with filters looks like this: What I did is to use the Session which will help us to determine later if the filtered RadGrid DataSource was initiated or it was the default one. protected void btnSearch_Click(object

“Cannot unregister UpdatePanel with ID 'xxx' since it was not registered with the ScriptManager… ” in RadGrid while editing record

梦想的初衷 提交于 2019-11-27 16:12:35
问题 Let me cut to the chase. My scenario is as follows: I have custom added fields to filter the RadGrid and filtering works perfectly. The problem comes when I want to edit record using EditForm inside RadGrid. It used to work fine, but then I had some problems with selecting the right row (I was always getting the wrong row selected) so this is what I did to fix it. So, my RadGrid with filters looks like this: What I did is to use the Session which will help us to determine later if the

Cannot identify selected page in telerik grid. I need selected page to be underlined. Help me in this

允我心安 提交于 2019-11-26 23:43:40
问题 For my telerik radgrid I am using numeric pages. I can see the page numbers. But I am not able to identify the selected page. All the page numbers remais alike after selecting the page. I need the selected page number to be underlined. Help me in this 回答1: There is a control called PagerTextFormat that allows you to display current page, total page number, total record number and etc. After adding your grid (radgrid), you can manually define a PagerStyle block in aspx side and put your code