Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
140 views
Periodically, when an AjaxRequest is made on the page I get the following error:

[Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed. Common causes .....  Details: Error parsing near 'play:none;"></span>|<html>
    <head>
'.]

I am using version "RadControls_for_ASP[1].NET_AJAX_2009_2_826_dev.msi".

Thanks in advance for any help.

My code snippet.....

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

    <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
        <script type="text/javascript"> 
        var ajaxmanager; 
        function pageLoad() 
        { 
            ajaxmanager = $find('<%= Master.FindControl("RadAjaxManager1").ClientID %>');
        }
       
        function openWin()
        {
            var oWnd = radopen("AccountSearch.aspx", "rwAcctSearch");
            oWnd.setSize (360, 160);
            oWnd.maximize();
            oWnd.restore();               
            oWnd.center();
            oWnd.set_title("Account Number");
            // remove the handler each time or it will get called
            //  an additional time for each successive close event
            oWnd.remove_close(OnClientClose);
            oWnd.add_close(OnClientClose);
        }
       
        function OnClientClose(oWnd,args)
        {
            // get the transferred arguments
            var arg = args.get_argument();
           
            if(arg)
            { 
                // trim value
                var acntNbr = arg.acntNbr.replace(/^\s+|\s+$/g,"");
                ajaxmanager.ajaxRequest(acntNbr);
            }
        }
       
        </script>    
    </telerik:RadCodeBlock>
   
    <input id="btnSendRfn" type="button" style="width: 225px; font-size: x-small;"
         value="Send RFN" onclick="openWin(); return false;" />
       
    <telerik:RadWindowManager ID="RadWindowManager1" runat="server"
        VisibleOnPageLoad="false" ShowContentDuringLoad="false"
        ReloadOnShow="true" VisibleStatusbar="false">
        <Windows>
            <telerik:RadWindow ID="rwAcctSearch" runat="server" Modal="true"
                 Behaviors="Close">
            </telerik:RadWindow>
        </Windows>   
    </telerik:RadWindowManager>  
   
</asp:Content>

Svetlina Anati
Telerik team
 answered on 22 Sep 2009
2 answers
83 views
I have a master page with a horizontal RADmenu at the top.  In my content page I have a RADWindow as below

<

 

telerik:RadWindowManager ID="RadWindowManager1" runat="server" Skin="Vista"

 

 

KeepInScreenBounds="True" >

 

 

<Windows>

 

 

<telerik:RadWindow Skin="Vista" ID="NewsDialog" runat="server" Title="News" Height="625px"

 

 

Width="700px" Left="150px" ReloadOnShow="true" Modal="true" KeepInScreenBounds="True" />

 

 

</Windows>

 

 

</telerik:RadWindowManager>

 



When I activate the RADWindow its initially displayed behind my menu, this obsures the top bar in the popup window stopping me from moving it, how can I avoid this ?
Fiko
Telerik team
 answered on 22 Sep 2009
1 answer
130 views
What are the (if any) requirements for being able to have data formatted as a Date in a defined format?

In my database, a date (september 4, 2009) is stored as 20090904

How do I get this formatted as something sensible in my grid? And as something that I can filter on?

Jeppe Jespersen
Denmark

Princy
Top achievements
Rank 2
 answered on 22 Sep 2009
4 answers
216 views
Hi

I'm trying to make a custom composite control which has a RadTreeView in a RadCombo.

I've duplicated the example from the demo site, with the TreeView created dynamically in a template.

I'm almost there except I'm having problem accessing the RadComboBox on the client side.

The problem is on the client side code:
    comboBox = $find('" + ComboTree.ClientId + '");
    comboBox.set_text(node.get_text()); *** Error here ***

The error is: This object does not support this method or property.

If I add a RadComboBox to the page as RadComboBox1 and change the javascript to 
    comboBox = $find('RadComboBox1');
instead of 
    comboBox = $find('" + ComboTree.ClientId + '");
the manually added RadCombo gets the Text from the Tree.

If I add the line alert(node.get_text());  the alertbox shows the corrent item from the tree.

I've tried the following function as well to try to find the problem:

function GetComboId(sender, args) {
    var TreeCombo = sender;
    alert(sender.get_id());
}

And executed this function OnClientDropDownOpening and I get the same error.

My custom control descends from System.Web.Ui.Control and implements INamingContainer.

I do set the Id's of the custom control, RadComboBox and RadTreeView.


Any ideas????

Many thanks

Nick Crisp
Veselin Vasilev
Telerik team
 answered on 22 Sep 2009
3 answers
164 views
Hello,

I defined the custom scheduler provider (inheriting from DbSchedulerProviderBase) in the configuration file.  But the Provider property of the Scheduler control is null.  So do I have to do something to load the provider from the config file, or do I do something else?  I'm not sure if there is a method I have to call first, or if that is supposed to happen automatically.

Thanks.
T. Tsonev
Telerik team
 answered on 22 Sep 2009
4 answers
133 views
What I would like to do is add a Refresh icon next to the Dock/Undock button on a SlidingPane so a user could easily refresh the contents of the pane.  Is there any way to do this?
Svetlina Anati
Telerik team
 answered on 22 Sep 2009
1 answer
116 views

I have to rad combo boxes, RadLaborSchedule (rad1) and RadLaborCatDesc (rad2).  Both these rad combo boxes are declared as EditItems in a radgrid.  How do I populate rad2 with selected value of rad1?

I tried using this code in javascript, which errors out at compile time because RadLaborCatDesc can not be found, being an edit item of a rad grid. 

Thanks.

Suresh

Here is the javascript:

 

 

//global variables for the countries and cities comboboxes

 

 

 

 

 

var LaborCatCombo;

 

 

function pageLoad()

 

{

 

// initialize the global variables

 

 

 

 

 

// in this event all client objects

 

 

 

 

 

// are already created and initialized

 

 

 

 

LaborCatCombo = $find(

"<%= RadComboBoxLaborCatDesc.ClientID %>");

 

}

 

function LoadLaborCategories(combo, eventArqs)

 

{

 

var item = eventArqs.get_item();

 

LaborCatCombo.set_text(

"Loading...");

 

LaborCatCombo.clearSelection();

 

 

// if a labor schedule is selected

 

 

 

 

 

if (item.get_index() > 0)

 

{

 

// this will fire the ItemsRequested event of the

 

 

 

 

 

// countries combobox passing the continentID as a parameter

 

 

 

 

LaborCatCombo.requestItems(item.get_value(),

false);

 

}

 

else

 

 

 

 

{

 

// the -Select a continent- item was chosen

 

 

 

 

LaborCatCombo.set_text(

" ");

 

LaborCatCombo.clearItems();

}

}

And this is the radgrid declaration:

 

 

<telerik:GridTemplateColumn DataField="LaborSchedule" HeaderText="Labor Schedule" UniqueName="LaborSchedule">

 

 

 

 

 

 

<ItemTemplate >

 

 

 

 

 

 

<asp:Label id="LabelLaborSchedule" runat="server" Text='<%#DataBinder.Eval(Container.DataItem, "LaborSchedule")%>'

 

 

 

 

 

 

></asp:Label>

 

 

 

 

 

 

</ItemTemplate>

 

 

 

 

 

 

<ItemStyle Width="500px" />

 

 

 

 

 

 

<EditItemTemplate>

 

 

 

 

 

 

<telerik:RadComboBox DataTextField="LaborSchedule"

 

 

 

 

 

 

DataValueField="LaborSchedule"

 

 

 

 

 

 

AutoPostBack="false"

 

 

 

 

 

 

EnableLoadOnDemand="True"

 

 

ID="RadComboBoxLaborschedule"

 

 

runat="server"

 

 

Height="140px"

 

 

Width="100px"

 

 

 

 

 

 

SelectedValue = '<%#DataBinder.Eval(Container.DataItem, "LaborSchedule")%>'

 

 

 

 

 

 

SelectedText = '<%#DataBinder.Eval(Container.DataItem, "LaborSchedule")%>'

 

 

 

 

 

 

DataSourceId = "ObjectDataSourceGetSchedules"

 

 

 

 

 

 

OnItemsRequested= "RadComboBoxLaborschedule_ItemsRequested"

 

 

 

 

 

 

OnClientSelectedIndexChanging="LoadLaborCategories"

 

 

 

 

 

 

>

 

 

 

 

 

 

</telerik:RadComboBox>

 

 

 

 

 

 

</EditItemTemplate>

 

 

</telerik:GridTemplateColumn>

 

 

 

 

 

 

<telerik:GridTemplateColumn DataField="LaborCategoryDesc" HeaderText="LaborCategoryDesc" UniqueName="RadComboBoxLaborCatDesc">

 

 

 

 

 

 

<ItemTemplate>

 

 

 

 

 

 

<asp:Label id="LabelLaborCategoryDesc" runat="server" Text='<%#DataBinder.Eval(Container.DataItem, "LaborCategoryDesc")%>'

 

 

 

 

 

 

></asp:Label>

 

 

 

 

 

 

</ItemTemplate>

 

 

 

 

 

 

<EditItemTemplate>

 

 

 

 

 

 

<telerik:RadComboBox ID="RadComboBoxLaborCatDesc" runat="server"

 

 

DataTextField="LaborCategoryDesc"

 

 

DataValueField="LaborCategoryCode"

 

 

 

 

 

 

SelectedValue = '<%#DataBinder.Eval(Container.DataItem, "LaborCategoryCode")%>'

 

 

 

 

 

 

SelectedText = '<%#DataBinder.Eval(Container.DataItem, "LaborCategoryDesc")%>'

 

 

 

 

 

 

DataSourceId = "ObjectDataSourceLabelCategory"

 

 

 

 

 

 

OnItemsRequested= "RadComboBoxLaborCatDesc_ItemsRequested"

 

 

 

 

 

 

AutoPostBack="false"

 

 

 

 

 

 

>

 

 

 

 

 

 

</telerik:RadComboBox>

 

 

 

 

 

 

</EditItemTemplate>

 

 

</telerik:GridTemplateColumn>

 

Yavor
Telerik team
 answered on 22 Sep 2009
1 answer
113 views
Hello -

I have a tabstrip setup on a page in my system. It was initially setup to show the 4 most popular categories as tabs with a 5th tab to alowing users to click to view more categories. Because we only have 15 categories and most visitors only see 7-9 I thought I would just enable scrolling. However, when I enable scrolling, ALL the tabs disappear. The SAME code without tabs enabled works fine, I just have extra code for the datasource to only grab the top 4 categories and then manually add a fifth row.

Below is the relevant code, please note I am using CSS to define a custom look/feel for the tabs.

Any help would be greatly appreciated, I am spinning my wheels on this.

P.S. - The next, prev arrows show up to the right of the tabs div as I would expect them too. The number of times I can click next seems odd though as it lets me click 21 times, there would be a max of 15 tabs and 6 could fit in the area provided.

Default.aspx (Relevant Portion Only)

 

<div id="tabs">   
    <telerik:RadTabStrip ID="rtsCategoryList" runat="server" skin="" EnableEmbeddedSkins="false" Width="788px" Height="20px"   
        OnTabClick="rtsCategoryList_TabClick" ScrollChildren="true"   
        PerTabScrolling="true" ScrollPosition="0" BackColor="#000000" ScrollButtonsPosition="Right">   
    </telerik:RadTabStrip>   
</div> 

Default.aspx.cs (Relevant Portion Only)

 

            DataTable table = RetrievalProcedures.SpWsGetCategoriesByCityState(_city, _state);  
              
            // Build the tabs.  
            foreach (DataRow row in table.Rows)  
            {  
                RadTab newTab = new RadTab();  
                newTab.Value = row["categoryId"].ToString();  
                newTab.Text = row["categoryName"].ToString();  
                newTab.CssClass = "tab";  
                newTab.HoveredCssClass = "tabHover";  
                newTab.SelectedCssClass = "tabSelected";  
                rtsCategoryList.Tabs.Add(newTab);  
            }  
 
            // Set the first tab as selected.  
            rtsCategoryList.Tabs[0].Selected = true;  
 

 

 

main.css (Relevant Portion Only)

div.divBusinessSearchPanel #tabs 
{  
    width: 788px;  
    height: 20px;  
    border: 0px;  
    margin-bottom: 0px;  
}  
 
div.divBusinessSearchPanel .tab, div.divBusinessSearchPanel .tabHover, div.divBusinessSearchPanel .tabSelected  
{  
    display: inline-block;  
    width: 120px;  
    height: 18px;  
    margin: 0px 2px 0px 0px;  
    padding: 2px 0px 0px 0px;  
    font-size: 12px;  
    font-weight: bold;  
    color: #ffffff;  
    text-align: center;  
}  
 
div.divBusinessSearchPanel .tab  
{  
    background-image: url(/images/ReusableControls/BusinessSearchPanel/bg-tab.png);   
    color: #ffffff;  
}  
 
div.divBusinessSearchPanel .tabHover  
{  
    background-image: url(/images/ReusableControls/BusinessSearchPanel/bg-tab.png);   
    color: #fff000;  
}  
 
div.divBusinessSearchPanel .tabSelected  
{  
    background-image: url(/images/ReusableControls/BusinessSearchPanel/bg-tab-selected.png);   
    color: #f0f0f0;  
}  
 
div.divBusinessSearchPanel .rtsPrevArrow  
{  
    background-color: #eeefff;  
}  
 
div.divBusinessSearchPanel .rtsNextArrow  
{  
    background-color: #000fff;  
} 

Paul
Telerik team
 answered on 22 Sep 2009
3 answers
406 views
I'm using a RadComboBox inside a RadGrid.  It appears I have to use a GridTemplateColumn because I want to use a custom skin for the drop down and I want to have a blank entry as the first item by default.  Is there a way to do that without using a GridTemplateColumn?

Anyhow, now that I'm using the GridTemplateColumn, I'm having a problem getting the in-line editing and inserting to work.  When I try to insert an item I get this error: "DataBinding: 'Telerik.Web.UI.GridInsertionObject' does not contain a property with the name 'Type'."  Editing an existing record works great.

Here is my code:

<telerik:GridTemplateColumn HeaderText="Type" DataField="Type" > 
                            <ItemTemplate> 
                                <%# Eval("Type.Name") %> 
                            </ItemTemplate> 
                            <EditItemTemplate> 
                                <telerik:RadComboBox ID="PropertyType" runat="server"  Width="250" Height="150" 
                                        DropDownWidth="300" ShowDropDownOnTextboxClick="true" MarkFirstMatch="true" 
                                        ShowToggleImage="false" AppendDataBoundItems="true"  
                                        DataSourceID="PropertyTypes" DataValueField="Id" DataTextField="Name" 
                                        AllowCustomText="false" SelectedValue='<%# Bind("Type.Id") %>'> 
                                    <Items> 
                                        <telerik:RadComboBoxItem Text="" /> 
                                    </Items> 
                                </telerik:RadComboBox> 
                            </EditItemTemplate> 
                        </telerik:GridTemplateColumn> 

Your demo "Combo In Grid" under "Application Scenarios" has this functionality except it only has in-line editing and not inserting or I would follow that.

Thanks,

Chris


Sebastian
Telerik team
 answered on 22 Sep 2009
11 answers
171 views
The documentation for RadInputManager shows validation properties intended to allow validation to occur against a web service or page method.  What I cannot find is any specific information about how the signature of the service/method, nor any examples.

What is needed to do this?
Joel
Sebastian
Telerik team
 answered on 22 Sep 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?