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.
Unfortunately, activation email could not send to your email. Please try again.

Hide row

Thread ID:

Created:

Updated:

Platform:

Replies:

120900 Oct 26,2015 12:17 PM Oct 29,2015 08:25 AM ASP.NET Web Forms 6
loading
Tags: Gantt
ShareValue
Asked On October 26, 2015 12:17 PM

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

Mahalakshmi Karthikeyan [Syncfusion]
Replied On October 27, 2015 09:03 AM

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.


ShareValue
Replied On October 27, 2015 09:48 AM

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,

Mahalakshmi Karthikeyan [Syncfusion]
Replied On October 28, 2015 01:59 AM

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.

ShareValue
Replied On October 28, 2015 07:20 AM

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

ShareValue
Replied On October 28, 2015 07:25 AM

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

Mahalakshmi Karthikeyan [Syncfusion]
Replied On October 29, 2015 08:25 AM

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.


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;