RadInput setting control behaviour in radgrid client side

2 posts, 0 answers
  1. Jim
    Jim avatar
    9 posts
    Member since:
    Jan 2011

    Posted 07 Nov 2011 Link to this post

    Hi all,

    In my code behind I'm setting a string behaviour for the items in my grid in the radgrid item created event.  I want to be able to the following client side in jscript.

    TextBox txtBox = (TextBox)dataItem.FindControl("rtbDIN");
                  TextBoxSetting stringSetting = (TextBoxSetting)RadInputManager1.GetSettingByBehaviorID("StringBehavior");
                  stringSetting.TargetControls.Add(new TargetInput(txtBox.UniqueID, true));

    Any ideas / input ?

    Thanks,
    Jim
  2. Jim
    Jim avatar
    9 posts
    Member since:
    Jan 2011

    Posted 07 Nov 2011 Link to this post

    Figured it out!  Managed to make it work on the row_created client event where I look for the input of the cell:

     

     

     

    if (cell.getElementsByTagName("input")[0]) {
      
    var idInp = cell.getElementsByTagName("input")[0];
      
      
      
    // assign input manager settings
      
    var inputManager = $find("<%= RadInputManager1.ClientID %>");
      
    inputManager.get_inputSettings("StringBehavior").addTargetInput(idInp.id)

    Thanks anyway!

     

  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top