Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
70 views
After update to latest control version, some of my ComboBoxes will not callback to get results for "load on demand" scenarios.  I have three load on demand combo boxes on one page.  One continues to work, two do not.  In the firefox debugger I can see the working control performing a postback when I type in the box.  The other two do nothing when type.

Works:
<telerik:RadComboBox ID="cboEvents" runat="server"
 AutoPostBack="false" DropDownWidth="675px" EmptyMessage=""
 Height="200px" HighlightTemplatedItems="true" EnableLoadOnDemand="True" AllowCustomText="True" EnableVirtualScrolling="True" ShowMoreResultsBox="True" OnItemsRequested="cboEvent_ItemsRequested"
 Skin="Windows7" Width="300px">

Doesn't work:
<telerik:RadComboBox ID="cboURL" runat="server" AllowCustomText="True"
                                AutoPostBack="false" DropDownWidth="675px" EmptyMessage=""
                                EnableLoadOnDemand="True" EnableVirtualScrolling="True" Height="200px"
                                HighlightTemplatedItems="true"
                                ShowMoreResultsBox="True" OnItemsRequested="cboURL_ItemsRequested"
                                Skin="Windows7" Width="500px"
                                EnableAutomaticLoadOnDemand="True">
Fred Taylor
Top achievements
Rank 1
 answered on 24 Oct 2012
1 answer
165 views
Hi everyone. 

I can bind 2 level grid from object datasource. but how can i bind 3 level grid from my object datasource?
My First ObjectDataSource take no parameter,
My second ObjectDatasource take orderId;
I want to my third objectdatasource take orderProductId from 2.level; 
My code is;
telerik:RadGrid ID="radGridOrderProduct" ShowStatusBar="True" DataSourceID="objDsCartProductList"
    runat="server" Width="100%" AutoGenerateColumns="False" AllowSorting="True" AllowPaging="True"
    GridLines="None" CellSpacing="0">
    <PagerStyle Mode="NumericPages"></PagerStyle>
    <MasterTableView Width="100%" DataSourceID="objDsCartProductList" DataKeyNames="Id"
        AllowMultiColumnSorting="True">
        <NestedViewTemplate>
            <asp:Label ID="Label1" Text='<%#Eval("Id") %>' Visible="false" runat="server" />
            <telerik:RadGrid runat="server" ID="radGridOrderProductDetail" DataSourceID="objDsCartProductList"
                GridLines="None">
                <MasterTableView ShowHeader="true" AutoGenerateColumns="False" runat="server" HierarchyLoadMode="ServerOnDemand"
                    DataSourceID="objDsCartProductList">
                    <Columns>
                        <telerik:GridTemplateColumn>
                            <ItemTemplate>
                                <asp:Label ID="lblTotalPrice" runat="server" Font-Bold="true" Font-Size="14px" Text='<%#                (Eval("TotalPrice").ToString()) %>'></asp:Label>
                                <span>TL</span>
                            </ItemTemplate>
                        </telerik:GridTemplateColumn>
                    </Columns>
                </MasterTableView>
            </telerik:RadGrid>
            <asp:ObjectDataSource ID="objDsCartProductList" runat="server" SelectMethod="GetOrderProductListWithOrderId"
                TypeName="MatriksEshop.Web.UserControls.Order.Control.BaseUserControl">
                <SelectParameters>
                    <asp:ControlParameter ControlID="Label1" Name="orderId" PropertyName="Text" Type="String" />
                </SelectParameters>
            </asp:ObjectDataSource>
        </NestedViewTemplate>
        <CommandItemSettings ExportToPdfText="Export to PDF"></CommandItemSettings>
        <RowIndicatorColumn Visible="True" FilterControlAltText="Filter RowIndicator column">
        </RowIndicatorColumn>
        <ExpandCollapseColumn Visible="True">
        </ExpandCollapseColumn>
        <Columns>
            <telerik:GridTemplateColumn>
                <HeaderTemplate>
                    <asp:Label ID="lblTotalPrices" runat="server" Text="<%$ Resources:Eshop, ProductTotal%>"></asp:Label>
                </HeaderTemplate>
                <ItemTemplate>
                    <asp:Label ID="lblTotalPrice" runat="server" Font-Bold="true" Font-Size="14px" Text='<%#(Eval("TotalPrice")) %>'></asp:Label>
                    <span>TL</span>
                </ItemTemplate>
            </telerik:GridTemplateColumn>
        </Columns>
        <EditFormSettings>
            <EditColumn FilterControlAltText="Filter EditCommandColumn column">
            </EditColumn>
        </EditFormSettings>
    </MasterTableView>
    <FilterMenu EnableTheming="True">
        <CollapseAnimation Duration="200" Type="OutQuint" />
    </FilterMenu>
</telerik:RadGrid>
<asp:ObjectDataSource ID="objDsCartProductList" runat="server" SelectMethod="GetOrderListWithMemberId"
    TypeName="MatriksEshop.Web.UserControls.Order.Control.BaseUserControl"></asp:ObjectDataSource>

I want to 3.level grid objectDataSource SelectMethod = "GetOrderProductLicenseWithOrderProductId"
Parameter should be radGridOrderProductDetail datakeynames or "Id".
Can u help me for this point?

Best Regards
Angel Petrov
Telerik team
 answered on 24 Oct 2012
3 answers
249 views
How can I set the ReadOnly style on the inputbox for the RadDatePicker ?
Vasil
Telerik team
 answered on 24 Oct 2012
1 answer
186 views
When I Click on spell Check error Come Spell Check Handler Server Error 12030
How to fix
Rumen
Telerik team
 answered on 24 Oct 2012
1 answer
78 views
Hi,
I need to select RadGridRow and in-turn need to fire OnRowSelected event with button added to ClientItemTemplate of RadGrid.
Eyup
Telerik team
 answered on 24 Oct 2012
4 answers
172 views


Hi, I have a grid with some rows, for each row I have an radcombobox but this is showed with a bad visualization. I've attached how can I see this error and I pasted the code of this.
Could you help me? Thanks in advance

 

 

<telerik:RadGrid ID="grd" runat="server" OnItemDataBound="grd_ItemDataBound">

<MasterTableView CommandItemDisplay="Top" AutoGenerateColumns="False" >
<Columns>

 ....
<

telerik:GridTemplateColumn HeaderText="Status">

 <ItemTemplate>

 <telerik:RadComboBox ID="RadComboStatus" Width="90px" DataValueField="idStatus"

DataTextField="Description" runat="server" />

</ItemTemplate>

</telerik:GridTemplateColumn>

 ...

 

 

protected void grd_ItemDataBound(object sender, GridItemEventArgs e)

{

   RadComboBox combotaxStatus = (RadComboBox)e.Item.FindControl("RadComboStatus");

   combotaxStatus.DataSource =

TaxStatusFactory.getStatus();

   combotaxStatus.SelectedValue = _Status;

   combotaxStatus.Attributes.Add(

"txt", String.Concat("lblXXX", "XXX", idContrato));

   combotaxStatus.Attributes.Add(

"txt", String.Concat("lblXXX", "XXX", idContrato));

   combotaxStatus.Attributes.Add(

"txt", String.Concat("lblXXX", "XXX", idContrato));

 

   combotaxStatus.OnClientSelectedIndexChanged = 

"OnClientSelectedIndexChanged";
   combotaxStatus.DataBind();

}

Andrey
Telerik team
 answered on 24 Oct 2012
1 answer
188 views
Hi
I have a user control that contains some Rad-controls (RadComboBox, RadMenu, AjaxPanel, ...) and some javaScript methods and it works correctly.

In my web site I need to use it in a panel that must be invisible at first page load, but unfortunately this property (visible = false) cause that user control's javascript isn't rendered and there are some errors about not finding javascript methods in the code page.

My user control's javascript code is in RadCodeBlock.

What is my solution?

How can I have a user control that can be invisible at first and after showing, its scripts has no errors?


Eyup
Telerik team
 answered on 24 Oct 2012
5 answers
506 views
Hello,

I'm using the following RadEditor within the usercontrol of the Insert/Update/Delete RadGrid:
<telerik:RadEditor runat="server" ID="CntntRadEditor" Enabled="false" Height="500px" Width="100%" style="z-index:1000;" Content='<%# DataBinder.Eval( Container, "DataItem.Cntnt") %>' ToolsFile="~/Common/Controls/RadEditor/xml/CustomFullSetOfToolsForSecureTables.xml">
                            <Modules>
                                <telerik:EditorModule Visible="false" />
                            </Modules>
                            <ImageManager ViewPaths="~/Guide/Design/Contents" UploadPaths="~/Guide/Design/Contents" DeletePaths="~/Guide/Design/Contents" />
                            <DocumentManager ViewPaths="~/Guide/Design/Contents" UploadPaths="~/Guide/Design/Contents" DeletePaths="~/Guide/Design/Contents" SearchPatterns="*.doc,*.txt,*.docx,*.xls,*.xlsx,*.pdf,*.xml" />
                        </telerik:RadEditor>

The problem is that the RadEditor control is hidden by seeting the property Enabled=false.
If I remove that property, the RadEditor is displayed normally.
The requirements is to disable the RadEditor control in order to prevent the user from typing a text and from clicking any icon from the RadEditor toolbar.

Please, I need your help,
It is appreciated to send me the modified code.

Regards,
Bader
Rumen
Telerik team
 answered on 24 Oct 2012
8 answers
334 views
Hello,

I need to have the ability to select the first row in a grid automatically and based on that selection two other radgrids gets populated.  I was able to achieve the selection of the first row by doing the following in the prerender method.

This worked somewhat.  (1) The two other grids are not populated when the autoselection happens, and (2) If i select another row in RadGrid1, the new selection is not kept and isntead the row from the prerender method is always selected.

I had all this working when a user comes in selects from a dropdown, but it seems that the client wants the first selection in the radcombobox to be automatically selected with the relevant data...

Any help would be tremendous, please!

SS
' PreRender Method
 
if (RadGrid1.MasterTableView.Items(0).Count > 0) Then
     RadGrid1.MasterTableView.Items(0).Selected = True
End If
SikhSuperman
Top achievements
Rank 1
 answered on 24 Oct 2012
1 answer
165 views

Dear Reader!

I have developed a simple ASP.NET AJAX Website running on ASP.NET 4.0.
It works fine on my development machine (Windows 7, IIS).

You can have a look at the site:

http://www.easyteamorganiser.com:82/

But depolying it to Windows 2008 Server, IIS 7.0 I can't get it to run properly.
It starts well, but by pressing the button it throws an client-side exception:

--------------------------------------------------------------
Details zum Fehler auf der Webseite

Benutzer-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Win64; x64; Trident/4.0; .NET CLR 2.0.50727; SLCC2; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E)
Zeitstempel: Fri, 19 Oct 2012 20:52:16 UTC

Meldung: Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 500
Zeile: 6
Zeichen: 84093
Code: 0
URI: http://www.easyteamorganiser.com:82/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d4.0.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-US%3a89093640-ae6b-44c3-b8ea-010c934f8924%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%3aen-US%3a6aabe639-e731-432d-8e00-1a2e36f6eee0%3a16e4e7cd%3af7645509%3a22a6274a%3aed16cbdc%3a24ee1bba%3a7165f74%3ab7778d6c%3a58366029%3ae330518b%3a2003d0b8%3a1e771326%3ac8618e41%3ae4f8f289

 Thanks for help, Skim

-------------------------------------------------
I moved back to ASP.NET 2.0 (.NET 3.5). There it worked instantly.

Skim

Maria Ilieva
Telerik team
 answered on 24 Oct 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?