Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
175 views
Need help :)
The scenario: I have a radgrid with popup edit form. When the user able to view the details in the popup by article ID, then I need a button in this edit form that when the user click this button, it will open up outlook new message and create a link to view this specific article ID edit form. When user receive the email and click on the link, they will be able to view the article ID in the popup edit form.

Is this possible or is that a best way to achieve this kind of scenario?

Thanks!
Radoslav
Telerik team
 answered on 29 Jan 2010
7 answers
139 views
The ImageSrc icon to select a background image invokes the same DbContentProvider class as the Image Manager icon in the toolbar.

How do I invoke a different DbContentProvider class?

Thanking you in anticipation.

Roger
Rumen
Telerik team
 answered on 29 Jan 2010
4 answers
150 views
Hi everybody, i have a problem, i have two tables related by a field, itemNumber, i set one as the MasterTableView data source and the other as the DetailsTable datasource, i have defined the ParentTableRelation but when i expand one row of the mastertableview all of the items on the second table are shown. Both tables use different asp:ObjectDataSource, the SelectMethods return an datatable. Please help, here is the code. Thanks in advance.

<%@ Control 
    Language="C#" 
    AutoEventWireup="true" 
    CodeFile="ShoppingCart.ascx.cs" 
    Inherits="Controls_ShoppingCart" %> 
 
<%@ Register 
    Assembly="Telerik.Web.UI" 
    Namespace="Telerik.Web.UI" 
    TagPrefix="telerik" %> 
 
<%@ Register 
    Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" 
    Namespace="System.Web.UI" 
    TagPrefix="asp" %> 
 
<telerik:RadAjaxManager 
    ID="radAjaxManagerRadGridShoppingCart" 
    runat="server"
    <AjaxSettings> 
        <telerik:AjaxSetting 
            AjaxControlID="radGridShoppingCart"
            <UpdatedControls> 
                <telerik:AjaxUpdatedControl 
                    ControlID="radGridShoppingCart" 
                    LoadingPanelID="radAjaxLoadingPanelRadGridShoppingCart" /> 
            </UpdatedControls> 
        </telerik:AjaxSetting> 
    </AjaxSettings> 
</telerik:RadAjaxManager> 
<telerik:RadAjaxLoadingPanel 
    ID="radAjaxLoadingPanelRadGridShoppingCart" 
    runat="server" 
    Skin="Default"
</telerik:RadAjaxLoadingPanel> 
<telerik:RadGrid 
    ID="radGridShoppingCart" 
    runat="server" 
    AutoGenerateColumns="False" 
    GridLines="None" 
    DataSourceID="ObjectDataSource1" 
    Width="96%"
<MasterTableView 
        AllowSorting="True" 
        AllowCustomSorting="True" 
        AllowPaging="True" 
        CellPadding="0" 
        CellSpacing="0" 
        DataKeyNames="cartNumber,type,itemNumber" 
        DataSourceID="ObjectDataSource1" 
        HierarchyDefaultExpanded="false" 
        HierarchyLoadMode="Client">         
        <Columns> 
            <telerik:GridTemplateColumn 
                DataField="cartNumber" 
                UniqueName="colcartNumber" 
                SortExpression="cartNumber"
                <ItemTemplate> 
                    <asp:Label 
                        ID="lblcartNumber" 
                        runat="server" 
                        CssClass="gridItem" 
                        Text='<% #Eval("cartNumber") %>'
                    </asp:Label> 
                </ItemTemplate> 
                <ItemStyle 
                    HorizontalAlign="Center" /> 
                <HeaderStyle HorizontalAlign="Center" /> 
            </telerik:GridTemplateColumn> 
            <telerik:GridTemplateColumn 
                DataField="itemNumber" 
                UniqueName="colItemNumber" 
                SortExpression="itemNumber"
                <ItemTemplate> 
                    <asp:Label 
                        ID="lblItemNumber" 
                        runat="server" 
                        CssClass="gridItem" 
                        Text='<% #Eval("itemNumber") %>'
                    </asp:Label> 
                </ItemTemplate> 
                <ItemStyle 
                    HorizontalAlign="Center" /> 
                <HeaderStyle HorizontalAlign="Center" /> 
            </telerik:GridTemplateColumn> 
            <telerik:GridTemplateColumn 
                DataField="itemDesc" 
                UniqueName="colDescription" 
                SortExpression="itemDesc"
                <ItemTemplate> 
                    <asp:Label 
                        ID="lblDescription" 
                        runat="server" 
                        CssClass="gridItem" 
                        Text='<% #Eval("itemDesc") %>'
                    </asp:Label> 
                </ItemTemplate> 
                <ItemStyle 
                    HorizontalAlign="Left" /> 
                <HeaderStyle HorizontalAlign="Left" /> 
            </telerik:GridTemplateColumn> 
            <telerik:GridTemplateColumn 
                DataField="itemCode" 
                UniqueName="colProduct" 
                SortExpression="itemCode"
                <ItemTemplate> 
                    <asp:Label 
                        ID="lblProduct" 
                        runat="server" 
                        CssClass="gridItem" 
                        Text='<% #Eval("itemCode") %>'
                    </asp:Label> 
                </ItemTemplate> 
                <ItemStyle 
                    HorizontalAlign="Right" /> 
                <HeaderStyle HorizontalAlign="Right" /> 
            </telerik:GridTemplateColumn> 
            <telerik:GridTemplateColumn 
                DataField="itemQuentiy" 
                UniqueName="colQuantity" 
                SortExpression="itemQuentiy"
                <ItemTemplate> 
                    <asp:Label 
                        ID="lblQuantity" 
                        runat="server" 
                        CssClass="gridItem" 
                        Text='<% #Eval("itemQuentiy") %>'
                    </asp:Label> 
                </ItemTemplate> 
                <ItemStyle 
                    HorizontalAlign="Right" /> 
                <HeaderStyle HorizontalAlign="Right" /> 
            </telerik:GridTemplateColumn> 
            <telerik:GridTemplateColumn 
                DataField="umBapi" 
                UniqueName="colUnit" 
                SortExpression="umBapi"
                <ItemTemplate> 
                    <asp:Label 
                        ID="lblUnit" 
                        runat="server" 
                        CssClass="gridItem" 
                        Text='<% #Eval("umBapi") %>'
                    </asp:Label> 
                </ItemTemplate> 
                <ItemStyle 
                    HorizontalAlign="Center" /> 
                <HeaderStyle HorizontalAlign="Center" /> 
            </telerik:GridTemplateColumn> 
            <telerik:GridTemplateColumn 
                DataField="leadTime" 
                UniqueName="colDeliveryDate" 
                SortExpression="leadTime"
                <ItemTemplate> 
                    <asp:Label 
                        ID="lblDeliveryDate" 
                        runat="server" 
                        CssClass="gridItem" 
                        Text='<% #Eval("leadTime") %>'
                    </asp:Label> 
                </ItemTemplate> 
                <ItemStyle 
                    HorizontalAlign="Center" /> 
                <HeaderStyle HorizontalAlign="Center" /> 
            </telerik:GridTemplateColumn> 
            <telerik:GridTemplateColumn 
                DataField="netPrice" 
                UniqueName="colPrice"
                <ItemTemplate> 
                    <asp:Label 
                        ID="lblPrice" 
                        runat="server" 
                        CssClass="gridItem" 
                        Text='<% #Eval("netPrice")%>'
                    </asp:Label> 
                </ItemTemplate> 
                <ItemStyle 
                    HorizontalAlign="Right" /> 
                <HeaderStyle HorizontalAlign="Right" /> 
            </telerik:GridTemplateColumn> 
            <telerik:GridTemplateColumn 
                DataField="unitPrice" 
                UniqueName="colPriceUnit"
                <ItemTemplate> 
                    <asp:Label 
                        ID="lblPriceUnit" 
                        runat="server" 
                        CssClass="gridItem" 
                        Text='<% #Eval("unitPrice") %>'
                    </asp:Label> 
                </ItemTemplate> 
                <ItemStyle 
                    HorizontalAlign="Right" /> 
                <HeaderStyle HorizontalAlign="Right" /> 
            </telerik:GridTemplateColumn> 
            <telerik:GridTemplateColumn 
                DataField="colFor" 
                UniqueName="colFor" 
                SortExpression="UNIT"
                <ItemTemplate> 
                    <asp:Label 
                        ID="lblFor" 
                        runat="server" 
                        CssClass="gridItem"
                    </asp:Label> 
                </ItemTemplate> 
                <ItemStyle 
                    HorizontalAlign="Left" /> 
                <HeaderStyle HorizontalAlign="Left" /> 
            </telerik:GridTemplateColumn> 
            <telerik:GridTemplateColumn 
                DataField="center" 
                UniqueName="colCust"
                <ItemTemplate> 
                    <asp:Label 
                        ID="lblCust" 
                        runat="server" 
                        CssClass="gridItem" 
                        Text='<% #Eval("center") %>'
                    </asp:Label> 
                </ItemTemplate> 
                <ItemStyle 
                    HorizontalAlign="Center" /> 
                <HeaderStyle HorizontalAlign="Center" /> 
            </telerik:GridTemplateColumn> 
            <telerik:GridButtonColumn 
                ButtonType="ImageButton" 
                ButtonCssClass="imgBtn" 
                ImageUrl="~/imgs/favoritos_16x16.gif" 
                UniqueName="colAddToFavorites"
                <HeaderStyle Width="18px" /> 
            </telerik:GridButtonColumn> 
            <telerik:GridButtonColumn 
                ButtonType="ImageButton" 
                ButtonCssClass="imgBtn" 
                ImageUrl="~/imgs/detalles_16x16.gif" 
                UniqueName="colDetails"
                <HeaderStyle Width="18px" /> 
            </telerik:GridButtonColumn> 
            <telerik:GridButtonColumn 
                ButtonType="ImageButton" 
                ButtonCssClass="imgBtn" 
                ImageUrl="~/imgs/eliminar_16x16.gif" 
                UniqueName="colDelete"
                <HeaderStyle Width="18px" /> 
            </telerik:GridButtonColumn> 
        </Columns> 
        <DetailTables>             
            <telerik:GridTableView 
                AllowSorting="True" 
                AllowCustomSorting="True" 
                AllowPaging="True" 
                CellPadding="0" 
                CellSpacing="0" 
                runat="server" 
                DataSourceID="ObjectDataSource2" 
                DataKeyNames="cartNumber,cartType,itemNumber,messageID">    
                <Columns>                     
                    <telerik:GridTemplateColumn 
                        DataField="cartNumber" 
                        UniqueName="colCartNumber"
                        <ItemTemplate> 
                            <asp:Label 
                                ID="lblCartNumber" 
                                runat="server" 
                                CssClass="gridItem" 
                                Text='<% #Eval("cartNumber") %>'
                            </asp:Label> 
                        </ItemTemplate> 
                        <ItemStyle 
                            HorizontalAlign="Center" /> 
                        <HeaderStyle HorizontalAlign="Center" /> 
                    </telerik:GridTemplateColumn> 
                    <telerik:GridTemplateColumn 
                        DataField="cartType" 
                        UniqueName="colCartType"
                        <ItemTemplate> 
                            <asp:Label 
                                ID="lblCartType" 
                                runat="server" 
                                CssClass="gridItem" 
                                Text='<% #Eval("cartType") %>'
                            </asp:Label> 
                        </ItemTemplate> 
                        <ItemStyle 
                            HorizontalAlign="Center" /> 
                        <HeaderStyle HorizontalAlign="Center" /> 
                    </telerik:GridTemplateColumn> 
                    <telerik:GridTemplateColumn 
                        DataField="itemNumber" 
                        UniqueName="colItemNumber"
                        <ItemTemplate> 
                            <asp:Label 
                                ID="lblItemNumber" 
                                runat="server" 
                                CssClass="gridItem" 
                                Text='<% #Eval("itemNumber") %>'
                            </asp:Label> 
                        </ItemTemplate> 
                        <ItemStyle 
                            HorizontalAlign="Center" /> 
                        <HeaderStyle HorizontalAlign="Center" /> 
                    </telerik:GridTemplateColumn> 
                    <telerik:GridTemplateColumn 
                        DataField="messageID" 
                        UniqueName="colMessageID"
                        <ItemTemplate> 
                            <asp:Label 
                                ID="lblMessageID" 
                                runat="server" 
                                CssClass="gridItem" 
                                Text='<% #Eval("messageID") %>'
                            </asp:Label> 
                        </ItemTemplate> 
                        <ItemStyle 
                            HorizontalAlign="Center" /> 
                        <HeaderStyle HorizontalAlign="Center" /> 
                    </telerik:GridTemplateColumn> 
                    <telerik:GridTemplateColumn 
                        DataField="messageType" 
                        UniqueName="colMessageType"
                        <ItemTemplate> 
                            <asp:Label 
                                ID="lblMessageType" 
                                runat="server" 
                                CssClass="gridItem" 
                                Text='<% #Eval("messageType") %>'
                            </asp:Label> 
                        </ItemTemplate> 
                        <ItemStyle 
                            HorizontalAlign="Center" /> 
                        <HeaderStyle HorizontalAlign="Center" /> 
                    </telerik:GridTemplateColumn> 
                    <telerik:GridTemplateColumn 
                        DataField="messageDesc" 
                        UniqueName="colMessageDesc"
                        <ItemTemplate> 
                            <asp:Label 
                                ID="lblMessageDesc" 
                                runat="server" 
                                CssClass="gridItem" 
                                Text='<% #Eval("messageDesc") %>'
                            </asp:Label> 
                        </ItemTemplate> 
                        <ItemStyle 
                            HorizontalAlign="Center" /> 
                        <HeaderStyle HorizontalAlign="Center" /> 
                    </telerik:GridTemplateColumn> 
                </Columns>              
                <ParentTableRelation> 
                    <telerik:GridRelationFields 
                        DetailKeyField="colItemNumber" 
                        MasterKeyField="colItemNumber" /> 
                </ParentTableRelation> 
            </telerik:GridTableView> 
        </DetailTables> 
        <HeaderStyle 
            Font-Bold="True" 
            Font-Names="Verdana" 
            Font-Size="6.5pt" 
            ForeColor="Black" 
            VerticalAlign="Middle" 
            Wrap="True"/> 
        <ItemStyle 
            Font-Names="Verdana" 
            Font-Size="6.5pt" 
            VerticalAlign="Middle" /> 
        <AlternatingItemStyle 
            Font-Names="Verdana" 
            Font-Size="6.5pt" 
            VerticalAlign="Middle" /> 
        <PagerStyle 
            Font-Bold="True" 
            Font-Names="Verdana" 
            Font-Size="6.5pt" 
            HorizontalAlign="Left" 
            VerticalAlign="Middle" 
            AlwaysVisible="True" /> 
        <CommandItemStyle 
            Font-Bold="True" 
            Font-Names="Verdana" 
            Font-Size="6.5pt"/> 
    <ExpandCollapseColumn 
        Visible="True"
    </ExpandCollapseColumn> 
    </MasterTableView>  
</telerik:RadGrid> 
<asp:ObjectDataSource ID="ObjectDataSource1" runat="server" SelectMethod="GetItems" 
    TypeName="Exiros.EKI.Controllers.ItemsCartCRUD"
    <SelectParameters> 
        <asp:QueryStringParameter Name="cartID" QueryStringField="cartid" Type="Int32" /> 
        <asp:QueryStringParameter Name="cartType" QueryStringField="carttype" Type="String" /> 
    </SelectParameters> 
</asp:ObjectDataSource> 
<asp:ObjectDataSource 
    ID="ObjectDataSource2" 
    runat="server" 
    SelectMethod="GetItemsMessages" 
    TypeName="Exiros.EKI.Controllers.ItemsCartCRUD"
    <FilterParameters> 
        <asp:Parameter 
            Name="itemNumber" 
            Type="Int32" /> 
    </FilterParameters> 
    <SelectParameters> 
        <asp:QueryStringParameter 
            Name="cartID" 
            QueryStringField="cartid" 
            Type="Int32" /> 
        <asp:QueryStringParameter 
            Name="cartType" 
            QueryStringField="carttype" 
            Type="String" /> 
    </SelectParameters> 
</asp:ObjectDataSource> 

Matías Ezequiel Sánchez
Top achievements
Rank 1
 answered on 29 Jan 2010
3 answers
145 views
i have a problem where i user the MOSSRadEditor image manager in firefox 3.5. If i use this to select an image from a sharepoint list it automatically sets the height to 15px and width of the image to 0px (click on the properties tab). However if i use ie6 it sets the default width and height of the image to it actual size of that image.

How do i get the image picker to set the default size to that of the image in firefox as it does in ie6
Stanimir
Telerik team
 answered on 29 Jan 2010
3 answers
169 views
hi,
i'm trying to use an AjaxManager within  a User control's script using your recommended following code:
var ajaxManager = $find("<%= RadAjaxManager.GetCurrent(Page).ClientID
%>");
ajaxManager.AjaxRequest(args);
but everytime the page give me a 'System.NullReferenceException: Object reference not set to an instance of an object' error.
any advice of what could be the reason?
regards
Pavlina
Telerik team
 answered on 29 Jan 2010
5 answers
130 views
If I set a MinimizeZoneID for a RadWindow, it reloads the window on minimization and restoring in Firefox.  In IE, it works correctly.  If I do not use a MinimizeZoneID, the minimize function works as expected.

I use RadWindowManager to set all of the window properties and use the client RadWindowManager open function to create windows on demand.

This is with the 2008.1.515.20 version of the dll and FF version 3.0.4.

Is there a function I can hook to disable the page load on minimize for firefox since I would prefer to have windows minimize to a specific area of the website?

I can include a sample project that demonstrates this behavior if necessary.

Georgi Tunev
Telerik team
 answered on 29 Jan 2010
1 answer
81 views
Is there any known compatibility issues with v2008 02 and IE8? My combo box is entire width and the dropdown is detached from the text box.

Thnaks
Thomas
Kamen Bundev
Telerik team
 answered on 29 Jan 2010
1 answer
90 views
I have an application that uses v[2008 02]. Does this version's Rad ComboBox have capacity to utilize custom skins?

Thanks
Thomas
Kamen Bundev
Telerik team
 answered on 29 Jan 2010
2 answers
146 views
Hello!

I have a radgrid and when I bind a dataset with 3 columns to it, when I submit the page and check the column count of the grid, it always come back as 1.

In the Grid_needdatasource I have the following code:

   DataSet accounts = ExternalAccounts.getAllExternalAccounts(ExternalAccount.ConnectionString, query);
   autoGeneratedGrid.DataSource = accounts;

and then when I submit the page I want to count the number of columns in the grid by doing this:
grid.Columns.Count

It always comes back as 1 even though I can see 3 columns! I am auto generating the columns.
What's going on?

Bex


Bex
Top achievements
Rank 1
 answered on 29 Jan 2010
1 answer
114 views
I have a writes data back to the server every 30 seconds using an XmlHttpPanel.  I want to have this call be made right when the page unloads.  I am trapping for the onbeforeunload.  That is not the problem.  I am trying to have the page delay while this call is being made.  Any suggestions?
Pero
Telerik team
 answered on 29 Jan 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?