Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
145
Finding DropDownProvider DropDownItem's from the Cell in Javascript.
posted

I want to update cells from javascript. I do this after a callback to a web service. The cells belong to columns with DropDownProvider editors. The DropDownProviders have DropDownItems's created with text and value. i.e. we have things like Text = "ABS - Absent" and Value = "ABS". when the web service call returns I find the cell that needs updating and set its value to be "ABS". However I need it to display "ABS - Absent". I need a way to find, from the cell, the DropDownProviders DropDownItem's to select the correct one and set the cell text accordingly.

I do not create a DropDownProvider for each column I add to the grid. I reuse the EditorProviders, often we will have ten columns of the same basic data type so reusing them is attractive.