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
1210
Custom control inherited from Ultra combo in ultra grid
posted

Hi Mike,
     We have some common functionality related to buttons in combo. Thats why we have crated one control inherited from UltraCombo. On editor button click I am opening new screen and back want to set value in parent grid.
I am setting value property of my control but it is not updating in parent grid. Is there any way so in cell edit I will get its parent in my control.

If I enter into cell whose editor control is set as my control then it is firing its value change event. Is there any way to stop this? I am not getting any event like enter/focus using it I can handle but Ultra grid is creating copy of editor control and using it thats why i think those events are not firing. Is there any way to fire those event at least?

I tried to set my control as cells editor component in initialize row then also it is not working.

--
Best Regards,
Ganesh

Parents
No Data
Reply
  • 469350
    Offline posted

    Hi Ganesh,

    I'm not sure I understand exactly what you are doing. But if you are using an UltraCombo control in a grid cell, then the grid does not use the actual Control you specified. The UltraCombo provides the grid with a copy of it's internal editor for use by the grid.

    So you should not be using any events of the UltraCombo to affect the grid and vice versa - with the exception of the EditorButton events.

    The EditorButton events like EditorButtonClicked pass in a Context as part of the event args. The Context can be used to determine where the button was clicked. For example, if the user clicks on an editor button in a grid cell, the Context will pass you the cell.

    So if you are doing something in that button that is supposed to change the value of the grid cell, then all you have to do is cast the Context to an UltraGridCell and then set the Value property on that cell.

Children
No Data