protected void Page_Init() { ConfigureGrid(); } private void ConfigureGrid() { try { OrderTypeRankingGrid.AddNeedDataSourceEventHandler(NeedDataSource); OrderTypeRankingGrid.AddGridCommandEventHandler(DataGrid_ItemCommand); OrderTypeRankingGrid.PreRender += new EventHandler(OrderTypeRankingGrid_PreRender); OrderTypeRankingGrid.AllowColumnsReorder = false; OrderTypeRankingGrid.GridHeaderText = "Order Type Ranking"; var masterView = OrderTypeRankingGrid.ConfigureMasterTableView("vDivisionOrderTypeRanking", new string[] { "DivisionOrderTypeRankId","CategoryCode", "PurposeCode", "ReasonCode", "ReasonDescription"}); masterView.AllowFilteringByColumn = true; masterView.AllowSorting = true; masterView.FullEditMode = true; masterView.EditMode = GridEditMode.InPlace; masterView.EnableShowHideColumns = true; masterView.SetPaging(GridPagerMode.NextPrevAndNumeric); masterView.GridTableView.ShowHeader = true; masterView.ShowHeader = true; masterView.ShowFooter = true; masterView.ShowHeadersWhenNoRecords = true; masterView.AllowPaging = true; //masterView.PageSize = 50; masterView.AddNgmCommandButton(NgmButtonType.Save, "btnSave", null, null, null, Unit.Pixel(50)); masterView.AddNgmCommandButton(NgmButtonType.Cancel, "btnCancel", null, null, null, Unit.Pixel(50)); masterView.CommandItemDisplay = GridCommandItemDisplay.Bottom; if (!IsPostBack) //must check for postback; otherwise, columns will be duplicated { masterView.AddBoundColumn("CategoryCode", "Category Code", "CategoryCode", true, false, true, Unit.Percentage(7.0)); masterView.AddBoundColumn("PurposeCode", "Purpose Code", "PurposeCode", true, false, true, Unit.Percentage(7.0)); masterView.AddBoundColumn("ReasonCode", "Reason Code", "ReasonCode", true, false, true, Unit.Percentage(7.0)); masterView.AddBoundColumn("ReasonDescription", "Reason Description", "ReasonDescription", true, false, true, Unit.Percentage(7.0)); masterView.AddNumericColumn("OrderTypeRank", "Rank", "OrderTypeRank", false, false, true, Unit.Percentage(7.0), typeof(int),NumericType.Number,"{0:N0}", 10); } } catch (System.Exception ex) { base.AddException(ex); } } protected void OrderTypeRankingGrid_PreRender(object sender, EventArgs e) { if (IsPostBack) { for (int i = 0; i < OrderTypeRankingGrid.PageCount; i++) { OrderTypeRankingGrid.EditIndexes.Add(i); } OrderTypeRankingGrid.Rebind(); } } protected void NeedDataSource(object source, Telerik.Web.UI.GridNeedDataSourceEventArgs e) { try { if (IsPostBack) { if (!e.IsFromDetailTable && (this.productDivision == 1 || this.productDivision == 2)) { productDivision = long.Parse(cboxDivision.SelectedValue.ToString()); IDivisionOrderTypeRankService divisionOrderTypeRankServiceAgent = null; divisionOrderTypeRankServiceAgent = (IDivisionOrderTypeRankService)ContextRegistry.GetContext().GetObject("DivisionOrderTypeRankServiceAgent"); IList<DivisionOrderTypeRankDTO> divisionOrderTypeRankDTOs = divisionOrderTypeRankServiceAgent.GetDivisionOrderTypeRankByDivision(productDivision); if (divisionOrderTypeRankDTOs.Count > 1) { var divOrderTypeRankDTOstemp = from b in divisionOrderTypeRankDTOs orderby b.CategoryCode ascending, b.PurposeCode ascending, (b.OrderTypeRank == null ? int.MaxValue : b.OrderTypeRank) ascending select b; OrderTypeRankingGrid.DataSource = divOrderTypeRankDTOstemp; } else { base.AddWarning("There are no records to display"); } } } } catch (System.Exception ex) { base.AddException(ex); } }


{"Message":"There was an error processing the request.","StackTrace":"","ExceptionType":""}
# Problem 1
Requirement:
Note: I am using Telerik 2008 version
When I click the Radgird Row that time Check box checked. If I click the same row again that row check box is unchecked.
Note: Now I can able to only check box checked process. But I am not able do it check box unchecked process.
Steps to Replicate: (note: Client side scripts)
1. Generate the RadGrid with check box
2. Click the RadGrid Row. The check box Checked fine. (Note: you want to click row and not directly checkbox ok...)
3. Again I click the same row Click. The Checkbox is unchecked. (I Want do it unchecked. I Mean I want to need reverse process.
Reference: See the Problem1.jpg image
# Problem 2
Requirement:
I want to select multiple row checkbox through Radgrid row click.
Note: But now, I am not able to click more then one row check box. I want to click more then one Row check box through row click.
Steps to Replicate: (note: Client side scripts)
1. Generate the RadGrid with check box
2. Click any row now the check box is checked. Now click another one row. The current row checkbox only checked. As per requirement we want to check box two row check box. Which is going to smilar….
Reference: See the Problem2.jpg image