Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
65
Populate a dropdownprovider in Webhierarchicalgrid from ClientSide
posted

I have an Unbound field with a dropdownprovider. How do I populate values like (FullAccess, NoAccess, Readonly) through clientsideevents. Samples will be very helpful. Here is the markup.

 <ig:WebHierarchicalDataGrid ID="grdPermission" runat="server" DataKeyFields="ApplicationObjectID" AutoGenerateColumns="false" AutoGenerateBands="false"
                            Width="100%" Height="100%" OnInitializeBand="grdPermission_InitializeBand" OnInitializeRow="grdPermission_InitializeRow">
                            <Columns>
                                <ig:BoundDataField DataFieldName="ApplicationObjectID" Key="ApplicationObjectID" Hidden="true">
                                    <Header Text="ApplicationObjectID" />
                                </ig:BoundDataField>
                                
                                <ig:UnboundField Key="GA" CssClass="center" Header-Text="GA">
                    <Header Text="Administrator"></Header>
                                </ig:UnboundField>
                                <ig:UnboundField Key="MA" CssClass="center" Header-Text="MA">
                    <Header Text="Member"></Header>
                                </ig:UnboundField>
                                
                                <ig:BoundDataField DataFieldName="RoleID" Key="RoleID" Hidden="true">
                                    <Header Text="RoleID" />
                                </ig:BoundDataField>
                               
                                <ig:UnboundField Key="Status" Hidden="true"></ig:UnboundField>
                            </Columns>
                            <Bands>
                                <ig:Band DataMember="ChildObject" DataKeyFields="ApplicationObjectID" AutoGenerateColumns="false">
                                    <Columns>
                                        <ig:BoundDataField DataFieldName="ApplicationObjectID" Key="ApplicationObjectID" Hidden="true">
                                            <Header Text="ApplicationObjectID" />
                                        </ig:BoundDataField>
                                        <ig:BoundDataField DataFieldName="Object" Key="Object">
                                            <Header Text="Object" />
                                        </ig:BoundDataField>
                                        <ig:UnboundField Key="GA" CssClass="center" Header-Text="GA">
                    <Header Text="Administrator"></Header>
                                </ig:UnboundField>
                                <ig:UnboundField Key="MA" CssClass="center" Header-Text="MA">
                    <Header Text="Member"></Header>
                                </ig:UnboundField>
                                        <ig:BoundDataField DataFieldName="RoleID" Key="RoleID" Hidden="true">
                                            <Header Text="RoleID" />
                                        </ig:BoundDataField>
                                      
                                        <ig:UnboundField Key="Status" Hidden="true"></ig:UnboundField>
                                    </Columns>
                                    <Behaviors>
                                        <ig:EditingCore AutoCRUD="false" BatchUpdating="true">
                                            <Behaviors>
                                                <ig:CellEditing Enabled="true">
                                                    <EditModeActions EnableF2="true" EnableOnActive="false" MouseClick="Single" />
                                                    <ColumnSettings>
                                                        <ig:EditingColumnSetting ColumnKey="GA" ReadOnly="false" EditorID="drpGA" />
                                                        <ig:EditingColumnSetting ColumnKey="MA" ReadOnly="false" EditorID="drpMA" />
                                                    </ColumnSettings>
                                                </ig:CellEditing>
                                            </Behaviors>
                                        </ig:EditingCore>
                                    </Behaviors>

                                </ig:Band>
                            </Bands>
                            <EditorProviders>
                                <ig:DropDownProvider ID="drpGA">
                                </ig:DropDownProvider>
                                 <ig:DropDownProvider ID="drpMA">
                                </ig:DropDownProvider>
                            </EditorProviders>
                        </ig:WebHierarchicalDataGrid>
                    </div>
                </td>
            </tr>

Parents
No Data
Reply
  • 2735
    posted

    Hello,

    Thank you for contacting Infragistics!
    This is an initial update to let you know that I have received your support request and will be looking into this matter for you. I will follow-up with you regarding my findings.

    Best Regards,

Children