Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
113 views
Sometimes after multiple postbacks on the page, the Rad Editor renders strangely.
Editor's height-width spans all over the page and the width becomes like 5000 pixels.
The editor controls are also rendered like bullet points without any image.

The editor control is inside a HTML table having a fixed width of 800px
I will not be able to provide the page code as the page is very complex.

Kindly see the attached image for more reference.

Please help me in sorting out the issue.
Rumen
Telerik team
 answered on 28 Feb 2011
16 answers
726 views
Hello,

I'm using the some RadComboBoxes on my WebUserControl that is used to Edit RadGrid Items.
Some of this Comboboxes are related. I have followed your Example: "Related ComboBoxes" of your Onlinedemos. All seems to be working, i can select values in the first ComboxBox and after this the related ComboBox gets refreshed and I'm able to select Items in the second one. But when i hit the Button for the Update the SelectedValue Property of the Second ComboBox is Empty but the Text Property shows the right selected Itemtext.

What I'm doing wrong?

EDIT:
Something strange is going on... trying to explain.

When WebUserControl Loads, ComboBox 1 Items looks like:

1, Item1 (selected)
2, Item2
3, Item3

where the first column presents the Value and the Second column the Text of the ComboBox
ComboBox2 Items look like this:

1, Item1a
2, Item2a (selected)

where the first column presents the Value and the Second column the Text of the ComboBox.

So ComboBox1.SelecedValue=1 and ComboBox2.SelectedValue=2

When i change the Selected Item in ComboBox1 to Item3 (Value = 3) then the ComboBox2 gets new Items like this:

1, Item3a
2, Item3b
3, Item3c

where the first column presents the Value and the Second column the Text of the ComboBox. No Item is then initial selected.
When i now change the SelectedItem of ComboBox2 to Item3b (Value 2) the Update Function of the RadGrid does not get a valid SelectedValue. When i select the Item "Item3c" it also does not get a valid value. Only when i select the First Entry "Item3a" i get a valid SelecedValue of "1"

For me it looks like that the Selected Value gets only avaliable on Postback when the Initial Itemlist contains the same Value as the reloaded Itemlist and the Selected Item in the reloaded list does not have the same Value as the Initial Selected Item.

Strange strange strange....

Kalina
Telerik team
 answered on 28 Feb 2011
2 answers
175 views
While in SharePoint Designer and editing the Master Page, I tried to insert a RadMenu and I get the following:

Error Creating Control - RadMenu1
Designer creation failed for the control Parameter name: this...

I am new to this and possibly missed a step somewhere.  Can you help?
Joe Weber
Top achievements
Rank 2
 answered on 28 Feb 2011
1 answer
98 views
I have a master page (nested although i dont think this is relavent) and within tha page i have 2 usercontrols (a header file and quick login panel).

In the header usercontrol i have a hyperlink to register which i want to change when the user logs in to myaccount.

I have wrapped the hyperlink in a radajaxpanel as follows

<li><Telerik:RadAjaxPanel ID="rapHypRegister" runat="server" ><asp:HyperLink ID="hypUtilNavRegister" runat="server" Text="Register" ToolTip="Register" NavigateUrl="~/register.aspx" /></Telerik:RadAjaxPanel></li>


and also ALL my code for the login usercontrol (rapLogin).  I am using the following radajax manager

<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
               <AjaxSettings>
                   <telerik:AjaxSetting AjaxControlID="rapLogin">
                       <UpdatedControls>
                           <telerik:AjaxUpdatedControl ControlID="rapLogin" LoadingPanelID="RadAjaxLoadingPanel1" />
                           <telerik:AjaxUpdatedControl ControlID="rapHypRegister"  />
                       </UpdatedControls>
                   </telerik:AjaxSetting>
          </AjaxSettings>
      </telerik:RadAjaxManager>


On the login user control, once the login code is finished I am referncing the header control with a view to changing the text and navigate link as follows.

'Now we need to change the register text in the header usercontrol
               'Lets find the usercontrol
               Dim MyControl As Control = Me.Page.Master.Master.FindControl("header1")
               'Now we need the update panel from the header usercontrol
               'Dim radRegUpdatePanel As RadAjaxPanel = MyControl.FindControl("rapRegister")
               'Now we can access the hyperlink
               Dim hypMyregLink As HyperLink = MyControl.FindControl("hypUtilNavRegister")
               hypMyregLink.Text = "My Account"
               hypMyregLink.NavigateUrl = "~/myaccount.aspx"


This is not happening...if if remove all the radajaxpanels then the hyperlink gets updated as it should. Am i missing something?

I should point out when the radajaxpanel is in place they both get the animation and "look" like its working but by text does not change.

Many thanks,

Stephen
Tsvetina
Telerik team
 answered on 28 Feb 2011
1 answer
142 views
Hi,
I added a RadGrid to my custom page.
<asp:UpdatePanel ChildrenAsTriggers="true" UpdateMode="Conditional" runat="server">
        <ContentTemplate>
            <telerik:RadGrid ID="rgProducts" runat="server" AutoGenerateColumns="false" Skin="WebBlue"
                OnItemInserted="rgProducts_ItemInserted" OnInsertCommand="rgProducts_InsertCommand"
      OnNeedDataSource="rgProducts_NeedDataSource" OnEditCommand="rgProducts_EditCommand"
                      OnItemUpdated="rgProducts_ItemUpdated">
                <MasterTableView CommandItemDisplay="Top" AllowAutomaticInserts="True" EditMode="InPlace">
                    <Columns>
                        <telerik:GridBoundColumn DataField="ProductId" HeaderText="Id" />
                        <telerik:GridBoundColumn DataField="ProductName" HeaderText="Name" />
                        <telerik:GridBoundColumn DataField="BuyerGroup" HeaderText="BuyerGroup" />
                        <telerik:GridEditCommandColumn EditText="Edit" CancelText="Cancel" HeaderText="" />
                    </Columns>
                </MasterTableView>
            </telerik:RadGrid>
        </ContentTemplate>
    </asp:UpdatePanel>

When Grid is in edit mode, I fill required fields and press Update button, but this only fire Load event.
The event OnNeedDataSource fire properly, but events OnInsertCommand, OnEditCommand don't.
I try to create grid programmatic, but the effect is the same.

PageLoad function:
protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                rgProducts.DataSource = OrderMoq.Products;
            }
        }

rgProducts_NeedDataSource function:
protected void rgProducts_NeedDataSource(object sender, GridNeedDataSourceEventArgs e)
        {
            rgProducts.DataSource = OrderMoq.Products;
        }

Adam
Adam
Top achievements
Rank 1
 answered on 28 Feb 2011
3 answers
79 views
Hi there

I have the folowing scenario: Master Page with "RadAjaxManager" and dynmicly loaded UserControls.

If I Use in this scenario the Update, Insert, etc. Events on the Gride wil not fired.

The whole is difficult to explain, so I created a small example application. But I can not add to this thread.
Can you refer me, what am I doing wrong?

Greetings Markus

Pavlina
Telerik team
 answered on 28 Feb 2011
4 answers
146 views

We currently have a few pages that use RadAjaxManagers on them in a project that uses the ASP.NET membership authentication system.

This system has been working fine, however when a user is logged in and either is disabled (user.IsApproved = False / put into Disabled User role) or is removed from the role needed to access the page they are on, the membership then redirects them to an error page.   When this happens the user triggers an Ajax request the following error pops up.

 

Webpage error details

 

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.5.21022; .NET CLR 3.5.30729; MDDR; .NET CLR 3.0.30729; .NET CLR 1.1.4322)

Timestamp: Fri, 4 Dec 2009 19:17:48 UTC

 

 

Message: Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed. Common causes for this error are when the response is modified by calls to Response.Write(), response filters, HttpModules, or server trace is enabled.

Details: Error parsing near '

 

<!DOCTYPE html P'.

Line: 6

Char: 62099

Code: 0

URI: http://localhost:6969/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_ScriptManager1_HiddenField&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d3.5.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-US%3a0d787d5c-3903-4814-ad72-296cea810318%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%2c+Version%3d2009.3.1109.20%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3a019edc06-aabf-4685-bb71-e9a5593a5eb5%3a16e4e7cd%3a874f8ea2%3af7645509%3a24ee1bba%3a19620875%3a33108d14%3abd8f85e4%3a86526ba7%3ae330518b%3a1e771326%3ac8618e41%3aed16cbdc%3a8e6f0d33%3a6a6d718d%3aa7e79140%3a11a04f7e%3a58366029

 

How can we get the authentication and role system built into ASP.Net 2.0 to play nicely with the RadAjaxManager and properly handle the situations described above?  The system currently works fine as long as teh RadAjaxManager is not involved.

We do have the following in the web.config, btu still get the error:

 

    <location path="WebResource.axd">  
        <system.web> 
            <authorization> 
                <allow users="*"/>  
            </authorization> 
        </system.web> 
    </location> 
    <location path="Telerik.Web.UI.WebResource.axd">  
        <system.web> 
            <authorization> 
                <allow users="*"/>  
            </authorization> 
        </system.web> 
    </location> 
    <location path="ScriptResource.axd">  
        <system.web> 
            <authorization> 
                <allow users="*"/>  
            </authorization> 
        </system.web> 
    </location> 

Iana Tsolova
Telerik team
 answered on 28 Feb 2011
3 answers
103 views
I was under the assumption that IIS provides this same feature.

Is this meant to simplify the process and/or allow you to deploy it without access to the IIS metabase or is it something else?
Vasil
Telerik team
 answered on 28 Feb 2011
1 answer
83 views
Hi,

with radcombo we have a layout problem.
When selecting a text that wrap to newline, radcombo show only last part of selected text and not first part.
I attach a screenshot to show what appen.

Thanks a lot.
Kalina
Telerik team
 answered on 28 Feb 2011
2 answers
347 views
Hi. I would really appreciate some guidance to show me how to read the state of a control property in a list. I have a simple list that has a user control within the item template.

I want to have a checkbox for each item so that the user can select one or more items. I can easily add the checkbox to the user control and provide code to get/set the checkbox (it is not linked to any datasource data but would be simply to enable the user to select items).

External to the listView I have a button. In the codebehind for the button I want to:

foreach (var i in myList.items) { }

to parse through the displayed items in the listView. My first question is will myList.items return the displayed items (after paging) or all of the items (ie if I have 100 items displayed as 10 pages of 10 items does myList.items return the displayed items or all 100 items - if it returns all is there a way to only get the displayed items in the current page).

within my foreach loop how can I reference the user control. I want to just read a property from the user control; ie. myItem.isChecked

Thanks


<telerik:RadListView ID="myList" runat="server" ItemPlaceholderID="PlaceHolder1"
    DataKeyNames="ListingId" ConvertEmptyStringToNull="False" AllowPaging="True"
    PageSize="15">
    <LayoutTemplate>
        <asp:PlaceHolder ID="PlaceHolder1" runat="server"></asp:PlaceHolder>
    </LayoutTemplate>
    <ItemTemplate>
        <div class="rlvI">
            <uc:uListItem ID="myItem" runat="server" ListingId='<%# Eval("ListingId") %>' Title='<%# Eval("Title") %>'
                Description='<%# Eval("Description") %>' Owner='<%# Eval("Owner") %>' image='<%# Eval("ThumbImg") %>'
                Rating='<%# Eval("Rating") %>' Reviewers='<%# Eval("NoRate") %>' HasMail='<%# Eval("mail") %>' />
        </div>
    </ItemTemplate>
    <EmptyDataTemplate>
        <div>
            <div>
                There are no items to be displayed.</div>
        </div>
    </EmptyDataTemplate>
</telerik:RadListView>

Paul
Top achievements
Rank 1
 answered on 28 Feb 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?