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

InPlace EditMode Template Columns controls not displayed

1 Answer 61 Views
Grid
This is a migrated thread and some comments may be shown as answers.
adel emam
Top achievements
Rank 1
adel emam asked on 28 Apr 2010, 10:15 AM

when i uses InPlace Edit Mode
the listbox controls in gird in edit and insert mode doesn't displayed
here is the code


<telerik:RadGrid ID="grdPermissions" runat="server" AllowPaging="True"   
            AllowAutomaticInserts="True" 
             AutoGenerateColumns="False" GridLines="None"   
             onitemdatabound="grdPermissions_ItemDataBound"   
             onneeddatasource="grdPermissions_NeedDataSource" Width="100%"   
             ondeletecommand="grdPermissions_DeleteCommand"   
             onupdatecommand="grdPermissions_UpdateCommand"   
             oninsertcommand="grdPermissions_InsertCommand">  
<MasterTableView DataKeyNames="GroupingId"  CommandItemDisplay="TopAndBottom" AllowAutomaticInserts="false" ShowFooter="true" ShowHeadersWhenNoRecords="true" EditMode="InPlace">  
    
<RowIndicatorColumn> 
<HeaderStyle Width="20px"></HeaderStyle> 
</RowIndicatorColumn> 
 
<ExpandCollapseColumn> 
<HeaderStyle Width="20px"></HeaderStyle> 
</ExpandCollapseColumn> 
    <Columns> 
        <telerik:GridTemplateColumn UniqueName="PermissionTemplateColumn" HeaderText="Permissions">  
        <ItemTemplate> 
        <asp:Literal ID="ltrlPermission" runat="server"></asp:Literal> 
        </ItemTemplate> 
        <EditItemTemplate> 
         <asp:CheckBox runat="server" ID="chkAllPermission" Text="All" /> 
        <telerik:RadListBox ID="chkPermissions" runat="server" CheckBoxes="true" DataTextField="Name" DataValueField="Id" > 
            </telerik:RadListBox> 
        </EditItemTemplate> 
        </telerik:GridTemplateColumn> 
        <telerik:GridTemplateColumn UniqueName="TestStatusesTemplateColumn" HeaderText="Test Status">  
         <ItemTemplate> 
            <asp:Literal ID="ltrlTestStatuses" runat="server"></asp:Literal> 
        </ItemTemplate> 
        <EditItemTemplate> 
         <asp:CheckBox runat="server" ID="chkAllTestStatuses" Text="All" /> 
         <telerik:RadListBox ID="chkTestStatuses" runat="server"  CheckBoxes="true" DataTextField="Name" DataValueField="Id">  
            </telerik:RadListBox> 
        </EditItemTemplate> 
        </telerik:GridTemplateColumn> 
        <telerik:GridTemplateColumn UniqueName="LocationsTemplateColumn" HeaderText="Locations"  > 
         <ItemTemplate> 
        <asp:Literal ID="ltrlLocations" runat="server"></asp:Literal> 
        </ItemTemplate> 
        <EditItemTemplate> 
         <asp:CheckBox runat="server" ID="chkAllLocations" Text="All" /> 
        <telerik:RadListBox ID="chkLocations" runat="server" CheckBoxes="true" DataTextField="Name" DataValueField="Id">  
            </telerik:RadListBox> 
        </EditItemTemplate> 
        </telerik:GridTemplateColumn> 
        <telerik:GridTemplateColumn UniqueName="ClinicalGroupsTemplateColumn" HeaderText="Clinical Groups">  
        <ItemTemplate> 
        <asp:Literal ID="ltrlClincalGroups" runat="server"></asp:Literal> 
        </ItemTemplate> 
        <EditItemTemplate> 
          <asp:CheckBox runat="server" ID="chkAllClinicalGroups" Text="All" /> 
        <telerik:RadListBox ID="chkClinicalGroups" runat="server"  CheckBoxes="true" DataTextField="Name" DataValueField="Id">  
            </telerik:RadListBox> 
        </EditItemTemplate> 
        </telerik:GridTemplateColumn> 
        <telerik:GridTemplateColumn UniqueName="BranchesTemplateColumn" HeaderText="Branches">  
         <ItemTemplate> 
        <asp:Literal ID="ltrlBranches" runat="server"></asp:Literal> 
        </ItemTemplate> 
        <EditItemTemplate> 
        <asp:CheckBox runat="server" ID="chkAllBranches" Text="All" /> 
         <telerik:RadListBox ID="chkBranches" runat="server"  CheckBoxes="true" DataTextField="Name" DataValueField="Id">  
            </telerik:RadListBox> 
        </EditItemTemplate> 
        </telerik:GridTemplateColumn> 
 
        <telerik:GridButtonColumn  ConfirmText="Are you sure you want to delete this item?" ConfirmDialogType="RadWindow" 
                        ConfirmTitle="Delete" ButtonType="ImageButton" CommandName="Delete" Text="Delete" 
                        UniqueName="DeleteColumn">  
                         
                    </telerik:GridButtonColumn> 
 
        <telerik:GridEditCommandColumn ButtonType="ImageButton" UniqueName="EditCommandColumn">  
                        <ItemStyle CssClass="MyImageButton" /> 
                    </telerik:GridEditCommandColumn> 
 
    </Columns> 
 
    <EditFormSettings  > 
                    
                    <EditColumn ButtonType="ImageButton" InsertText="Add UOM" UpdateText="Update UOM" 
                        UniqueName="EditCommandColumn1" CancelText="Cancel edit" > 
                    </EditColumn> 
                     
                </EditFormSettings> 
 
</MasterTableView> 
 
<HeaderContextMenu EnableAutoScroll="True"></HeaderContextMenu> 
         </telerik:RadGrid> 

1 Answer, 1 is accepted

Sort by
0
Nikolay Rusev
Telerik team
answered on 03 May 2010, 07:30 AM
Hello Adel,

It seems to me that you are not binding RadListBox - there is not code for binding it in case of manual binding and there is no DataSourceId set of the control.

Please make sure that you are binding the control in EditItemTemplate.

All the best,
Nikolay
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
Grid
Asked by
adel emam
Top achievements
Rank 1
Answers by
Nikolay Rusev
Telerik team
Share this question
or