I am developing in Visual Studio 2012. I am using WebDataGid version 12.2 in a project.
The problem I am about to describe does not seem to be browser dependant. It happens in IE and Chrome.
I created this project to pratice working with the webdatagrid. It is a simple set of address records. Name, Address, City, State, Zip, etc.
I have the grid working properly as far as the CRUD methods. I can insert, update and delete records with no problem. However, an unusual visual effect occurs after I update any given row.
I click on a cell, in a row, and make it active using the F2 key or double-clicking. At this time the entire row is highlighted. After changing information in the selected cell, I tab to commit the change to the cell. Now the cell to its right has the focus recticle around it. So far so good. Now, to commit the cell/row change to the database I down arrow to the next row in the grid
The record is saved to the database, and the focus recticle moves to the appropriate cell in the row after the one just saved. The selector column for the new row is now highlighted. Again, good so far. However, a second after the new row is selected, the row above (the one that was just updated) gets highlighted again. Its not really selected, just highlighted. Any input I make at this point is directed to the next row
So, the row I just updated is highlighted again, and the next row below it has its selector column highlighted and seems to have proper input focus.
Any thoughts?
Hi hogleg,
Thanks for posting in our forums!
I attempted to reproduce this in a simple test sample and have not been able to see this behavior.
This raised a few questions I would like to know more about. Could you please tell me a little more information about this issue?
1.) What properties and behaviors do you have set on the grid? From your post, I can already assume you have Cell Editing, Selection, and Activation enabled.
2.) Do you have the WebDataGrid in an UpdatePanel? If so, what do you have the EnableAjax property of the WebDataGrid set to?
3.) What is the DOCTYPE you are using on the page?
4.) Any other information you have readily available that would help me reproduce this issue would be helpful.
Looking forward to hearing from you.
I am trying to paste page markup to send to you but anything I paste using code blocks or pre tags looks horrible. How can I show you my page markup and code behind? This would answer all your questions plus some. This is a sample project, so there is no proprietary data involved.
To answer your immediate questions - yes the grid is in an update panel. I have enable ajax set to false. The doctype is "html". As far as options it would be helpfull to show you the markup.
Thanks for answering my questions.
You could zip up and attach your sample to the forum thread to get me your code. You can attach the file through the Options tab, when writing your reply.
There is a file limit on this upload feature(I'm not actually sure what size though), so if the file is too large, another alternative would be to email it to support@infragistics.com with this case number, CAS-131398-J2T8K2, in the subject of the email.
I will be able to look into this more closely once I receive your other information and I can get back to you within a few work days.
Michael,
I have attached a zip file containing information that should be helpful
Thanks for your help
Hello hogleg,
Thank you for the sample. I have been able to reproduce the issue and test with it. I have created a support case for you with an ID of CAS-131398-J2T8K2. The matter has been determined to be a development issue and has been logged in our tracking system with ID: 164552.
I will leave this support case open and update you with any new information. You can view the status of the development issue connected to this case by going to the “Account” tab on our website, selecting "My Support Activity" and then this support case will be listed there. Then, you may select the "Development Issues" tab to view details of this development issue.
Please let me know if you have any questions.
Micheal,
I have implemented the workaround and it works great now
Thanks
I have heard back from our developers on this. A workaround is available for this by defining the Selection behavior before the Editing behavior, such as the following:
<Behaviors> <ig:Selection RowSelectType="Single" CellClickAction="Row"></ig:Selection> <ig:EditingCore> <Behaviors> <ig:CellEditing> </ig:CellEditing> </Behaviors> </ig:EditingCore> <ig:RowSelectors></ig:RowSelectors> <ig:Activation></ig:Activation> </Behaviors>
This allows the Selection events to update before the Editing behavior commits the rows, which allows the selected rows to appear correctly after the postback.
If you need further assistance with this, please let me know.