|
Requirements |
|
| RadControls version |
2009.1.402.35 |
| .NET version |
3.5 SP1 |
| Visual Studio version |
2008 SP1 |
| programming language |
VB.NET / JavaScript |
| browser support |
all browsers supported by RadControls |
| <telerik:RadGrid ID="gridFundList" runat="server" AllowMultiRowSelection="false" |
| AllowAutomaticDeletes="false" AllowAutomaticInserts="false" AllowAutomaticUpdates="false" |
| AllowFilteringByColumn="false" AllowPaging="false" AllowSorting="false" ShowGroupPanel="false" |
| ShowFooter="false" ShowHeader="true" ShowStatusBar="true"> |
| <MasterTableView DataKeyNames="FundID" AutoGenerateColumns="false" ShowFooter="true"> |
| <Columns> |
| <telerik:GridButtonColumn UniqueName="Toggle" ButtonType="ImageButton" ImageUrl="~/images/buttonicons/lightbulb_off.png" |
| CommandName="ToggleReadable" ConfirmDialogType="RadWindow" ConfirmText="Are you sure you wish to change the global access settings for this fund?<br/><br/><strong>All</strong> applied rules for individual users <strong>will be</strong> removed.<br/><br/>Click <strong>OK</strong> to continue." |
| ConfirmTitle="Change Global Settings"> |
| <ItemStyle Width="30px" /> |
| </telerik:GridButtonColumn> |
| <telerik:GridBoundColumn UniqueName="FundID" DataField="FundID" DataFormatString="{0:00}" |
| HeaderText="Fund"> |
| <ItemStyle Width="75px" HorizontalAlign="Center" VerticalAlign="Top" /> |
| <HeaderStyle HorizontalAlign="Center" /> |
| </telerik:GridBoundColumn> |
| <telerik:GridBoundColumn UniqueName="Desc" DataField="FundName" HeaderText="Description"> |
| </telerik:GridBoundColumn> |
| <telerik:GridBoundColumn UniqueName="Count" DataField="TotalCostCenterItemsInFund" |
| HeaderText="Items In Fund" DataFormatString="{0:#,##0} items found." Aggregate="Sum"> |
| <ItemStyle HorizontalAlign="Right" Width="125px" /> |
| <FooterStyle HorizontalAlign="Right" /> |
| <HeaderStyle HorizontalAlign="Center" /> |
| </telerik:GridBoundColumn> |
| <telerik:GridBoundColumn UniqueName="RuleCount" DataField="FundRulesApplied" HeaderText="Rules Applied" |
| DataFormatString="{0:#,##0} rules applied." Aggregate="Sum"> |
| <ItemStyle HorizontalAlign="Right" Width="125px" /> |
| <FooterStyle HorizontalAlign="Right" /> |
| <HeaderStyle HorizontalAlign="Center" /> |
| </telerik:GridBoundColumn> |
| <telerik:GridBoundColumn UniqueName="CreateDate" DataField="CreateDate" DataFormatString="{0:d} at {0:t}" |
| HeaderText="Created"> |
| <ItemStyle Width="150px" /> |
| </telerik:GridBoundColumn> |
| <telerik:GridBoundColumn UniqueName="ModifyDate" DataField="ModifyDate" DataFormatString="{0:d} at {0:t}" |
| HeaderText="Modified"> |
| <ItemStyle Width="150px" /> |
| </telerik:GridBoundColumn> |
| </Columns> |
| </MasterTableView> |
| </telerik:RadGrid> |
| if(!$find('<GridID>').confirm('<Message>', event, '<Window Title>'))return false; |
| <telerik:GridButtonColumn UniqueName="Toggle" ButtonType="ImageButton" |
| ImageUrl="~/images/buttonicons/lightbulb_off.png" |
| CommandName="ToggleReadable"> |
| <ItemStyle Width="30px" /> |
| </telerik:GridButtonColumn> |
| Protected Sub gridFundList_ItemDataBound(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridItemEventArgs) Handles gridFundList.ItemDataBound |
| If e.Item.ItemType = Telerik.Web.UI.GridItemType.AlternatingItem Or e.Item.ItemType = Telerik.Web.UI.GridItemType.Item Then |
| Dim item As TUI.GridDataItem = DirectCast(e.Item, TUI.GridDataItem) |
| Dim data As Fund = item.DataItem |
| Dim btnToggle As ImageButton = DirectCast(item("Toggle").Controls(0), ImageButton) |
| If data.FundRulesApplied > 0 Then |
| ' This will affect other areas of the system. |
| ' Alert the user! |
| Dim message As String = "This change will impact other places in the system. Click OK to continue." |
| btnToggle.Attributes.Add("onclick", "if(!$find('" & gridFundList.ClientID & "').confirm('" & message & "', event, 'Change Global Settings'))return false;") |
| End If |
| End If |
| End Sub |

Hello, I have the new version of Telerik.Web.UI.dll and i founded a couple of issues.
With the older version this GridCalculatedColumn worked fine.
<
telerik:GridCalculatedColumn UniqueName="PorcentajeDesv" HeaderText="% Desv." DataFields="DeltaCin,DeltaCout,Porcentaje" Expression="IIF({0}<>0,{1}/{0}*100-Porcentaje,0.00)" DataFormatString="{0:######0.00}" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Right" FooterStyle-HorizontalAlign="Right" DataType="System.Decimal" Aggregate="Avg" HeaderStyle-Width="55"/>
I will describe the issues:
1 - Sys.WebForms.PageRequestManagerServerErrorException: Digit expected
This not work if i use expression like that: Expression="IIF({0}<>0,{1}/{0}*100-Porcentaje,0.00)"
If i use this: Expression="({1}/{0})*100-{2}" works ok.
But not work the aggregate AVG. Aggregate="Avg"
If i use Aggregate like count is ok, but not work with Avg.
I have the same problem with DataType="System.Decimal" in other columns.
The older version Telerik.Web.UI.dll is in production and work fine, with this new version (2010.1.309.35) is too dificult put in production i have all this errors. I need your help please about this problems.
Thanks.

|
Hi, I'm trying to do this simple thing but I can't do it yet. I have read some documentation and tried several ways and nothing, so I'd appreciate specific details to perform this task.
Thanks in advance.
| <telerik:RadTabStrip ID="RadTabStrip1" runat="server" Skin="Black" MultiPageID="RadMultiPage1" |
| SelectedIndex="0" Width ="300px" ontabclick="RadTabStrip1_TabClick"> |
| <Tabs> |
| <telerik:RadTab Text="Bronze" PageViewID="Bronze"> |
| </telerik:RadTab> |
| <telerik:RadTab Text="Silver" PageViewID="Silver"> |
| </telerik:RadTab> |
| <telerik:RadTab Text="Gold" PageViewID="Gold"> |
| </telerik:RadTab> |
| <telerik:RadTab Text="Black" PageViewID="Black"> |
| </telerik:RadTab> |
| </Tabs> |
| </telerik:RadTabStrip> |
| protected void grdCard_NeedDataSource(object source, Telerik.Web.UI.GridNeedDataSourceEventArgs e) |
| { |
| int CardColour = 0; |
| if (RadTabStrip1.SelectedTab.Text == "Silver") |
| { |
| CardColour = Convert.ToInt32(EnumAutoGenerated.MemberCardType.Silver); |
| } |
| else if (RadTabStrip1.SelectedTab.Text == "Gold") |
| { |
| CardColour = Convert.ToInt32(EnumAutoGenerated.MemberCardType.Gold); |
| } |
| else |
| { |
| CardColour = Convert.ToInt32(EnumAutoGenerated.MemberCardType.Silver); |
| } |
| MemberCardCollection oMemberCardCollection = new MemberCardCollection(); |
| oMemberCardCollection.Query.Select(); |
| oMemberCardCollection.Query.Where(oMemberCardCollection.Query.McrStaIDType.Equal(CardColour)); |
| oMemberCardCollection.Query.Load(); |
| grdCard.DataSource = oMemberCardCollection; |
| } |
I tried this but it only pick that last colour only, which is 3.
Thank you