This is a migrated thread and some comments may be shown as answers.

Error with RadGrid and TooltipManager

4 Answers 62 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Ronnie
Top achievements
Rank 1
Ronnie asked on 15 Sep 2008, 07:35 PM
I have a radgrid with a tooltip manager.  Everything works just fine when the page loads, but when I click on any of the select buttons to open up a radwindow and enter data, the tool tip stops working.  If I then mouse over any of the headers I get an empty box and then an error message that says:

"Validation of viewstate MAC failed.  If this application is hosted by a Web Farm or cluster, ensure that <machineKey> configuration specifies the same validationKey and validation algorithm.  AutoGenerate cannot be used in a cluster."

This is running from the Visual Studio environment on my local computer, not a server.  Another wierd thing is if I click on the Edit button in the grid, everything will go back to normal.  It only seems to happen when I use my Select buttons with the RadWindows.

Thanks

4 Answers, 1 is accepted

Sort by
0
Accepted
Princy
Top achievements
Rank 2
answered on 16 Sep 2008, 11:16 AM
Hi Ronnie,

Check out this asp.net forums link to know more on how this error is caused.

http://forums.asp.net/p/955145/1173230.aspx#1173230

Thanks,
Princy
0
Ronnie
Top achievements
Rank 1
answered on 16 Sep 2008, 03:52 PM
Thanks so much for the reply Princy.  By adding in this line to my web.config file it removed the error message that I was getting:

<

pages enableEventValidation="false" viewStateEncryptionMode="Never">

But I am still having the issue where my tooltip only works correctly after the page is loaded for the first time.  If I open my RadWindow from the grid, and then close the RadWindow, my tooltip doesn't work properly.  Instead, the tooltip seems to appear over my headers in the grid and it is just a blank box.  If I go in and then use the "Add New Record" function, it will sometimes cause a post back which will reset the original tooltip and it starts working again.  Do you have any idea as to why it would stop working after using a RadWindow with a "Select" button in the datagrid?

Thanks

0
Ronnie
Top achievements
Rank 1
answered on 16 Sep 2008, 04:05 PM
I belive that I have figured out the issue with the tooltip not working after using a RadWindow function.  I had this line in my Page_Load function and when I removed it, it appears to have fixed the issue.

Me.RadToolTipManager1.TargetControls.Clear()

Thanks for all your help Princy!
0
Ronnie
Top achievements
Rank 1
answered on 16 Sep 2008, 04:05 PM
I belive that I have figured out the issue with the tooltip not working after using a RadWindow function.  I had this line in my Page_Load function and when I removed it, it appears to have fixed the issue.

Me.RadToolTipManager1.TargetControls.Clear()

Thanks for all your help Princy!
Tags
Grid
Asked by
Ronnie
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Ronnie
Top achievements
Rank 1
Share this question
or