GridView client-side support?
-
Is there any clientside javascript available to the gridview? I know Infragistic's has a great array of commands but, prefer to use the GridView in the app. Is there anyway to select a row on the GridView without posting back to the server? Michael I firmly believe that any man's finest hour, the greatest fulfillment of all that he holds dear, is that moment when he has worked his heart out in a good cause and lies exhausted on the field of battle - victorious. Vince Lombardi (1913-1970)
-
Is there any clientside javascript available to the gridview? I know Infragistic's has a great array of commands but, prefer to use the GridView in the app. Is there anyway to select a row on the GridView without posting back to the server? Michael I firmly believe that any man's finest hour, the greatest fulfillment of all that he holds dear, is that moment when he has worked his heart out in a good cause and lies exhausted on the field of battle - victorious. Vince Lombardi (1913-1970)
well you can use javascript to do it.. I have done it with datagrid and i belieev you can do the same way with gridview.. ondatabound add onclick attribute to the item (row) e.g. simplest... item.attributes.add("onclick","javascript:this.style.backgroundcolor=red;") a bit complex.. item.attributes.add("id",item.clientid) //above line is optional if you need to search by id on client item.attributes.add("onclick","javascript:selectRow(this);") or for double click item.attributes.add("ondblclick","javascript:selectRow(this);") and then in selectRow function do whateevr you want to dso on client.. -----