Hello Everyone,
For some reason I can't seem to find an ASP.net WebCombo control. I have added the DLL: Infragistics35.Web.v11.2 but WebCombo doesn't show up in my toolbox (though a dozen or more other Infragistics web controls are there).
Any ideas?
Hi jathyal,
Thank you for posting in the community.
As of version 11.2 our classic ASP.NET controls including WebCombo have been retired. I would strongly recommend that you consider using our new AIKIDO controls. You can find a detailed list of the retired controls and their respective replacements at:
http://blogs.infragistics.com/blogs/taz_abdeali/archive/2011/11/17/asp-net-product-changes-in-2011-volume-2.aspx
If you need to use the classic controls download links for their versionless assemblies are available in the above article.
Please let me know if you have any questions.
Please feel free to contact me if you need further assistance with this matter.
Hi Jathyal,
Thank you for your reply.
In this scenario I would suggest that you use a DropDownProvider in your WebDataGrid:
http://samples.infragistics.com/aspnet/Samples/WebDataGrid/Editing-and-Selection/DropDown-Editors/Default.aspx?cn=data-grid&sid=a01f7736-5540-4cb6-9526-873efd65f20b
A detailed guide for adding an editor provider to a WebDataGrid can be found at:
http://help.infragistics.com/NetAdvantage/ASPNET/2011.2/CLR4.0/?page=WebDataGrid_Using_Editor_Providers.html
The above article illustrates how this is doe for the DatePicker provider, however the principle is the same with the DropDownProvider.
Regarding your question about implementing a multi-column WebDropDown, I suggest that you take a look at the following article:
http://help.infragistics.com/Help/NetAdvantage/ASPNET/2011.2/CLR4.0/html/WebDropDown_Create_a_Multi_Column_WebDropDown_using_Templates.html
Note that the grid's DropDownProvider can also be templated in this fashion. Additional information regarding dropdown templating may be found at:
http://help.infragistics.com/Help/NetAdvantage/ASPNET/2011.2/CLR4.0/html/WebDropDown_Templating.html
Please let me know if this helps.
Please feel free to contact me if you need further assistance.
Hi, I've managed to follow those links but I think there is a missing step. How do I associate the WebDropDown with the DropDownProvider? I currently have a Populated WebDropDown on my page instead of in the grid. The editor provider that comes up in the grid is empty.
Please reply. Thanks.
Well now I've managed to get the webdropdown to be inside the dropdownprovider. I just can't access it to set the value when the row changes.
Here is a javascript function. The problem seems to be that WebDataGrid1_DropDownProvider1 is null. Any suggestions? Thanks in advance.
function
WebDataGrid2_RowSelectionChanged(sender, e) {
);
selectedRows = e.getSelectedRows();
Pickerrow = selectedRows.getItem(0);
cell0 = Pickerrow.get_cell(0);
cell1 = Pickerrow.get_cell(1);
cell2 = Pickerrow.get_cell(2);
text = cell0.get_text();
dropdown.set_currentValue(text,
Can you try accessing your dropdown provider using:
ig_controls.WebDataGrid1_DropDownProvider1
or alternatively:
$find('<%= WebDataGrid1_DropDownProvider1.ClientID %>')
After looking at the sample code you have provided I can see no issues with the way your editor is defined. Note that on the client the id to be used to access the provider may be changed in the form of "WebDataGrid1_ctl00". For instance:
ig_controls.WebDataGrid1_ctl00
Additionally, you may try getting the provider through the grid object:
ig_controls.WebDataGrid1._editorProviders._items[0]
Thank you for the suggestions.
I tried these but unfortunately my dropdownprovider is not one of the ig_controls object. ClientID does not seem to be defined for the drop down provider:
CS1061: 'Infragistics.Web.UI.GridControls.DropDownProvider' does not contain a definition for 'ClientID' and no extension method 'ClientID' accepting a first argument of type 'Infragistics.Web.UI.GridControls.DropDownProvider' could be found (are you missing a using directive or an assembly reference?)This is what the editorProvider tag looks like:
<
EditorProviders>
<ig:DropDownProvider ID="WebDataGrid1_DropDownProvider1">
<EditorControl ID="EC" runat="server" EnableAnimations="False"
EnableDropDownAsChild="False" EnableAutoFiltering="Server" TextField="Job"
DropDownContainerWidth="550px" DropDownContainerHeight="400px" AutoFilterQueryType="Contains">
<Items>
<ig:DropDownItem>
</ig:DropDownItem>
</Items>
<ItemTemplate>
<ig:WebDataGrid ID="WebDataGrid2" runat="server" AutoGenerateColumns="False"
DataSourceID="JobList">
<Columns>
<ig:BoundDataField DataFieldName="Job" Key="Job">
<Header Text="Job" />
</ig:BoundDataField>
<ig:BoundDataField DataFieldName="Description" Key="Description">
<Header Text="Description" />
<ig:BoundDataField DataFieldName="Client" Key="Client">
<Header Text="Client" />
</Columns>
<Behaviors>
<ig:Selection CellClickAction="Row" RowSelectType="Single">
<SelectionClientEvents RowSelectionChanged="WebDataGrid2_RowSelectionChanged"/>
</ig:Selection>
<ig:Filtering>
<ColumnFilters>
<ig:ColumnFilter ColumnKey="Job">
<ConditionWrapper>
<ig:RuleTextNode Rule="Contains" />
</ConditionWrapper>
</ig:ColumnFilter>
</ColumnFilters>
</ig:Filtering>
</Behaviors>
</ig:WebDataGrid>
</ItemTemplate>
<ClientEvents SelectionChanging="CancelSelectionChanging" />
</EditorControl>
</ig:DropDownProvider>
</EditorProviders>
Can you see a reason why I'm not able to access the dropdown editor provider in javascript?
Thanks in advance.