I'm using a WebCombo as an editorcontrol in a grid. It works great! Unfortunately, when I click in the edited column the page scrolls to the end. This isn't the end of the world, but I know my boss is going to have a problem with it.
I should admit that I also have some javascript in the EnterEditMode event to filter (using the fantastic .selectWhere method) the webcombo's rows. I don't know if this is what is causing the scrolling or not. Either way, I could use a solution.
I tried adding "window.scrollTo(0,0)" to the EnterEditMode event to scroll the page back to the top. This works, but the page appears to "flash" first, which isn't much of a solution. I'd prefer to avoid the scroll altogether.
Anyone have any ideas?
I am having the same problem. Were you able to find a solution?
Hi,
I solved the problem in different way as follows.
Add the following code in Grid_InitializeLayout.
Grid.Bands[i].Columns.FromKey("<DropDownColumnName>").Type = ColumnType.DropDownList;
ValueList DropDownValues = Grid.Bands[i].Columns.FromKey("<DropDownColumnName>").ValueList;
DropDownValues.ValueMember = "<ID Column>";
DropDownValues.DisplayMember = "<Display Column>";
DropDownValues.DataSource = DataTable;
DropDownValues.DataBind();
Hope this will work!!!!!!!!!