Column HeaderText

3 posts, 0 answers
  1. Rahul Khinvasara
    Rahul Khinvasara avatar
    303 posts
    Member since:
    Aug 2007

    Posted 08 Oct 2009 Link to this post

    Hi

    I am using Q2 2009 version of Telerik. I have a grid control. I want coulmn Header Text when i click on particular column  through JavaScript. i tried to get the value with  innerText and innerHTML.but  i think it is not supporting.

    Please give me the solutions ASAP

    Regards

    Rahul
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 08 Oct 2009 Link to this post

    Hi Rahul,

    I tried the following code to access the header text  in the ColumnClick client event as shown below and it worked. Check out this code:
    aspx:
    <ClientSettings>                 
         <ClientEvents OnColumnClick="ColumnClick"/>                     
    </ClientSettings>      

    js:
     function ColumnClick(sender,args) 
        { 
          var headertext = args.get_gridColumn().get_element().innerText; 
          alert(headertext); 
        } 

    Thanks
    Shinu.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Rahul Khinvasara
    Rahul Khinvasara avatar
    303 posts
    Member since:
    Aug 2007

    Posted 09 Oct 2009 Link to this post

    Hi,

    Thanks its working.

    Regards

    Rahul
Back to Top