Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
160
adding textbox and Lookup button in a single column in Infagistics grid and populating the textbox on selecting a row in lookup button click
posted

Hi,

I am working on Infragistics Datagrid (V 10.2), I have a field that contains a TextBox and a Lookup Button that popsup a window with a table of 3 other columns on button click  event. I am good till this.

But my problem here is, when i select a row in popup window, all the vales in the three fields of the popup window should be binded to the textbox beside the lookup button and other two fields in the infragistics grid.

These are the styles I wrote for Button and TextBox: 

 

 

 

<Style TargetType="{x:Type igDP:CellValuePresenter}" x:Key ="SearchButtonFieldStyle">

 

 

 

<Setter Property="ContentTemplate">

 

 

 

<Setter.Value>

 

 

 

<DataTemplate>

 

 

 

<DockPanel>

 

 

 

<igRibbon:ButtonTool Height="22" DockPanel.Dock="Right" Name="btnGridLookUp" SmallImage="/Images/Lookup.png" ToolTip="LookUp" Width="27" Click="btnGridLookUp_Click">

<igRibbon:ButtonTool.BitmapEffect>

 

 

 

 

<BitmapEffectGroup>

 

 

 

 

<DropShadowBitmapEffect />

 

 

 

 

</BitmapEffectGroup>

 

 

 

 

</igRibbon:ButtonTool.BitmapEffect>

 

 

 

 

</igRibbon:ButtonTool>

 

 

 

 

<ContentPresenter Content="{TemplateBinding Content}"/>

 

 

 

 

</DockPanel>

 

 

 

 

</DataTemplate>

 

 

 

 

</Setter.Value>

 

 

 

 

</Setter>

 

 

 

 

</Style>

 

 

 

 

<Style TargetType="{x:Type igEditors:XamTextEditor}" x:Key="TextStyle">

 

 

 

 

<Setter Property="Background" Value="Transparent" />

</Style>

This is how I binded them to Grid:

 

 

 

 

 

 

 

<igDP:Field Name="Col3" Label="TestSample" Width="80">

 

 

 

<igDP:Field.Settings>

 

 

 

<igDP:FieldSettings CellValuePresenterStyle="{StaticResource SearchButtonFieldStyle}" EditorStyle="{StaticResource TextStyle}"/>

 

 

 

</igDP:Field.Settings>

 

 

 

</igDP:Field>

Here I am not sure of how to access/bind a value to the textbox beside the button.

Please advise.

Thanks,

Rakesh