This is a migrated thread and some comments may be shown as answers.

[Solved] Hide Detail View window if there is no data

0 Answers 65 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Sreyas
Top achievements
Rank 1
Sreyas asked on 11 May 2012, 10:17 AM
Hi,
I am using the Grid Master-Details,Now my requirement is that i want to hide the details window if there is no data to display.
I have 3 level of master details relationship.if any one of the master record does not contain any child then i don't want to display in the empty window.So i want to hide the expand icon if there is no chaild record in a particular master record.

How it is possible?Please help me.

I tried this code,

var row = e.row;
 var dataItem = e.dataItem;

 if (!dataItem.Expression) {
            $('a.t-icon', e.row.cells).css('display', 'none');
  }

But by Expression is not correct.How to find the master having any details??



Regards
Sreyas MN
Tags
Grid
Asked by
Sreyas
Top achievements
Rank 1
Share this question
or