Scrolling Issue in SfTreeGrid

Hello,

In this below sample:-

SfTreeGrid Filtering are using with TextBoxes but when we are ResizingColumns then at the time of Horizontal Scrolling Textboxes are also moving. How to Stop moving these TextBoxes. Send me appropriate solution of it.

I attached a Screenshot from your sample.

Thanks
Harshul

Attachment: Screenshot_(30)_7051372b.zip

3 Replies

SJ Sathiyathanam Jeyakumar Syncfusion Team April 26, 2018 04:47 PM UTC

Hi Brijesh, 
 
We have analyzed your query, the filter texboxes are not placed inside the SfTreeGrid, it is defined manually in code behind. So, when you enable horizontal scrollbar the SfTreeGrid only getting scrolled, the filter texboxes are not getting scrolled. So that only you got the error, And it is not possible to scroll the filter texboxes with SfTreeGrid in code behind. 
 
And we found filter textbox clipping issue while resize the window, And fix that issue using the following code snippet. 
<StackPanel Panel.ZIndex="1" Margin="0,30,0,0" Orientation="Horizontal" Height="30" Width="{Binding ElementName=treeGrid,Path=ActualWidth}" 
                    VerticalAlignment="Top" HorizontalAlignment="Left" > 
            <TextBox  x:Name="Title" Width="{Binding ElementName=title, Path=ActualWidth,Mode=TwoWay}"  /> 
            <TextBox  x:Name="EmpId" Width="{Binding ElementName=empid, Path=ActualWidth, Mode=TwoWay}" /> 
            <TextBox  x:Name="FirstName" Width="{Binding ElementName=firstname, Path=ActualWidth, Mode=TwoWay}" /> 
            <TextBox  x:Name="LastName" Width="{Binding ElementName=lastname, Path=ActualWidth, Mode=TwoWay}" /> 
        </StackPanel> 
 
So you can restrict the HorizontalScrollBarVisibily to avoid this issue. Please find the below code snippet to disable the HorizontalScrollBarVisibily. 
 
<syncfusion:SfTreeGrid Name="treeGrid" 
                       Grid.Row="0" 
                       AutoExpandMode="RootNodesExpanded" 
                       AutoGenerateColumns="False" 
                       ChildPropertyName="ReportsTo"  
                       HeaderRowHeight="60" 
                       ScrollViewer.HorizontalScrollBarVisibility="Disabled" 
 
 
You can download the modified sample from the below location. 
 
Please let us know if you have any future assistance on this. 
 
Regards, 
Sathiyathanam 



BR Brijesh April 27, 2018 04:57 AM UTC

Hi,

I am building a software where speed of execution of task is critical and filtering using your approch is time taking and involve lot of user operation.
How difficult for you guys to provide a functionality where a row (may be a Parent with no child) and using a separate style of row for that. That will improve speed of filtering.


JG Jai Ganesh S Syncfusion Team May 2, 2018 03:45 AM UTC

Hi Brijesh,  
 
As we already mentioned, currently we don’t have a support for the built-in FilterRow support in SfTreeGrid.  Hence, we have provided the sample level solution as you requested. We have already logged the feature report to support the buit-in FilterRow support in SfTreeGrid. While implementing this feature we will consider the speed of filtering. This feature will be available in any of our upcoming release.  
 
Regards, 
Jai Ganesh S 


Loader.
Up arrow icon