Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
73 views
Hi,

I am using Ribbon UI in my master page. The content pages are within ajax update panel. I prompt my users to save the form details, when they navigate away from a page.

Scenario:
If a user does not save a form and tries to navigate away by clicking on a button in the ribbon UI(redirects to some other page), a prompt appears with Ok and Cancel. If the user clicks OK, he navigates to the link. If he clicks on cancel, the page redirection will not happen.

Error:

When the user clicks cancel, An "unspecified error" pops up. This happens only if the user tries to navigate by clicking a button in ribbon UI

function __doPostBack(eventTarget, eventArgument) {

 

 

if (!theForm.onsubmit || (theForm.onsubmit() != false)) {

 

theForm.__EVENTTARGET.value = eventTarget;

theForm.__EVENTARGUMENT.value = eventArgument;

theForm.submit();--------->Error here

}

}

saravanan k
Top achievements
Rank 1
 asked on 18 Apr 2010
0 answers
76 views
hi, sorry about the multiple posts on this, the forum kept saying there was an error.

I am having a problem where the client selected item is always the same.  I'm just using the javascript from the detecting selected file example, the only difference is that I have a custom FileBrowserContentProvider for sharepoint.  When I click a file in the grid, the event args passed to the selected item event handler are always for the first item instead of the one I selected.  I also tried using sender.get_selectedItem() instead, but that also always returns the first file item, even though the highlighted item is different.

Has anyone hit this problem before?  Any idea what might be causing this?
Ryan Fligg
Top achievements
Rank 1
 asked on 17 Apr 2010
1 answer
86 views
thx
Sean
Top achievements
Rank 1
 answered on 16 Apr 2010
2 answers
257 views
Using the following template column code I can define an aggregate for the column, but nothing is displayed. Does the declarative aggregate work now for a GridTemplateColumn, and if so, what can I do to display the result?

<telerik:GridTemplateColumn UniqueName="IsInvitationAccepted"
    DataField="IsInvitationAccepted"
    HeaderText="Confirmed?"
    HeaderTooltip="Has this speaker confirmed their acceptance?"
    HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center"
    FooterStyle-HorizontalAlign="Center"
    Aggregate="Sum" FooterAggregateFormatString="Confirmed: {0:F0}"
    >
    <ItemTemplate>
        <asp:Label ID="LabelInvitationAccepted" runat="server" 
            Text='<%# Convert.ToInt32(Eval("IsInvitationAccepted"))==1?"Yes":"No" %>' />
    </ItemTemplate>
</telerik:GridTemplateColumn>
The Wire
Top achievements
Rank 1
 answered on 16 Apr 2010
6 answers
963 views
Hi
I am having a radgrid its multiselection is set true.After selectcommand i select rows ....Its deselecting After the deselect command only...
But i want to deselect the selected rows after a button click..Is there any property for that??
Please share suggessions


lekha
Daniel
Telerik team
 answered on 16 Apr 2010
4 answers
149 views
The chart looks good in the viewer but none of the labels print out with a transparent background. Every label has a white background which makes the chart look like everything overlaps with white boxes and cuts out  a section of a bar next to it. I have set transparency in the series item label appearance and so on. It's a 3 series chart with 25 points so they are narrow bars. So how do I get the print out to match the screen? Also its doing this on all the printers around here.
Richard Cockerham
Top achievements
Rank 1
 answered on 16 Apr 2010
3 answers
192 views
This is odd. I just upgraded my web project from the old RadControls for ASP.NET to the latest ASP.NET AJAX controls.  I have several hierarchy grids that use the HideExpandColumnRecursive method.  These worked fine under the old controls.

With the new controls, the ExpandCollapse button hides as it should when there are no child records in the 2nd level.

But, if there are child records, then the ExpandCollapse button is visible.  When I click on it,
The column containing the buttons narrows, the button icon narrows, but nothing else happens.
On a second click the child grid opens as expented, and the button column remains narrowed.
On subsequent button clicks, the child grid opens and closes ok.

If I refresh the page, then once again two clicks are needed to expand the row.

Has anyone else run into this?  Thanks.

Dan
Dan
Top achievements
Rank 2
 answered on 16 Apr 2010
3 answers
374 views
I am tring to add a custom aggregate to a group footer. I need to step throught all the data in the grid for that group. I just can't seem to find the values.
Please tell me how to change this.

Thanks,

Protected Sub dgrPartnerTransactions_CustomAggregate(ByVal sender As ObjectByVal e As Telerik.Web.UI.GridCustomAggregateEventArgs) Handles dgrPartnerTransactions.CustomAggregate  
        Dim items As GridItem() = Me.dgrPartnerTransactions.MasterTableView.GetItems(GridItemType.Item)  
        Dim Amount As Int32 = 0  
        For Each index As GridDataItem In items  
            Amount = Amount + CType(index.GetDataKeyValue("TransactionAmount"), Int32)  
        Next 
        e.Result = Amount.ToString()  
    End Sub 

<telerik:RadGrid PageSize="100" ID="dgrPartnerTransactions" ShowGroupPanel="true" 
                    runat="server" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False" 
                    Skin="Office2007" GridLines="None" Width="99%" ShowFooter="true">  
                    <PagerStyle Mode="NextPrevNumericAndAdvanced" /> 
                    <MasterTableView TableLayout="Fixed" ShowGroupFooter="true">  
                        <RowIndicatorColumn> 
                            <HeaderStyle Width="20px"></HeaderStyle> 
                        </RowIndicatorColumn> 
                        <ExpandCollapseColumn> 
                            <HeaderStyle Width="20px"></HeaderStyle> 
                        </ExpandCollapseColumn> 
                        <Columns> 
                          
                            <telerik:GridTemplateColumn HeaderText="" UniqueName="DeleteThis" Groupable="false">  
                                <HeaderStyle HorizontalAlign="Center" Width="30px"></HeaderStyle> 
                                <ItemStyle HorizontalAlign="Center" Width="30px"></ItemStyle> 
                                <ItemTemplate> 
                                    <asp:CheckBox ID="DeleteThis" runat="server" /> 
                                    <asp:Label runat="server" Visible="False" ID="lblPartnerTransactionID" Text='<%#DataBinder.Eval(Container, "DataItem.PartnerTransactionID")%>'></asp:Label> 
                                </ItemTemplate> 
                            </telerik:GridTemplateColumn> 
              
                            <telerik:GridTemplateColumn UniqueName="TemplateEditColumn" Groupable="false">  
                                <HeaderStyle HorizontalAlign="Center" Width="30px"></HeaderStyle> 
                                <ItemStyle HorizontalAlign="Center" Width="30px"></ItemStyle> 
                                <ItemTemplate> 
                                    <asp:HyperLink ID="hypEditLink" runat="server" Text="Edit" NavigateUrl="#" OnClick='<%# getEditWindowURL( DataBinder.Eval(Container, "DataItem.PartnerTransactionID") ) %>'></asp:HyperLink> 
                                </ItemTemplate> 
                            </telerik:GridTemplateColumn>                  
                                
                            <telerik:GridTemplateColumn HeaderText="Transaction Type" UniqueName="PartnerTransactionType" 
                                Groupable="false" DataField="PartnerTransactionType" SortExpression="PartnerTransactionType" 
                                GroupByExpression="PartnerTransactionType Group By PartnerTransactionType">  
                                <HeaderStyle HorizontalAlign="Left"></HeaderStyle> 
                                <ItemStyle HorizontalAlign="Left"></ItemStyle> 
                                <ItemTemplate> 
                                    <%#DataBinder.Eval(Container, "DataItem.PartnerTransactionType")%>&nbsp;  
                                </ItemTemplate> 
                            </telerik:GridTemplateColumn> 
                  
                            <telerik:GridTemplateColumn HeaderText="Date" UniqueName="TransactionDate" Groupable="false" 
                                DataField="TransactionDate" SortExpression="TransactionDate" GroupByExpression="TransactionDate Group By TransactionAmount">  
                                <HeaderStyle HorizontalAlign="Center"></HeaderStyle> 
                                <ItemStyle HorizontalAlign="Center"></ItemStyle> 
                                <ItemTemplate> 
                                    <%#DataBinder.Eval(Container, "DataItem.TransactionDate", "{0:d}")%>&nbsp;  
                                </ItemTemplate> 
                            </telerik:GridTemplateColumn> 
                  
                            <telerik:GridTemplateColumn HeaderText="Amount" UniqueName="TransactionAmount" Groupable="false" 
                                DataField="TransactionAmount" SortExpression="TransactionAmount" Aggregate="Custom">  
                                <HeaderStyle HorizontalAlign="Center"></HeaderStyle> 
                                <ItemStyle HorizontalAlign="Center"></ItemStyle> 
                                <ItemTemplate> 
                                    <%#DataBinder.Eval(Container, "DataItem.TransactionAmount", "{0:C}")%>&nbsp;  
                                </ItemTemplate> 
                            </telerik:GridTemplateColumn> 
                  
                            <telerik:GridTemplateColumn HeaderText="Check Number" UniqueName="CheckNumber" Groupable="false" 
                                DataField="CheckNumber" SortExpression="CheckNumber" GroupByExpression="CheckNumber Group By CheckNumber">  
                                <HeaderStyle HorizontalAlign="Left"></HeaderStyle> 
                                <ItemStyle HorizontalAlign="Left"></ItemStyle> 
                                <ItemTemplate> 
                                    <%#DataBinder.Eval(Container, "DataItem.CheckNumber")%>&nbsp;  
                                </ItemTemplate> 
                            </telerik:GridTemplateColumn> 
                  
                            <telerik:GridTemplateColumn HeaderText="Paid Out of Escrow?" UniqueName="PaidOutOfEscrow" 
                                Groupable="false" DataField="PaidOutOfEscrow" SortExpression="PaidOutOfEscrow" 
                                GroupByExpression="PaidOutOfEscrow Group By PaidOutOfEscrow">  
                                <HeaderStyle HorizontalAlign="Left"></HeaderStyle> 
                                <ItemStyle HorizontalAlign="Left"></ItemStyle> 
                                <ItemTemplate> 
                                    <%#FormatYesNo(DataBinder.Eval(Container, "DataItem.PaidOutOfEscrow"))%>&nbsp;  
                                </ItemTemplate> 
                            </telerik:GridTemplateColumn>                 
                                    
                            <telerik:GridTemplateColumn HeaderText="Property" UniqueName="PropertyAddress" DataField="PropertyAddress" 
                                SortExpression="PropertyAddress" GroupByExpression="PropertyAddress Group By PropertyAddress">  
                                <HeaderStyle HorizontalAlign="Left"></HeaderStyle> 
                                <ItemStyle HorizontalAlign="Left"></ItemStyle> 
                                <ItemTemplate> 
                                    <href='PropertyDetails.aspx?PropertyID=<%#DataBinder.Eval(Container, "DataItem.PropertyID")%>' 
                                        target="_blank">  
                                        <%#DataBinder.Eval(Container, "DataItem.PropertyAddress")%></a>&nbsp;  
                                </ItemTemplate> 
                            </telerik:GridTemplateColumn>                 
              
                            <telerik:GridTemplateColumn HeaderText="Transaction Note" UniqueName="TransactionNote" 
                                Groupable="false" DataField="TransactionNote" SortExpression="TransactionNote" 
                                GroupByExpression="TransactionNote Group By TransactionNote">  
                                <HeaderStyle HorizontalAlign="Left"></HeaderStyle> 
                                <ItemStyle HorizontalAlign="Left"></ItemStyle> 
                                <ItemTemplate> 
                                    <%#DataBinder.Eval(Container, "DataItem.TransactionNote")%>&nbsp;  
                                </ItemTemplate> 
                            </telerik:GridTemplateColumn> 
                  
                            <telerik:GridTemplateColumn HeaderText="Document" UniqueName="PropertyID" Groupable="false">  
                                <ItemTemplate> 
                                    <%#getDocumentURL(DataBinder.Eval(Container, "DataItem.DocumentName"), DataBinder.Eval(Container, "DataItem.DocumentLocation"))%>&nbsp;  
                                </ItemTemplate> 
                            </telerik:GridTemplateColumn>   
               
                 
                            <telerik:GridTemplateColumn HeaderText="Balance" UniqueName="Balance" Groupable="false" 
                                DataField="Balance" SortExpression="Balance"   
                                GroupByExpression="Balance Group By Balance">  
                                <HeaderStyle HorizontalAlign="Center"></HeaderStyle> 
                                <ItemStyle HorizontalAlign="Right"></ItemStyle> 
                                <ItemTemplate> 
                                    <%#DataBinder.Eval(Container, "DataItem.Balance", "{0:C}")%>&nbsp;  
                                </ItemTemplate> 
                            </telerik:GridTemplateColumn> 
               
                  
                        </Columns> 
                        <GroupByExpressions> 
                            <telerik:GridGroupByExpression> 
                                <GroupByFields> 
                                    <telerik:GridGroupByField FieldName="PropertyID" /> 
                                </GroupByFields> 
                                <SelectFields> 
                                    <telerik:GridGroupByField FieldName="TransactionAmount" HeaderText="TransactionAmount" /> 
                                </SelectFields> 
                            </telerik:GridGroupByExpression> 
                        </GroupByExpressions> 
              
                    </MasterTableView> 
                      
                    <ClientSettings AllowDragToGroup="false" AllowGroupExpandCollapse="true" AllowColumnsReorder="true">  
                        <Scrolling AllowScroll="False" UseStaticHeaders="True" SaveScrollPosition="true" 
                            FrozenColumnsCount="1"></Scrolling> 
                    </ClientSettings> 
                      
                    <FilterMenu EnableTheming="True">  
                        <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation> 
                    </FilterMenu> 
                </telerik:RadGrid> 

Aaron Spilman
Top achievements
Rank 1
 answered on 16 Apr 2010
2 answers
108 views
Hi,
We are upgrading our website from ASP.Net 2.0 to ASP.Net 4.0 with Visual Studio 2010 and Telerik controls for 2010 Q1. After installing telerik 2010 Q1 version  i only see two dlls System.Web.UI and System.Web.Design. In our current application we are using Telerik.Charting.dll. How can i get access to the charting features in the new Telerik dlls. We have some web pages which use these charts. Please explain how to upgrade the charts we have to the new version.


Thanks
Nishat Mazhar
Top achievements
Rank 1
 answered on 16 Apr 2010
1 answer
404 views
I have a grid that I am using to display search results in.  This is my first project using a RadGrid.  I'm using VB.Net in Visual Studio 2008.

I created the 3 columns ahead of time and then when the search is run I fill a DataSet with the SQL query results, set the DataSet as the "DataSource" and then call "Rebind" on the grid.

The grid properly redraws and shows me that there were 3 rows of results returned, but each cell of the table simply shows "System.Data.DataRowView" instead of the actual values.

Is there some property I'm missing somewhere that is causing the table to not show me the actual data in my DataSet?
Pavlina
Telerik team
 answered on 16 Apr 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?