Posted
on Jun 27, 2011
(permalink)
Hi Pavlina,
I am preparing the files but I need some time as the work is busy.
I have another questions about the grid display in IE, after I use the auto sizing, when the header is long and the content is short, the display is not perfect like the photo "grid problem2.jpg". When I use Chinese character it happen most. As one Chinese character can use up one line, the header use up a lot of space which is unnecessary. I want to display as the photo "grid problem2-2.jpg", is there a method to set the maximum height the header can use, or some more clever auto-sizing method?
Also, I try to change the text "No records to display" if there is no data to display. If I use <MasterTableView NoMasterRecordsText="Hello" > in the ascx file, the text can be changed to "Hello", but when I want to change in code it takes no effect.(It still shows "Hello")
RadGrid Grid = (RadGrid)sender;
int rowCount = Grid.Items.Count;
if (rowCount == 0)
{
gridReports_Telerik.MasterTableView.NoMasterRecordsText = "Test";
}
What is the reason of this problem and solution as I want to show different message for different table if no records to display.
Thank you for answering my questions.
Regards,
Kev