This question is locked. New answers and comments are not allowed.
My Silverlight RadGridView requirement is such that I have a grid with a set number of columns that are defined at design time. Then, depending on the data set that is loaded, I have to dynamically add N additional columns to the grid. Each dynamic column needs to be unbound and have the ability have text entered.
The approach I took was to define a DataTemplate as a page resource and then use the DataTemplate as a CellTemplate for each run-time created column. The data template is defined simply as a <TextBox>.
Everything loads and displays correctly. The issue, however, is that when I tab through the grid and come to one of the dynamically added columns, I have to tab twice to be able to enter the data (once to gain focus on the column and again to gain focus on the textbox). Then, sometimes when I tab out and then tab back over the cell to which I entered data, the data will be erased.
What am I missing so that the grid behaves as it should, and expected? That is, only have to tab once between cells to enter data in the dynamically added cell and then not loose any data?
Thanks.
The approach I took was to define a DataTemplate as a page resource and then use the DataTemplate as a CellTemplate for each run-time created column. The data template is defined simply as a <TextBox>.
Everything loads and displays correctly. The issue, however, is that when I tab through the grid and come to one of the dynamically added columns, I have to tab twice to be able to enter the data (once to gain focus on the column and again to gain focus on the textbox). Then, sometimes when I tab out and then tab back over the cell to which I entered data, the data will be erased.
What am I missing so that the grid behaves as it should, and expected? That is, only have to tab once between cells to enter data in the dynamically added cell and then not loose any data?
Thanks.