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
440
How to load into a cell a "loading activity gif" or loading custom control
posted

Hi,

I have a grid that shows some data to the user. This grid has 7 columns (7 cells by row) and I want when the user update the row data and then this data is sent to the server I want to show a new cell of 20px width in the very left position that will hold a loading activity indicator. After the rows data, in my background process, is updated succesful then the cell dissapear.

I can use a gif animation image but if this is nos possible i have already a custom control that imitates a loading gif.

Hope someone can guide me on how to do this approach, actually I know that now is possible to add custom controls in a cell in a ultrawingrid so I think the only thing I have to know is how to appear a cell and disappear a cell... is by row so I dont want to create a new column, i just want to show a new cell when updating data and then dissapear the cell when finished... 

Thanks and apprecaite your help.

Parents
  • 69832
    Suggested Answer
    Offline posted

    You can't show a cell without a corresponding column, but what you might want to consider is showing the image on the row selector. You can do this by Assigning an Appearance object (on which the Image property is set) to the RowSelectorAppearance property of the row being updated.

    Note, however, that with the RowSelectorAppearance approach, you will not be able to support animation. If this is necessary, you will probably have to implement the IUIElementDrawFilter interface (only two methods) and handle the drawing for the row being updated. You would also have to trigger updates on a timer so as to show the different frames of the animation.

Reply Children
No Data