Hi,
I have a requirement in which I have to associate an AutoCompleteExtender (AJAX Control Tool kit 3.5) control with a column of UltraWebGrid.
In the design time my column is not editable. We make it editable at run time. At design time we have defined the columns in this way:
<igtbl:UltraGridColumn BaseColumnName="Comments" IsBound="True"
Key="Comments">
<Header Caption="Comments">
<RowLayoutColumnInfo OriginX="51" />
</Header>
<Footer>
</Footer>
</igtbl:UltraGridColumn>
At run time in "DataBound" event we are making that field editable in this way:
UltraGridRow.Cells.FromKey("Comments").AllowEditing = AllowEditing.Yes
Now, how can I associate the AutoCompleteExtender control with this column? This AutoCompleteExtender has to fetch the data through an asynchronous WebService call and show it in the editable text box for each row of the grid.
Please provide some help on this. If you have certain resources/links regarding this then also point me to the same.
Thanks.
Prateek
Hello Prateek,
Thank you for your update.
I created an isolated sample demonstrating the same behavior and I was not able to encounter the behavior.
I am using the latest service release of v10.3
I would recommend you installing the latest SR of v10.2 too.
Please refer to the attachment and feel free to modify it in order to reproduce the issue.
Hope hearing from you.
Thanks for the response.
Lets keep "AutoCompleteExtender" control on side for some time.
My main issue is in defining a bound Template Column in the UltraWebGrid. Below are the details:
I want to add a template column to the Infragistics Grid which display the data in the form of a text box control right from design time and is binded with a Data source assigned to the grid (Data Source is assigned and binded with the grid at runtime i.e. in the "Page_Load" event).
The problem is that the template column displays correctly as a text box at design time, but loses its text box behavior at run time and incorrectly displays in the form of a normal grid cell.
I am using the below code for the same.
<igtbl:TemplatedColumn key="COMMENT" Width="500px" IsBound="true"
AllowUpdate="Yes" Type="Custom" >
<Header Caption="Comment">
<RowLayoutColumnInfo OriginX="5" />
<CellTemplate>
<asp:TextBox id="txtComment" value
'
<%# Eval("COMMENT") %>'
</asp:TextBox>
</CellTemplate>
<RowLayoutColumnInfo OriginX="5"></RowLayoutColumnInfo>
</igtbl:TemplatedColumn>
My Core requirement is:
Please let me know how can I achive this and what is wrong in the above code.
I am also attaching code files for the same.
Association of AutoCompleteExtender with Bound UltraGridColumn is not supported.
Eventually you can use templated column with TextBox in the cell template and AutoCompleteExtender hooked to it, but you may experience issues like in the below forum threads:
http://forums.infragistics.com/forums/p/12498/46519.aspx#46519
http://forums.infragistics.com/forums/p/9570/79645.aspx
I recommend you using WebCombo control, which provides AutoComplete mode:
http://samples.infragistics.com/2009.2/WebFeatureBrowser/contents.aspx?showCode=true&t=WebGrid/WebComboSuggest/WebComboSuggest.aspx~srcview.aspx?path=../WebFeatureBrowserVB/WebGrid/WebComboSuggest/WebComboSuggest.src~srcview.aspx?path=WebGrid/WebComboSuggest/WebComboSuggest.src
You can use WebCombo in UltraWebGrid as EditorControl:
http://samples.infragistics.com/2009.2/WebFeatureBrowser/contents.aspx?showCode=true&t=WebGrid/AdjustableCombo/AdjustableCombo.aspx~srcview.aspx?path=../WebFeatureBrowserVB/WebGrid/AdjustableCombo/AdjustableCombo.src~srcview.aspx?path=WebGrid/AdjustableCombo/AdjustableCombo.src
Let me know if you need further assistance.