This is a migrated thread and some comments may be shown as answers.
Hide details icon
2 Answers 31 Views
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Tom
Top achievements
Rank 1
Tom asked on 07 Nov 2011, 02:55 PM
Hi,

I'm using C#, MVC 3, Razor View  and Telerik 2011.2.712

How can I hide the details icon/image if there is no details to display.

I've tried some suggestions from around the web but none of the seem to work.

I guess I have to use rowaction as I'm using server binding, but apart from the do not know what to do.

2 Answers, 1 is accepted

Sort by
0
elaine
Top achievements
Rank 1
answered on 09 Nov 2011, 01:07 AM
You can hide the details icon/image in client API onRowDataBound, some function like

        function onRowDataBound(e) {
            var data = e.dataItem;
            if(no details)
            {
                     $(e.row).find(".t-hierarchy-cell t-icon").css("visibility", "hidden");
            }
         }

Never tried it though. Hope it will help.
0
Tom
Top achievements
Rank 1
answered on 05 Dec 2011, 04:15 PM
onRowDataBound will not fire for Serverside binding...well I think thats the case
Tags
Grid
Asked by
Tom
Top achievements
Rank 1
Answers by
elaine
Top achievements
Rank 1
Tom
Top achievements
Rank 1
Share this question
or