rad window user control in grid column

3 posts, 0 answers
  1. danielnp20
    danielnp20 avatar
    22 posts
    Member since:
    Jun 2008

    Posted 18 Jul 2008 Link to this post

    Hi all,

    I have an user control which have a textbox and a button, when i clicked the button it opens a Rad window that returns a value to the textbox.

    I need to add this control in my grid, so I have my tamplate column and in the item template i have a label that displays a value of the datasource, but in editing mode i need to display the UC that i described at the top. here is my column code:
    <telerik:GridTemplateColumn HeaderText="Name M" 
    SortExpression="NameM" UniqueName="NameM"
          <HeaderStyle Width="80px" />
               <asp:Label runat="server" ID="lblName"
    Text='<%# Eval("Name") %>'>
               <uc1:TextboxMaster ID="TextboxMaster1" runat="server" />

    The label shows the correct value, but when i enter in editing mode it shows the control, but it didnt works, when i click the button it looks like if an event ocurrs but the window doesnt display. Also if i add the control outside the grid it works fine, what could be the problem??? ....

    also i tried with :         
    <EditFormSettings UserControlName="/Modules/TextboxMaster.ascx"
    <EditColumn UniqueName="EditCommandColumn2"></EditColumn>
    but i've got the same problem

    thanks for all i really appreciate your help
  2. Kiara
    Kiara avatar
    309 posts
    Member since:
    Jul 2006

    Posted 21 Jul 2008 Link to this post

    daniel, take this example as a started and build your solution over it:


    I did that in a couple of my projects and everything seems to work fine.

  3. DevCraft R3 2016 release webinar banner
  4. danielnp20
    danielnp20 avatar
    22 posts
    Member since:
    Jun 2008

    Posted 21 Jul 2008 Link to this post

    Hi Kiara, Richard and thanks for the reply,

    I tried Kiaras solution but sometimes i want to edit the info in the current grid, thats why i have the UC. The only option for this is editing the info in other window, there is a way for use an UC in the grid?...

    Other thing is that after i open the window (it need to be modal), in the edition or inserting form i have more controls that would open another modal window and it doesn works.

    And for Richard´s solution the problem is that inside the control i have a  button that fires the event to open the window, so i dont know how can i set the property to do this, because the buttons event doesnt works.

    i really appreciate your help
Back to Top