Gridview Client side editing in Dropdownlist

Originally Posted 9 October 2013, 11:13 pm EST

  • Originally Posted 9 October 2013, 11:13 pm EST

    How to edit the Gridview column dropdownlist in Client-Side Editing mode?

    <wijmo:C1GridView ID="C1GV" runat="server" ScrollMode="Both" Height="500px" PageSize="50" AllowClientEditing="True" AutogenerateColumns="False" AllowPaging="true" OnPageIndexChanging="C1GV_PageIndexChanging">
    <Columns>

    <wijmo:C1TemplateField>
    <ItemTemplate>
    <asp:Label ID="lblDrwNo" runat="server" Text='<%# Bind("DrawingNo")%>'></asp:Label>
    </ItemTemplate>
    <EditItemTemplate>
    <asp:DropDownList ID="ddlDrwNo" runat="server"></asp:DropDownList>
    </EditItemTemplate>

    </wijmo:C1TemplateField>

    <wijmo:C1BoundField HeaderText="Drawing No" DataField="DrawingNo" SortExpression="DrawingNo" />

    <wijmo:C1BoundField DataField="Rev" HeaderText="Rev" SortExpression="Rev">
    </wijmo:C1BoundField>
    <wijmo:C1BoundField DataField="CableTag" HeaderText="Cable Tag">
    </wijmo:C1BoundField>


    </Columns>

    <CallbackSettings Action="Paging" />
    </wijmo:C1GridView>
  • Reply

    Hello,

    I could replicate the issue at my end i.e. client side editing does not work for template fields. I would investigate it further and would get back to you as soon as possible.

    Regards
  • Marked as Answer

    Reply

    Hello,

    As per the development team, this is the designed behavior since template field is a server side concept. As a workaround, you can display dropdownlist using javascript and can refer to the attached sample implementing the same.

    Regards
    2014/10/C1GridView_CustomEditor.zip
Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels