Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
71 views
Is there a way to change this behavior client-side via the API? I couldn't find anything, so I assume no... which is going to make my life very difficult I think. *grin*... anyway, just thought I'd post this simple question in hopes that someone might know a solution.

Thanks!
-Brian
Brian Azzi
Top achievements
Rank 2
 answered on 23 Mar 2010
2 answers
88 views

I get a client side error that says: "Error executing child request for handler 'System.Web.UI.Page'.
I assume it has something to do with ScriptManager, but it is strange since I've used the same way to implement user controls with a rad chart.
When debugging I get the error on

 

HttpContext

 

.Current.Server.Execute(myPage, writer, false)

Any ideas of how to implement rad grid using HttpContext.Current.Server.Execute ?

 

Btw when I replace the grid with MS version it works.

Or the I run the rad grid as a stand alone page, it works as well.

Martin
Top achievements
Rank 1
 answered on 23 Mar 2010
1 answer
773 views
hi

How do i do a if else in item template? here is my code of what i am trying to accomplish:

 

<ItemTemplate>

 

<%

#IIf(DataBinder.Eval(Container.DataItem, "SupportingDocument") = "None","None","<a href="#" onclick='openRadWindow2('<%#DataBinder.Eval(Container.DataItem,"SupportingDocument")%>'); return false;">Supporting Document</a>)%>

 

 

</ItemTemplate>

Thanks

 

Veli
Telerik team
 answered on 23 Mar 2010
1 answer
332 views
I have a series of Radgrids (linked to Objectdatasources), and I'm wondering if there is a way to detect and *not show* a radgrid if that data source has no rows.

There are 5 different Radgrids, and typically for any specific parent item no more than 2 or 3 will have any content, but it always changes. hence I'd like to show the grid if there is any data, hide it otherwise.

Any and all suggestions are appreciated.
Dimo
Telerik team
 answered on 23 Mar 2010
4 answers
600 views
I have what seems like a simple problem, but I can't get it to work.  I am simply trying to assign a custom CSS class to a RadTextBox via the attribute: CssClass="checkoutRequiredInput".

<telerik:RadTextBox ID="txtName" runat="server" Width="175px" CssClass="checkoutRequiredInput" />

What's happening though, is the Telerik generated CSS file (WebResource.axd...) is being attached to the page AFTER my custom CSS file.  So the page is rendering my CSS, then the Telerik CSS which is overriding my style.  I'm not sure if this is the result of using a MasterPage, but I have tried moving my CSS file's declaration around (in the page, in the MasterPage, etc) without success.

WebResource.axd...2925083 (line 39) 
html body .RadInput_Default .riTextBox, html body .RadInputMgr_Default  { 
background:none repeat scroll 0 0 #FFFFFF
border-color:#8E8E8E #B8B8B8 #B8B8B8 #8E8E8E
border-style:solid
border-width:1px
color:#000000
font:12px "segoe ui",arial,sans-serif
padding:2px 1px 3px
.checkoutRequiredInput { 
background:none repeat scroll 0 0 Red; 
margin:1px 0; 
width:175px

The above code is FireBug's output of the CSS, meaning the Top style takes precedence over the lower style.  As a result I cannot change the background color of the text box (I don't really want Red, but that would stand out if it worked).

Help?

EDIT:  Some additional details I assume you'll ask for.

1) The Default CSS file for a RadTextBox is loading (and I'm not sure why?  Is it automatic?)
<link class="Telerik_stylesheet" rel="stylesheet" type="text/css" href="/WebResource.axd?d=6ddCgTwcPGvcxML-k0DaXaNEwHkJQpsgRAzQRolF4UiV223Ken5HxvNrMIg0hxBY6YouB_BWaesPTT9LEBov1w2&amp;t=634009647102925083">
This is how the CSS file starts out--> /*Telerik RadInput Default Skin*/

2) When I investigate the source for this Demo: http://demos.telerik.com/aspnet-ajax/input/examples/appearance/styles/defaultcs.aspx
That CSS file (from #1 above) isn't being loaded.  This allows your custom CSS to be evaluated successfully. 

What causes the default CSS file to be loaded?  I have stripped the Skin Attribute from all of my RadTextBox controls for this page (however some still exist elsewhere in this site, which might cause the default to load due to the MasterPage?) and yet the default is still loaded.


Dimo
Telerik team
 answered on 23 Mar 2010
3 answers
127 views
 <telerik:RadTextBox ID="txtRadDescription"   
     Rows="8" Columns="30" MaxLength="250" Width="300px" TextMode="MultiLine" runat="server">   
 </telerik:RadTextBox>   
 

My Unique customer ID is: WT370784

Hello using ASPNET AJAX Q3 2008 
 
When I copy-paste inside RadTexBox Maxlenght don't work! 

can you help me?
Best Regards.

Dimo
Telerik team
 answered on 23 Mar 2010
3 answers
148 views
I have created a page for users to set up there web page.  Part of this page allows the user to select a skin for the grid control.  TO make it easier for the user toe select the skin the want I have used the RadComboBox and I show the skin name and the image from the grid folder.

When I create a custom skin for the grid control and go to the grid folder to get teh display image it is showing me the same image as the menu.  It does not have same grid image as the standard skins.  Is this an error with the skin builder site.  I have also noticed that when creating the skin the first tab show the wrong image it is the menu image, but when you go to fine tune it shows the whole grid. 
Dimo
Telerik team
 answered on 23 Mar 2010
1 answer
183 views
I have a RadPanelBar with about 6 RadPanelItems -- each of these items are separate .ASCX user controls.  Within these user controls depending on the options selected by the user I want to have other RadPanelItems created dynamically (at run-time). 

The problem I'm having is that when added the RadPanelItem is expanded, but when clicked it collapses.  However, it then doesn't ever expand again (nor does it have the arrow pointing downward showing that there is something to expand).

Here is the code I use to add the items:

        RadPanelBar1 = Page.FindControl("RadPanelBar1")  
        Dim radPanelBarItem1 As New RadPanelItem  
          
        radPanelBarItem1.Text = "&nbsp;&nbsp;&nbsp;Basic Network Configuration" 
        Dim template As ITemplate  
        radPanelBarItem1.ImageUrl = "../Images/basic_network.png" 
        template = Page.LoadTemplate("/controls/basicnet.ascx")  
        radPanelBarItem1.ItemTemplate = template  
    
        RadPanelBar1.Items.Add(radPanelBarItem1)  
        
        Dim template2 As ITemplate  
        Dim radPanelBarItem2 As New RadPanelItem  
        radPanelBarItem2.Expanded = False 
          
        radPanelBarItem2.Text = "&nbsp;&nbsp;&nbsp;Advanced Network Configuration" 
        radPanelBarItem2.ImageUrl = "../Images/advanced_network.png" 
        template2 = Page.LoadTemplate("/controls/advnet.ascx")  
        radPanelBarItem2.ItemTemplate = template2  
        RadPanelBar1.Items.Add(radPanelBarItem2) 

The items show up obviously but like I said they're not functional.  It happens when the page is ajaxified and also when it's not ajaxified so I think it's definitely something I'm doing wrong.

Thanks for any help you can provide -- I've attached a screenshot.

 

 

Kalina
Telerik team
 answered on 23 Mar 2010
1 answer
69 views
I have a horizontal splitter with a top pane and a bottom pane.  Normally I can slide the splitBar up and down.  However, if I have a binary component in one of the panes, I cannot slide the splitBar over it.  Please try the simplified sample code below, and please help me find a solution.  I have been trying to figure this one out for some time.

 

 

<telerik:RadScriptManager ID="RadScriptManager1" runat="server">  
</telerik:RadScriptManager> 
<telerik:RadSplitter ID="splitter1" Orientation="Horizontal" Width="100%" Height="100%" runat="server">  
<telerik:RadPane ID="paneTop" runat="server" Width="100%" Height="300px" ContentUrl="http://www.yahoo.com">  
</telerik:RadPane> 
<telerik:RadSplitBar ID="splitBar1" runat="server" /> 
<telerik:RadPane ID="paneBottom" runat="server" Width="100%" Height="100%" ContentUrl="RadGridExport.pdf">  
</telerik:RadPane> 
</telerik:RadSplitter> 
 

 

Cesar
Top achievements
Rank 1
 answered on 23 Mar 2010
4 answers
543 views
Hello!

I'll try to post this in the Filter forum as well...

I'm working on a RadGrid based solution using filtering with the well described drop-down list column template. This works fine. I now want to add extra filtering functionality where extra filter criteria will be selected from keywords in drop-downs outside the grid (views in a way). These expressions will have to be added to the ones from the drop-downs in the grid.

I could achieve this by using a hidden RadFilter control, programmatically populating the control with the filter expressions from the drop-downs both outside and inside the grid but I can't find any description of how to do this.

So, is this achievable at all?


Kind regards

Petter Marthinsen
Petter
Top achievements
Rank 1
 answered on 23 Mar 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?