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
65
Template columns do not get focus
posted

Hi,

I want the active cell to be editable without having to click or use som keyborad action so i set the following in my dtagrid

MyGrid.EditingSettings.AllowEditing = Infragistics.Silverlight.

EditingType.Cell;

MyGrid.EditingSettings.IsOnCellActiveEditingEnabled = true;

Thi works exactly how i want it to work when an ordinary TextColumn. But when have a template column  with just an TextBox as EditingTemplate, the active cell do not get focus. ny solutions?

 

//Tommy.

 

Parents
  • 40030
    Verified Answer
    Offline posted

    Hi Tommy, 

    So, i tested this out with the Service Release for 9.1.  And it worked just fine.  However, we can only set focus on the root element in the DataTemplate, which means, in order for it to get focus, it has to be a Control.  If thats the case, then this should work no problem. 

    However, if you were for example wrapping the TextBox in a Panel, or a Border or something else along those lines, then we wouldn't be able to set focus ourselves. However, it could be achieved by you, if you were to add a listener to the Loaded event of the TextBox, and in the listener set focus to the TextBox. 

    Hope this helps, 

    -SteveZ

     

Reply Children
No Data