Hello, i have this problem that i load the data on separate threads for each template, so when i initialize the datagrid, the caption of my tags have the text loading, and when the data is loaded i want to change it to its original text. The problem is that if i have my row expanded the caption wont change, unless i open another form and then get back to my form again.
Can you please help me on what should i do to solve this? maybe i am missing something.
Thanks for your help and sorry for any error my English may have,
Best regards, Rui Silva
Can you please help me on what should i do to solve this? maybe i am missing something.
Thanks for your help and sorry for any error my English may have,
Best regards, Rui Silva
6 Answers, 1 is accepted
0

Emanuel Varga
Top achievements
Rank 1
answered on 25 Nov 2010, 03:17 PM
Hello Rui,
Did you try calling a Refresh() on the grid?
Hope this helps, if you have any other questions or comments, please let me know,
Best Regards,
Emanuel Varga
Telerik WinForms MVP
Did you try calling a Refresh() on the grid?
Hope this helps, if you have any other questions or comments, please let me know,
Best Regards,
Emanuel Varga
Telerik WinForms MVP
0

Rui Silva
Top achievements
Rank 1
answered on 25 Nov 2010, 03:19 PM
Hi, thanks for the answer.
Yes i did, on the grid and on all of its templates, but nothing seems to work :\ Debugging my project the caption is altered but it stays the same, unless i change window and come back to it again.
Yes i did, on the grid and on all of its templates, but nothing seems to work :\ Debugging my project the caption is altered but it stays the same, unless i change window and come back to it again.
0
Accepted

Emanuel Varga
Top achievements
Rank 1
answered on 25 Nov 2010, 03:23 PM
Hello again,
Ok, then you could try wrapping all of the logic with radGridView.BeginUpdate() .... radGridView.EndUpdate(true), this should force the grid to redraw.
But like this it would be very hard to get to the root of this problem, if this does not work i would like to ask you, if you can, to create a very small application and paste it here, so that i can take a look on what is causing the problem exactly.
Hope this helps, if you have any other questions or comments, please let me know,
Best Regards,
Emanuel Varga
Telerik WinForms MVP
Ok, then you could try wrapping all of the logic with radGridView.BeginUpdate() .... radGridView.EndUpdate(true), this should force the grid to redraw.
But like this it would be very hard to get to the root of this problem, if this does not work i would like to ask you, if you can, to create a very small application and paste it here, so that i can take a look on what is causing the problem exactly.
Hope this helps, if you have any other questions or comments, please let me know,
Best Regards,
Emanuel Varga
Telerik WinForms MVP
0

Rui Silva
Top achievements
Rank 1
answered on 25 Nov 2010, 03:35 PM
That actualy solved my problem!
Many thanks for your help and the speed doing it :)
Many thanks for your help and the speed doing it :)
0

Rui Silva
Top achievements
Rank 1
answered on 25 Nov 2010, 03:37 PM
Allow my just one more question. Is it possible to use an animated gif on the caption? I tried to use one with html in text, but the image is still.
Thank you
Thank you
0

Emanuel Varga
Top achievements
Rank 1
answered on 25 Nov 2010, 04:24 PM
Hello again,
This was a harder one to find because you cannot access the pageview used for the hierarchical tabs directly, but you can use the following:
Hope this helps, if you have any other questions or comments, please let me know,
Best Regards,
Emanuel Varga
Telerik WinForms MVP
This was a harder one to find because you cannot access the pageview used for the hierarchical tabs directly, but you can use the following:
void
radGridView1_ChildViewExpanded(
object
sender, ChildViewExpandedEventArgs e)
{
var children = radGridView1.RootElement.FindDescendant(
typeof
(RadPageViewStripElement))
as
RadPageViewStripElement;
foreach
(var item
in
children.Items)
{
item.Image = Properties.Resources.someGifFile;
}
}
Hope this helps, if you have any other questions or comments, please let me know,
Best Regards,
Emanuel Varga
Telerik WinForms MVP