why is it that having a web drop down in this instance makes the page crawl? Button clicks take 5 or more seconds. They get stuck. If I revert back to a regular ASP DDL, it runs like a champ.
<td style="width:50%; text-align:right">
<ig:WebDropDown runat="server" ID="ddlAddPM" TextField="UserMachineName" Width="250px" DisplayMode="DropDownList" DropDownContainerMaxHeight="150px" EnableDropDownAsChild="false" ValueField="Id" >
</ig:WebDropDown>
<asp:RequiredFieldValidator runat="server" ControlToValidate="ddlAddPM" Display="None" ErrorMessage="Select a user from the Drop Down List" ValidationGroup="PM" />
</td>
<td style="width:50%; text-align:left">
<asp:Button ID="btnAddPM" runat="server" Text="Assign PM Role" OnClick="btnAddPM_Click" ValidationGroup="PM" />
<asp:ValidationSummary runat="server" ValidationGroup="PM" DisplayMode="List" ShowMessageBox="true" ShowSummary="false" />
<asp:DropDownList runat="server" ID="ddlAddPM" DataTextField="UserMachineName" Width="250px" DataValueField="Id" >
</asp:DropDownList>
yes it is ony one row of binding. Kind of hard to explain, but how we had to do it for this. I have used the webgrid with a ddl row. Really nice solution most of the time. In this case, I have a master gridview, with an embedded gridview, and a table below the embedded gridview for adding peoples roles to the grid.
I change thed the enableautofiltering="server" and got no speed up at all.
Hopefully you have more suggestions? It really seems to be a problem with the webdropdown.
This page in general is giving me grief. Async panels just flat out do not work on top of this.
Hi,
Thanks for the info, I see. Do you have dropdowns created for every row, or only for the first one? From the sample i see it's only for 1.
You may also want to take a look at the WebDataGrid with WebDropDown editor provider sample on samples.infragistics.com - using the DD editor provider, you only have 1 instance of the control, and it is repopulated and positioned depending on the cell on which you click.
P.S: Could you try setting this property : EnableAutoFiltering=Server. By default it's Off. When set to "Server" it will make lazy loading of items, so you won't get any javascript objects created at all.
What could happen is that on your button click, there is some slowdown id the dispose() , which MS AJAX will call for all ajax controls (i.e. the dropdowns and all other ajax-enabled controls).
Angel
Angel,
thanks for the response. I bind with th efollowing code snippet.
private void PopulateDDLs()
{
WebDropDown ddlAddContracts = (WebDropDown)gvContracts.Rows[0].FindControl("ddlAddContracts");
WebDropDown ddlAddSubcontracts = (WebDropDown)gvSubcontracts.Rows[0].FindControl("ddlAddSubcontracts");
WebDropDown ddlAddSubcontractor = (WebDropDown)gvSubcontractor.Rows[0].FindControl("ddlAddSubcontractor");
WebDropDown ddlAddFinance = (WebDropDown)gvFinance.Rows[0].FindControl("ddlAddFinance");
WebDropDown ddlAddPM = (WebDropDown)gvPM.Rows[0].FindControl("ddlAddPM");
ddlAddPM.DataSource = ddlAddContracts.DataSource = ddlAddSubcontracts.DataSource =
ddlAddSubcontractor.DataSource = ddlAddFinance.DataSource = ContractInfo.ScrubAllUserNames();
ddlAddPM.DataBind();
ddlAddContracts.DataBind();
ddlAddSubcontracts.DataBind();
ddlAddSubcontractor.DataBind();
ddlAddFinance.DataBind();
ddlAddPM.Items.Insert(0, new DropDownItem("", ""));
ddlAddContracts.Items.Insert(0, new DropDownItem("", ""));
ddlAddSubcontracts.Items.Insert(0, new DropDownItem("", ""));
ddlAddSubcontractor.Items.Insert(0, new DropDownItem("", ""));
ddlAddFinance.Items.Insert(0, new DropDownItem("", ""));
}
I have 102 items that get bound to the drop down lists.
I cast to them b/c they are embedded in a grid. I have no performance issues on loading the page, in fact it loads in less than one second with all of the other stuff that is taking place.
But on the button click, when I click, the button will stay pressed for 5 seconds before it even fires the btnClick event! When I change the WebDropDown out with the traditional ASP DDL, everything works as it shoud.
Hi ,
You can take a look at the following forum posts:
http://forums.infragistics.com/forums/t/25419.aspx
http://forums.infragistics.com/forums/t/26720.aspx
I am not sure if this question is related to the original question in this thread. Please let me know if the above helps in your scenario.
Thanks for your feedback,
I have the problem to use webdropdown,
I found webdropdown_selectedchanged event on events queue, it fires utile another bostback. even I set attribute postback= true for select change. I really want to know why??
Thnaks.
Martin