locked
Set Focus on Subgrid in CRM 2011 RRS feed

  • Question

  • Hi

    I want to set focus on Sub-Grid on the form. How can I do it?

    Saturday, February 22, 2014 5:57 AM

All replies

  • Hi

    To set focus on Sub-Grid use this line after grid has bind..

    grid.control.SetParameter("fetchXml", fetchXml);
    grid.control.Refresh();

    document.getElementById('subgridName').getElementsByTagName('a')[0].focus();

    -----------------------------------

    If my response helps you in finding your answer then please click 'Mark as Answer' and 'Vote as Helpful'





    • Edited by Suresh Sorde Saturday, February 22, 2014 11:09 AM
    • Proposed as answer by Suresh Sorde Saturday, February 22, 2014 11:09 AM
    • Unproposed as answer by myCRMGuy Saturday, February 22, 2014 10:36 PM
    Saturday, February 22, 2014 10:58 AM
  • This does  not work. I am getting "Unable to get value of the property getElementsByTagName....".
    Saturday, February 22, 2014 10:38 PM