RAD Window as editor

5 posts, 0 answers
  1. mww
    mww avatar
    257 posts
    Member since:
    Sep 2012

    Posted 30 Oct 2008 Link to this post

    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
  2. Sebastian
    Admin
    Sebastian avatar
    9934 posts

    Posted 30 Oct 2008 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 30 Oct 2008 Link to this post

    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

  5. mww
    mww avatar
    257 posts
    Member since:
    Sep 2012

    Posted 31 Oct 2008 Link to this post

    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 ?
  6. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 31 Oct 2008 Link to this post

    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.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017