gridview dropdownlist bind onclick
-
hi, is it possible to bind a dropdownlist in gridview when user click on the row. i have a scenario that the gridview will load a large amount of data. then when the user select on the dropdown, it takes 10-20 seconds to load. I was thinking that it would be better to bind the dropdownlist when the row is selected or when the dropdownlist is click on the specific row. after the user select the value of dropdownlist on the specific row, gridview automatically re-bind.
C# コードMicrosoft End User 2000-2008 「「「「「「「「「「「「「「「「「「「「「「「「「「「「 The best things in life are free 」」」」」」」」」」」」」」」」」」」」」」」」」」」」
-
hi, is it possible to bind a dropdownlist in gridview when user click on the row. i have a scenario that the gridview will load a large amount of data. then when the user select on the dropdown, it takes 10-20 seconds to load. I was thinking that it would be better to bind the dropdownlist when the row is selected or when the dropdownlist is click on the specific row. after the user select the value of dropdownlist on the specific row, gridview automatically re-bind.
C# コードMicrosoft End User 2000-2008 「「「「「「「「「「「「「「「「「「「「「「「「「「「「 The best things in life are free 」」」」」」」」」」」」」」」」」」」」」」」」」」」」
Sir, I think you should use an asynchronous callback technique (implement
[System.Web.UI.ICallbackEventHandler](http://msdn.microsoft.com/en-us/library/system.web.ui.icallbackeventhandler.aspx)
) in RowDataBound event add the following:string args = "some thing unique";
this.DropDownList1.Attributes.Add("onclick", "javascript:DoServerCall(args);");100 :rose: ;)
Help people,so poeple can help you.