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
875
Find a Databound Column in Jquery
posted

Hi ,

I am using WebDataGrid of infragistics and i do have databounds columns into it. Now i want to use a Jquey frunction which will show bubble popup on mouse hovering on a particular coulmn.

But i am unable to find the column using id because Column does not have a id property.

 $(document).ready(function () {
    $('.button').CreateBubblePopup({


//mycode

});

});

 

in above code i need to perform my operations on certain column instead of .button i need to give that column id.

Please help.

Many thanks in advance.

Regards,

Vivek Mahawar

Parents
No Data
Reply
  • 37874
    Verified Answer
    posted

    Hi Vivek,

     

    I would suggest that you use the CssClass property of the grid columns. For example:

     

    <ig:BoundDataField DataFieldName="ID" Key="ID" CssClass="column1" >

        <Header Text="ID" />

    </ig:BoundDataField>

     

    Then you can easily access this column using jQuery:

     

    $(document).ready(function () {

        $(".column1").hover(function () {

            $(this).css("color", "red");

        }, function () {

            $(this).css("color", "black");

        });

    });

     

    Please let me know if you have any questions.

Children