Hi,
Iam configuring the below grid and I have to display "Yes / No" message box on Save & Cancel Click.
Based on user response I have to display few more "Ok" message box & few more "Yes / No" message boxes.
Can you please explain how to achieve this functionality in radgrid ?
Your help is very much appreciated. Thank you.
I have the below code in my .aspx page.
Iam configuring the below grid and I have to display "Yes / No" message box on Save & Cancel Click.
Based on user response I have to display few more "Ok" message box & few more "Yes / No" message boxes.
Can you please explain how to achieve this functionality in radgrid ?
Your help is very much appreciated. Thank you.
OrderTypeRankingGrid.AddNeedDataSourceEventHandler(NeedDataSource); // Binding master table view
OrderTypeRankingGrid.AddGridCommandEventHandler(DataGrid_ItemCommand); // Events for the standard ngm controls
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 = 10;
masterView.AddNgmCommandButton(NgmButtonType.Save, "btnSave", null, null, null, Unit.Pixel(50));
masterView.AddNgmCommandButton(NgmButtonType.Cancel, null, null, null, null, Unit.Pixel(50));
masterView.CommandItemDisplay = GridCommandItemDisplay.Bottom;
if (!IsPostBack) //must check for postback; otherwise, columns will be duplicated
{
//masterView.AddBoundColumn("DivisionOrderTypeRankId", "Rank ID", "DivisionOrderTypeRankId", true, false, true, Unit.Percentage(7.0));
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.AddBoundColumn("OrderTypeRank", "Rank", "OrderTypeRank", false, false, true, Unit.Percentage(7.0));
}
I have the below code in my .aspx page.
<
telerik:RadScriptManager
ID
=
"RadScriptManager2"
runat
=
"server"
>
</
telerik:RadScriptManager
>
//Customized Radgrid Datagrid usercontrol
<
tr
> <
uc1:DataGrid
ID
=
"OrderTypeRankingGrid"
runat
=
"server"
/> </
tr
>
<
telerik:RadAjaxManager
ID
=
"RadAjaxManager1"
runat
=
"server"
>
<
AjaxSettings
>
<
telerik:AjaxSetting
AjaxControlID
=
"radGrid"
>
<
UpdatedControls
>
<
telerik:AjaxUpdatedControl
ControlID
=
"radGrid"
/>
<
telerik:AjaxUpdatedControl
ControlID
=
"lblBindTime"
/>
</
UpdatedControls
>
</
telerik:AjaxSetting
>
<
telerik:AjaxSetting
AjaxControlID
=
"btnExport"
>
<
UpdatedControls
>
<
telerik:AjaxUpdatedControl
ControlID
=
"radGrid"
/>
<
telerik:AjaxUpdatedControl
ControlID
=
"btnExport"
/>
</
UpdatedControls
>
</
telerik:AjaxSetting
>
<
telerik:AjaxSetting
AjaxControlID
=
"btnExportMultilevelGrid"
>
<
UpdatedControls
>
<
telerik:AjaxUpdatedControl
ControlID
=
"radGrid"
/>
<
telerik:AjaxUpdatedControl
ControlID
=
"btnExportMultilevelGrid"
/>
</
UpdatedControls
>
</
telerik:AjaxSetting
>
</
AjaxSettings
>
<
ClientEvents
OnRequestStart
=
"RequestStarted"
OnResponseEnd
=
"ResponseEnd"
/>
</
telerik:RadAjaxManager
>