Hi,
I'm getting frustrated using Telerik RadGrid, i just create a simple page with
And my code behind :
Every time i click Add New Record, it call the ajax loading panel, but it doesn't open my popup modal. It does nothing.
Is there anything wrong with my code ? Or is it impossible to do this kind of binding with RadGrid ?
Thanks in advance
I'm getting frustrated using Telerik RadGrid, i just create a simple page with
<telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" LoadingPanelID="RadAjaxLoadingPanel1"> <telerik:RadGrid ID="rg" runat="server" AutoGenerateColumns="false" OnNeedDataSource="TestNeedDataSource"> <MasterTableView CommandItemDisplay="Top" InsertItemPageIndexAction="ShowItemOnCurrentPage" EditMode="PopUp" > <Columns> <telerik:GridBoundColumn DataField="Id" /> <telerik:GridBoundColumn DataField="Name" /> </Columns> <EditFormSettings PopUpSettings-Modal="true" PopUpSettings-Width="600" PopUpSettings-ScrollBars="Auto" PopUpSettings-Height="600" EditFormType="Template" > <FormTemplate> <table> <tr> <td>Test</td> </tr> </table> </FormTemplate> </EditFormSettings> </MasterTableView> </telerik:RadGrid></telerik:RadAjaxPanel><telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" />And my code behind :
public IEnumerable<IDictionary> GenerateData() { for (var i = 0; i < 15; i++) { var dict = new Dictionary<string, object>(); dict["ID"] = Guid.NewGuid(); dict["Name"] = "Name_" + i; yield return dict; } } protected void TestNeedDataSource(object sender, GridNeedDataSourceEventArgs e) { rg.DataSource = GenerateData().ToDataSource(); }Every time i click Add New Record, it call the ajax loading panel, but it doesn't open my popup modal. It does nothing.
Is there anything wrong with my code ? Or is it impossible to do this kind of binding with RadGrid ?
Thanks in advance