Query 1:
I want to add two additional MenuItems and a autocomplete search button on the right hand side ribbon control
|
We can add DropDownButton and TextBox to the right side of the Ribbon using the TabPanelItem. We have prepared sample for the same and it is available below.
| |
Query 2:
After clicking (...) button from the Window-1 I am redirecting to Window-2 but the look and feel is differing in Window-2 even though I am applying the same VisualStyle property i.e., VisualStyle = "Office2013
|
In the Window-2, you need to set the Visual style to Office2013 style in Window2 to get the same look and feel as that of Window1. This has also been included in the above sample.
Please look into the sample and let us know whether it satisfies your requirement.
| |
Query 3:
I am adding a dynamic Datagrid to Window-2 based on the checkBox selection in window-2. and the header of the DataGrid should contain a textBox which is used to search Data in DatatGrid. Please help me how to do it. |
If you want to search text for particular column, you can override the
SearchCell method in SearchHelper class . In SearchCell method, based on MappingName you can skip the columns that you don’t want to search. And also We have created simple sample based on your requirement. In that sample, we have searched the text in “ContactID” column. Could you please refer the code and sample in below location, Code snippet:
Sample: http://www.syncfusion.com/downloads/support/forum/129914/ze/DataGrid_dynamicColumn-1823885516
For more details about search a text in dataGrid, you can make use of below link,
For more details about filter the records in dataGrid, you can make use of below link,
|
<Window.Resources>
<!-- Set TextBox at header row of grid-->
<DataTemplate x:Key="HeaderTemplate">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="20"/>
<RowDefinition Height="20"/>
<RowDefinition Height="5"/>
</Grid.RowDefinitions>
<TextBlock Grid.Row="0" TextAlignment="Center" Text="{Binding .}" />
<TextBox Grid.Row="1" Name="searchTextBox" TextAlignment="Center" />
</Grid>
</DataTemplate>
</Window.Resources> |
<Window.Resources>
<!-- load the button in grid header cell-->
<Style TargetType="syncfusion:GridRowHeaderCell">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="syncfusion:GridRowHeaderCell">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="20"/>
<ColumnDefinition Width="20"/>
</Grid.ColumnDefinitions>
<Button Grid.Column="0" Content="Copy" Click="Button_Click_1"syncfusion:FocusManagerHelper.FocusedElement="True"
syncfusion:VisualContainer.WantsMouseInput="True"/>
<Button Grid.Column="1" Content="Delete" Click="Button_Click_2"syncfusion:FocusManagerHelper.FocusedElement="True"/>
</Grid>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
</Window.Resources> |