Hi all
How can I display an embeded Editor like WebCombo always anyway if the cell/row is in edit mode or not?
I mean it should be possible to see as end user that there is a comboBox in a field and if I click onto this editor (CobmoBox) then the dropdown should open imediateli and not the cell goes first into edit mode and then i need a second click to open the editor and a third click to choose the value.
Thank you for your help
RegardsAdrian
Hi Adrian,
For performance reasons, external grid editors are dynamically positioned over a cell only after that cell begins edit mode. Take for instance a dropdown column. Rather than having a WebComboBox created for each row, the grid re-uses a single combobox and positions it over the cell which is being edited. Because of this, you must first put the cell into EditMode before the combobox will appear.
You have a couple of alternatives. You can also use a Cell Template to do the same thing, but you would have to hook up the data values yourself.
The second option would be to use the WebGrid's client-side events to put the cell in edit mode and manually dropdown the webcombobox. This is theoretically possible, but it would be tricky.
-Tony
Hi Tony,
Here the problem is that when you have somany values (say abt 5000) in combobox it is taking time to populate on the page when the cell is clicked. Is there any alternate way for this? so that the issue can be resolved.
The other thing that I wanna ask you is. I have devoloped a custom control. i want to use this custom control in UltraWebGrid. is there any example exists in the forums to add custom control in ultra web grid.
Regards,
Harry
Adrian,
The templated column approach is probably your best bet. This SHOULD work, so I would certainly recommend you report the JavaScript error as a bug to our support team (http://ko.infragistics.com/gethelp)
Hi Tony.
Thank you for your answer.
My problem isn't to create an external editor. Instead my problem is to always display e.g. a DropDown in an cell from a ultrawebgrid. Not only if t he cell is in edit mode. Our customers wish to see that in this cell is a dropdown when they see the grid, not when the cell is in edit mode. On this way the have also the benefit, that they have to click only once to open the dropdown and not twice to first set the cell into edit mode and then click again to open the dropdown.
Finally we have made the column where this cell is a templatedcolumn and then tried putting the webcombo into it. Unfortunately this gives javascript errors as the infragistics webcombo seems not to work in a templatedcolumn from a infragistics ultrawebgrid. Strange thing for me, because both controls are from same vendor.
Now we are working on another solution...
5000 items in a combo, WOW! Hopefully you're using some of the Combo's ajax features (like paging or virtual scrolling). If you're not, you'll be extremely pleased with the performance boost those features will give your app.
Creating a custom editor isn't really as easy as one would hope, but there is a KB article which should help - http://devcenter.infragistics.com/Articles/ArticleTemplate.Aspx?ArticleID=2179
Hope this helps,