Hi,
Please I have 2 questions in RadGrid:
First : My grid have many columns and there width become very wide (about 2100px wide) so I use scroll to manage the view, the problem is the HTML container <TD> where the grid is become very wide ! it suppose not behavior like this even though I give the Grid width to 850px (so my <TD> width) and with the using of the scroll the <TD > must not effected and become very wide like this !.
Second: I have a problem with Custom Aggregate, my grid have 7 coulmn need Aggregate type Custom and I write the
Please I have 2 questions in RadGrid:
First : My grid have many columns and there width become very wide (about 2100px wide) so I use scroll to manage the view, the problem is the HTML container <TD> where the grid is become very wide ! it suppose not behavior like this even though I give the Grid width to 850px (so my <TD> width) and with the using of the scroll the <TD > must not effected and become very wide like this !.
Second: I have a problem with Custom Aggregate, my grid have 7 coulmn need Aggregate type Custom and I write the
CustomAggregate event procedure but the problem is as I read on this case the Result put in e.Result ! but I have 7 coulmns and each one have its own aggregation and different summation so how can I manage the CustomAggregate with more than one coulmn in my grid ? how I put the Result of each coulmn to its footer ?
Please help and advice me..
Thanks
Ban
9 Answers, 1 is accepted
0
Hello Ban,
Straight onto your questions:
#1:
May I ask you to clarify a little bit more your problem, because it is hard for me to understand what the problem exactly is? If the grid has frozen columns and the MasterTableView's HeaderStyle-Width property is not set it is possible <TD> element increase its width while you scroll the window. Is my assumption is right?
#2:
You can distinguish different columns in the OnCustomAggregates event handler using e.Column.UniqueName property. Please review the following code snippet:
Best wishes,
Georgi Krustev
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Straight onto your questions:
#1:
May I ask you to clarify a little bit more your problem, because it is hard for me to understand what the problem exactly is? If the grid has frozen columns and the MasterTableView's HeaderStyle-Width property is not set it is possible <TD> element increase its width while you scroll the window. Is my assumption is right?
#2:
You can distinguish different columns in the OnCustomAggregates event handler using e.Column.UniqueName property. Please review the following code snippet:
| protected void RadGrid1_CustomAggregate(object sender, GridCustomAggregateEventArgs e) |
| { |
| if (e.Column.UniqueName == "UniqueNameColumn1") |
| { |
| e.Result = "10"; |
| } |
| if (e.Column.UniqueName == "UniqueNameColumn2") |
| { |
| e.Result = "20"; |
| } |
| } |
Best wishes,
Georgi Krustev
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Ban
Top achievements
Rank 1
answered on 17 May 2009, 04:28 PM
Hi Georgi ;
Thanks for your replay, about the Grid problem I do not know why this happened with me, the grid is work okay and keep its width normal but the Table contains this grid is expanded and become very wide when I show more columns in the Grid and the scroll bar appear, BUT the problem become more confusing when I try my site on Opera browser and Firefox browser this problem did not appear !! its happened only with IE browser !!! ..
Thanks
Ban
Thanks for your replay, about the Grid problem I do not know why this happened with me, the grid is work okay and keep its width normal but the Table contains this grid is expanded and become very wide when I show more columns in the Grid and the scroll bar appear, BUT the problem become more confusing when I try my site on Opera browser and Firefox browser this problem did not appear !! its happened only with IE browser !!! ..
Thanks
Ban
0
Hello Ban,
Unfortunately I am still not able to replicate the issue you depicted locally.To progress in our investigation, I have attached a working test project. Please examine it and modify it in order to replicate the described erroneous behavior.
Regards,
Georgi Krustev
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Unfortunately I am still not able to replicate the issue you depicted locally.To progress in our investigation, I have attached a working test project. Please examine it and modify it in order to replicate the described erroneous behavior.
Regards,
Georgi Krustev
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
fer
Top achievements
Rank 1
answered on 26 May 2009, 07:58 PM
HI
I have the same situation. I tried to use e.Column.UniqueName, but it seems that "Column" property does not exist for parameter e, that is GridCustomAggregateEventArgs.
any ideas?
I have the same situation. I tried to use e.Column.UniqueName, but it seems that "Column" property does not exist for parameter e, that is GridCustomAggregateEventArgs.
any ideas?
0
Hello Fer,
Please examine the attached test project to my previous post. Feel free to use it as a base in order to replicate the described problem.
Greetings,
Georgi Krustev
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Please examine the attached test project to my previous post. Feel free to use it as a base in order to replicate the described problem.
Greetings,
Georgi Krustev
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Joseph Chiang
Top achievements
Rank 1
answered on 30 Jun 2009, 10:45 PM
Hi,
Thanks,
I have the same problem as well. However, I look at your attached file. It seems that you were attaching wrong project (GridWithManyColumns). Do you have sample codes for this?
Thanks,
0
Hello Joseph,
Excuse me for the misunderstanding. Please find the attached project to this message.
Best wishes,
Georgi Krustev
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Excuse me for the misunderstanding. Please find the attached project to this message.
Best wishes,
Georgi Krustev
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Joseph Chiang
Top achievements
Rank 1
answered on 01 Jul 2009, 03:26 PM
Hi,
I tried the following codes:
protected void RadGrid1_CustomAggregate(object sender, GridCustomAggregateEventArgs e)
{
if (e.Column.UniqueName == "TinyIntValue")
{
e.Result = "10";
}
if (e.Column.UniqueName == "TinyIntValue2")
{
e.Result = "20";
}
}
However, the GridCustomAggregateEventArgs object, e, only has Item and Result properties. It doesn't have Column property. Do you know the problem?
Thanks,
0
Hello Joseph,
Unfortunately I could not reproduce the described error. I am using latest official verion of RadControls in my attempt to replicate this issue. Note that e.Column property was added after Q1 2009 release of RadControls for ASP.NET AJAX. Please verify that you are using at least Q1 2009 version.
Regards,
Georgi Krustev
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Unfortunately I could not reproduce the described error. I am using latest official verion of RadControls in my attempt to replicate this issue. Note that e.Column property was added after Q1 2009 release of RadControls for ASP.NET AJAX. Please verify that you are using at least Q1 2009 version.
Regards,
Georgi Krustev
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.