Hi,
Preamble:
I've managed to successfully wire up a radgrid with an external edit form by working from the demo here:
http://demos.telerik.com/aspnet-ajax/ajax/examples/manager/dynamicajaxsettings/defaultcs.aspx?product=grid
Concerns:
However, to create the "Add New Record" and "Refresh" buttons, similar to other Edit Modes, I've had to use the CommandItemTemplate.
I used a number of other RadGrids in my application, but most of them either use inline or popup edit modes... and these buttons are generated automatically.
I have the following complaints with the CommandItemTemplate approach:
1. The text labels generated by the demo do not align with the automatically generated labels for other grids. This makes all of my Grids with CommandItemTemplate controls to "look funny". I can tweak them with CSS, but this is time consuming and difficult to maintain.
2. I have to use my own copies of the RadGrid images for the buttons to make them visually consistent with all of the other RadGrids with automatically generated Command buttons.
3. Due to the complications of the above two complaints, it becomes extremely difficult to apply new skins without also involving a significant amount of editing, tweaking, and rework to maintain consistent visual style across all RadGrids in my application.
Question:
Is there any way to wire up an external edit form without using the CommandItemTemplate to create insert and refresh buttons?
All I really need is to wire the OnClick event of the generated "Add New Record" to my custom RadGrid_OnInsertCommand() event without it trying to create an in-grid edit form or a popup edit form. All of the rest of the wireup already works (i.e. the submit button on the external edit form).
Preamble:
I've managed to successfully wire up a radgrid with an external edit form by working from the demo here:
http://demos.telerik.com/aspnet-ajax/ajax/examples/manager/dynamicajaxsettings/defaultcs.aspx?product=grid
Concerns:
However, to create the "Add New Record" and "Refresh" buttons, similar to other Edit Modes, I've had to use the CommandItemTemplate.
I used a number of other RadGrids in my application, but most of them either use inline or popup edit modes... and these buttons are generated automatically.
I have the following complaints with the CommandItemTemplate approach:
1. The text labels generated by the demo do not align with the automatically generated labels for other grids. This makes all of my Grids with CommandItemTemplate controls to "look funny". I can tweak them with CSS, but this is time consuming and difficult to maintain.
2. I have to use my own copies of the RadGrid images for the buttons to make them visually consistent with all of the other RadGrids with automatically generated Command buttons.
3. Due to the complications of the above two complaints, it becomes extremely difficult to apply new skins without also involving a significant amount of editing, tweaking, and rework to maintain consistent visual style across all RadGrids in my application.
Question:
Is there any way to wire up an external edit form without using the CommandItemTemplate to create insert and refresh buttons?
All I really need is to wire the OnClick event of the generated "Add New Record" to my custom RadGrid_OnInsertCommand() event without it trying to create an in-grid edit form or a popup edit form. All of the rest of the wireup already works (i.e. the submit button on the external edit form).