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
340
Focused Button
posted

Hello,

By default, when the webdatagrid is databinded, a Button in the first row is focused. How can I prevent this?

Parents
No Data
Reply
  • 49378
    posted

    Hello Ramon,

    WebDataGrid should not be focusing any cells by default (in this case I am assuming you are referring to a template field). A small sample would allow me to investigate why the cell is getting focused in this case. Setting the active cell in the grid however can also be achieved on initialization using something similar to:

     

    function WebDataGrid1_Grid_Initialize(sender, eventArgs)
    {
        //set some cell as active on initialization
        sender.get_behaviors().get_activation().set_activeCell(sender.get_rows().get_row(0).get_cell(1))
    }
    Hope this helps. Please do not hesitate to contact me with any questions.
Children