This is a migrated thread and some comments may be shown as answers.

RAD Window as editor

4 Answers 65 Views
Grid
This is a migrated thread and some comments may be shown as answers.
mww
Top achievements
Rank 1
mww asked on 30 Oct 2008, 01:58 PM
does anyone know where I can find some decent examples of how to use a RAD window as an editor for a grid ?

I found one here http://demos.telerik.com/ASPNET/prometheus/Controls/Examples/Integration/GridAndWindow/DefaultCS.aspx 

, but it only gives half a solution.  It uses an edit form which isnt present in the example.  What goes on this form ?  Do I have to build the program logic in it myself ?  If so, how do I go about it.  If Telerik are going to supply examples, it would be nice if they were complete

4 Answers, 1 is accepted

Sort by
0
Sebastian
Telerik team
answered on 30 Oct 2008, 02:03 PM
Hello mark,

Have you reviewed the sample project from the knowledge base article linked at the bottom of the description section of the demo? It is a stand-alone version of the respective example and holds the content page of the RadWindow instance. This part is not included under the sample tabs because merely one ASPX markup is supported to be displayed there.

Regards,
Stephen
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Shinu
Top achievements
Rank 2
answered on 30 Oct 2008, 02:08 PM
Hi Mark,

Telerik has provided the working sample regarding RadWindow as editor for Grid in the following KB article.
Using RadWindow for editing/inserting RadGrid records

Thanks
Shinu

0
mww
Top achievements
Rank 1
answered on 31 Oct 2008, 09:20 AM
thanks, i managed to download that ok, but it isnt very clear from the actual article that a download is available.

I do have a question regarding the CommandItem.  In the example the CommandItemTemplate is created like this
<CommandItemTemplate> 
                                    <href="#" onclick="return ShowInsertForm();">Add New Record</a> 
                                </CommandItemTemplate> 
 but this results in the loss of the add new record icon and the refresh button. 


How can I get these back ?
0
Princy
Top achievements
Rank 2
answered on 31 Oct 2008, 10:20 AM
Hello Mark,

You can add an image to the code and set its url as that of  AddNewRecord and Refresh images from the skin folder of RadControls as shown below:
aspx:
<CommandItemTemplate> 
     <href="#" onclick="return ShowInsertForm();">  <img  style="border:0px;" alt="Add New Record"  src="RadControls/Skins/Default/Grid/AddRecord.gif"   /> 
         Add New Record</a> 
          
         <href="#">  <img  style="border:0px;" alt="Refresh"  src="RadControls/Skins/Default/Grid/Refresh.gif"   /> 
         Refresh 
         </a> 
 </CommandItemTemplate> 

Thanks
Princy.
Tags
Grid
Asked by
mww
Top achievements
Rank 1
Answers by
Sebastian
Telerik team
Shinu
Top achievements
Rank 2
mww
Top achievements
Rank 1
Princy
Top achievements
Rank 2
Share this question
or