I'm using an UltraWebGrid in one of my web pages. This grid contains about 20 columns, several of which are configured as DropDownLists using ValueLists to populate them. The issue that I'm having is that I am unable to set the SelectedIndex to 1. There seems to be no SelectedIndex property, however, I have seen a threads on this site that indicate otherwise. I'm using version 10.1 of the UltraWebGrid. Can anyone shed some light on this. Also, how do I post my code?
Thanks!
Hello fy8040 ,
I'm just following up to see if you need further assistance with this.
Best Regards,
Maya Kirova
Developer Support Engineer
Infragistics, Inc.
http://es.infragistics.com/support
Such a property does exist. You can access it through the ValueListSelChangeHandler client side event and set the property like this:
function UltraWebGrid1_ValueListSelChangeHandler(gridName, valueListID, cellId) {
var valueList = document.getElementById(valueListID);
valueList.selectedIndex=0;
}
Although the element containing the value list gets initialized only after you’ve entered editing mode. This means that the earliest time you can access it is during AfterEnterEditModeHandler event. You can do it like this:
function UltraWebGrid1_AfterEnterEditModeHandler(gridName, cellId){
var valueList = document.getElementById("UltraWebGrid1_vl");
valueList.selectedIndex=2;
Regarding your question about posting your code. You could just paste the code snippets in you message or you could send it as an attachment by clicking the Options tab next to the Compose tab when you're writing you're message then Add the file you'd like to attach.
Let me know if you have any further questions regarding this issue.