We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

Hide row

How can i hide a specific row from being displayed ?
Thanks,

6 Replies

MK Mahalakshmi Karthikeyan Syncfusion Team October 27, 2015 01:03 PM UTC

Hi Dev,

Can you please share more details about your requirement?

Do you want to hide the row after performing any action? or

Do you want to hide the row in load time?

It will be helpful for us to server you better.

Regards,

Mahalakshmi K.



SH ShareValue October 27, 2015 01:48 PM UTC

Hi,
I just want to hide specific rows at load time, rows that have are of a  particular type, based on a row property.

In my particular case, I have rows that are activities, projects an tasks. I don't wan't to show rows of type 'task'.
Thanks,


MK Mahalakshmi Karthikeyan Syncfusion Team October 28, 2015 05:59 AM UTC

Hi Dev,
We can hide particular task at load time with the help of “RowDataBound” and “QueryTaskbarInfo” client side event. Please refer the below code example for details.

<head runat="server">

<script type="text/javascript">

      function rowbound(args) {

          debugger

          if (args.data.taskName == "Child Task 1") {

              $(args.rowElement).css("display", "none");

          }

      }

      function queryTaskbarInfo(args) {

          if (args.data.taskName == "Child Task 1") {

              var target = $(args.taskbar).closest('tr');

              $(target).css("display", "none");

          }

      }

    </script>

</head>

<form id="form1" runat="server" height:100%;width:100%;">       

        

<ej:Gantt ID="Gantt" runat="server"

//…

      QueryTaskbarInfo="queryTaskbarInfo"  

      RowDataBound="rowbound">

</ej:Gantt>   

</form>

Here we have hided the Tasks with its task name contains “Child Task 1”.
We have also prepared a sample based on this and you can find the sample under the following location.
Sample: http://www.syncfusion.com/downloads/support/directtrac/general/ze/HideTask1279156932
Regards,
Mahalakshmi K.


SH ShareValue October 28, 2015 11:20 AM UTC

Can you please send the sample solution using the 13.3400.0.7 version ?
thanks


SH ShareValue October 28, 2015 11:25 AM UTC

I followed your sample and now the row does appear, but I can still click in the parent task  to expand its children, and when I do that, it expands one row.
how can I disable the expand "arrow" in the parent ?
please see attachment.

Attachment: Capture_e5dcc294.zip


MK Mahalakshmi Karthikeyan Syncfusion Team October 29, 2015 12:25 PM UTC

Hi Dev,

We can also reproduce the issue while hiding the row at UI level. But At present it is not possible to hide the row at all scenarios. So we have logged a feature report regarding this. A support incident has been created under your account to track the status of this requirement. Please log on to our support website to check for further updates.

https://www.syncfusion.com/account/login?ReturnUrl=/support/directtrac/incidents

Please let us know if you require further assistance on this.      

Regards,

Mahalakshmi K.


Loader.
Live Chat Icon For mobile
Up arrow icon