Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
186 views
Hi Folks,

I have a FormView that contains a RadComboBox named ComboBox1 and a few other controls which I need to show or hide based on the ComboBox1 selected value using SelectedIndexChanged event.I put those controls inside a panel named Panel1.
This is the setting in the code behind:

protected v

 

oid Page_PreRenderComplete(object sender, EventArgs e)

 

 

 {

      

RadComboBox item1 = (RadComboBox)MyFormView.FindControl("ComboBox1");

 

 

     

Panel panel1 = (Panel)MyFormView.FindControl("Panel1");

 

 

     

RadAjaxManager.GetCurrent(Page).AjaxSettings.AddAjaxSetting(item1 , panel1);

 

 

}

When I run the app and change the combobox1 value, I get this error: Unknown runtime error. 
debuged it the error comes from

 

 

"updatePanelElement.innerHTML=rendering;" line

The thing is it works when I use another control but not the panel inside the FormView.

Thanks in advance for your help.
Sima

 

 

 

Pavlina
Telerik team
 answered on 09 Jul 2009
1 answer
105 views
Hi,

I have implemented the control Buttons 

 

<telerik:RadRotator ID="rrRotator" runat="server" RotatorType="SlideShowButtons" ScrollDirection="Up,Down"  

 

Width="300px" Enabled="True" ItemHeight="90px" ItemWidth = "300px" 

 

BorderStyle="None">
<ItemTemplate>

 

<asp:Label ID="lblPayee" runat="server"><%# DataBinder.Eval(Container.DataItem, "payee_attention_name")%></asp:Label> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <asp:Label ID="lblCity" runat="server"><%# DataBinder.Eval(Container.DataItem, "payment_city")%></asp:Label>
</ItemTemplate>
<ControlButtons LeftButtonID="prevButton" RightButtonID="nextButton" />   

 

</telerik:RadRotator

 

<div>
<asp:Image ImageUrl="Images/previousSlide.gif" ID="prevButton" AlternateText="Previous Slide"  

 

runat

 

="Server" Height="34" Width="33" Style="border: 0px" /> < 

 

 

asp:Image ImageUrl="Images/nextSlide.gif" ID="nextButton" AlternateText="Next Slide"  

runat

 

="Server" Height="34" Width="31" Style="border: 0px" />

 

 

 

</div>

I have set the scroll direction to 'Up, Down'. I still see the arrows and my image buttons do not work for Up and Down. Please let me know if there a solution for this? Also, Can I scroll more than one data at a time?

 

 

 

 

 

Fiko
Telerik team
 answered on 09 Jul 2009
1 answer
114 views
Hi

I have a grid that i use on several different pages. Naturally i don't want to keep copying the grid formatting and template definition and item data bound events from page to page so i thought i would put it in a reusable control.

The problem i am facing is that the different pages that use the control display different sets of data so the logic in the NeedDataSource event is completely different on the different pages.

Could i do something like bubble up the NeedDatasource event so it is handled by the page that uses the control. That doesnt seem a very nice design. Certainly doesn't seem in keeping with the whole principle of information hiding and the like but it's the only thing i could think of

any other suggestions heartily welcomed!
andieje
Top achievements
Rank 1
 answered on 09 Jul 2009
6 answers
142 views
I have been working with the PanelBar for the last few months with no problem.  However I have just tried to create the items dynamically using the Client API.  For some reason an image has been attached to the item.  This image is the logo from the top left RadPanel of the screen (if I set display=none on it the logo in the top left radPanel disappears).  This only applies to those created using the Client API.

Here is the code used to create the items:

    var links = $find("LinksPanel"); 

 

    var parent = links.findItemByValue("LINKS"); 

 

    var item = new Telerik.Web.UI.RadPanelItem(); 
    item.set_text(displayText);
    parent.get_items().add(item);

The problem also appears on the online demo (tested under IE7 and FF3).  I am using 2009 Q1.

The demo (http://demos.telerik.com/aspnet-ajax/panelbar/examples/clientside/clientsideapi/defaultcs.aspx), when clicking to Add At Runtime creates an item which includes the logo.  When a postback is performed (on the demo), the panelbar item loses the image and appears as it should.

Any help would be greatly appreciated.

 

 

Matt
Top achievements
Rank 1
 answered on 09 Jul 2009
1 answer
115 views


Hello All,
  
              I have purchased a developer version of Telerik rad Controls.In three level hierarchy it seems to be not working properly when I expand the first level at the second level the combobox which displays the page size does not appears properly .


Regards
ritzie
Pavlina
Telerik team
 answered on 09 Jul 2009
2 answers
202 views
I would like to have fixed column widths on a grid and not allow a row to wrap onto multiple lines.  The way I've achieved this is to:-

1. Set TableLayout="Fixed"

2. Set fixed sizes in the ColumnCreated event...

        If (TypeOf e.Column Is GridBoundColumn) Then
            CType(e.Column, GridBoundColumn).HeaderStyle.Width = 140
            CType(e.Column, GridBoundColumn).DataFormatString = "<nobr>{0}</nobr>"
        End If

3. Apply a CSS Class to ItemStyle and AlternatingItemStyle...

            <ItemStyle CssClass="grid-row" />
            <AlternatingItemStyle CssClass="grid-row" />

4. My CSS Class is defined as follows...

            .grid-row td {overflow:hidden;}


Is this the best way to achieve this or is there a built in way or preferred way?

Thanks
Chris
Top achievements
Rank 2
 answered on 09 Jul 2009
1 answer
223 views
Hi,
I am trying to set focus and then validate RadCaptcha using javascript. But I could't find any resource about Client API's of Captcha. Do you have any documentation? Or could you please show me how will I validate Captcha with javascript. 
I use the code below to set focus to captcha? Please tell me where am I wrong?
        $find('<%=myCaptcha.ClientID %>').set_focus(); 

I would appreciate it a lot, if you could share any documentation about client support of captcha.
Thanks in Advance.
Aytaç Utku TOPAL
Pero
Telerik team
 answered on 09 Jul 2009
1 answer
215 views

I used telerik menu to display Icon and text vertically so I have written following code it display Icon and text but text not display in center of the image.

My requirement is that I have to display text in bottom of the image and also it should be in center.

 

<telerik:RadMenu ID="RadMenu1" runat="server" DataSourceID="SiteMapSetup" OnItemDataBound="RadMenu1_ItemDataBound" DataNavigateUrlField="url" Flow="Vertical"   >

</telerik:RadMenu>

 

protected void RadMenu1_ItemDataBound(object sender, Telerik.Web.UI.RadMenuEventArgs e)

{

        SiteMapNode node = (SiteMapNode)e.Item.DataItem;

        e.Item.ImageUrl = node["ImageURL"];

        e.Item.Text ="<br><br><br>" +  node["text"] ;

}

Yana
Telerik team
 answered on 09 Jul 2009
3 answers
110 views
Hi All,

  I am facing below issues in radGrid when running my page in different browser.

(1) The cell contents gets overlapped  to next cell if the size of text increases then the cell width

 I have tried out the below style as posted in another thread for wrapping issue of mozilla

.GridRow_Default

 

td,

 

.GridAltRow_Default

 

td

 

{

 

overflow: hidden;

 

}

My Client settings for grid are 

 

 

<Resizing ClipCellContentOnResize="true" AllowColumnResize="true" ResizeGridOnColumnResize="true" />

 

Dimo
Telerik team
 answered on 09 Jul 2009
1 answer
64 views
Is it possible to force a user who double clicks a file using FileExplorer to only
save the file vice opening in new RadWindow?  Thanks in advance.

Joshua
Fiko
Telerik team
 answered on 09 Jul 2009
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?