Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
87 views

I am just curious if this is something wrong with my setup or if this happens to everyone. Each time I you a radcontrol I have to manually add the script block and then I have to add the line below to the web config. Is this suppose to be a manual process or should this occur when you drag a control on to the page? I am using ASPNET AJAX Q2 2008\Bin35\Telerik.Web.UI.dll

<

add path="Telerik.Web.UI.WebResource.axd" verb="*" type="Telerik.Web.UI.WebResource, Telerik.Web.UI" validate="false" />

Thanks

Kevin Babcock
Top achievements
Rank 1
 answered on 10 Aug 2008
2 answers
247 views
 Very simply, I have a RadSplitter with 2 Panes each having their ContentUrl set to a different url. The first Pane has its Collapsed property set to false and the second Pane has this property set to true.

So when I run the page I see just the one Pane.

I added a button so that when the button is clicked it executes a javascript function that expands the second Pane and collapses the first.

The second Pane gets expanded but there is no content there. It is like it has not tried to load the ContentURL.

I just want to be able to show one Pane at a time, each having a different Content Url.

If I do not initially set the Collapse property of the second pane to true, I get both Panes loading their content but I do not want to see both panes on the screen at once.

thanks
-Barb
Barb
Top achievements
Rank 1
 answered on 09 Aug 2008
1 answer
85 views
Hi All.

In Grid:
<telerik:GridTemplateColumn>    
<ItemTemplate>    
<asp:LinkButton ID="LinkButton7" runat="server">Open ContextMenu</asp:LinkButton>    
</ItemTemplate>    
</telerik:GridTemplateColumn> 

How to show ContextMenu when user click on LinkButton?

I have jscript function:

function RowContextMenu(sender, eventArgs)     
                    {     
                        var menu = $find("<%= RadMenu1.ClientID %>");     
                        var evt = eventArgs.get_domEvent();     
                             
                        var index = eventArgs.get_itemIndexHierarchical();     
                        document.getElementById("radGridClickedRowIndex").value = index;     
                             
                        sender.get_masterTableView().selectItem(sender.get_masterTableView().get_dataItems()[index].get_element(), true);     
                             
                        menu.show(evt);     
                             
                        evt.cancelBubble = true;     
                        evt.returnValue = false;     
    
                        if (evt.stopPropagation)     
                        {     
                           evt.stopPropagation();     
                           evt.preventDefault();     
                        }     
                    }    
 

and this function working when OnRowContextMenu raised.

Maybe i can raise this event programatically on OnClientClick of LinkButton?

Thanks.
Andy
Top achievements
Rank 1
 answered on 09 Aug 2008
2 answers
108 views
Hi,
     I am using panel bar and my desing like this. Problem in display contents in hierarchy form. My actual design like this -

1
  1.1
       1.1.1
               1.1.1.1
               1.1.1.2

But its displaying like this -

1
  1.1
       1.1.1
       1.1.1.1
       1.1.1.2

I not want to use treeview in panel control. I got solution by using treeview but i want to use only one control.
If i use this css class then its working but its background color displaying transperent.

.RadPanelbar_myThem

 .level2
{
margin-left: 20px;
}

Please give me other idea. I am using XML for binding Panel control.

Thanks
Jaydev Jangid


Sean
Top achievements
Rank 2
 answered on 09 Aug 2008
1 answer
113 views
Hello,

After upgrading the binaries to 2008 Q2, My radgrids with GridCalculatedColumns are getting "Specified cast is not valid." exception.

I'm binding the grid from code behind by creating a dynamic class using LINQ.

Below is my code for GridCalculatedColumn

<telerik:GridCalculatedColumn Aggregate="Sum" DataFields="Lines" DataType="System.Int32" Expression="{0}"></telerik:GridCalculatedColumn>

Sean
Top achievements
Rank 2
 answered on 09 Aug 2008
1 answer
110 views
Ok so I'm not sure if I am doing this the right way.  Basically what I want is to make a PanelBar with a Width of 100%
Then under each panel is some custom controls etc.  I tried using the ItemTemplate with no luck, so I turned to MultiPage.

I would prefer using the template and just droping my HTML inside each templtate, but I cant figger it out.

Using this code, I am getting A JS error.

            <telerik:RadPageView ID="RadPageView6" runat="server">  
 
<script type="text/javascript">  
    var blnDragging = false;  
            function OnClientItemClicking(sender, eventArgs)  
            {  
                var multipage=$find("RadMultiPage2");  
                multipage.set_selectedIndex(eventArgs.get_item().get_index());  
            }  
            function BeforeDragHandler()  
            {  
                blnDragging = true;  
            }  
              
            function BeforeDropHandler()  
            {  
                blnDragging = false;      
            }  
            function panelMouseOver(sender, eventArgs)  
            {  
                if (eventArgs.get_item().get_text().indexOf("Folders") != -1 && blnDragging)  
                {  
                    var multipage=$find("RadMultiPage2");  
                    multipage.set_selectedIndex(eventArgs.get_item().get_index());  
                }  
            }  
</script> 
 
                <telerik:RadMultiPage ID="RadMultiPage2" runat="server" SelectedIndex="0">  
                    <telerik:RadPageView ID="RadPageView7" runat="server">  
                        RadPageView1  
                    </telerik:RadPageView> 
                    <telerik:RadPageView ID="RadPageView8" runat="server">  
                        RadPageView2  
                    </telerik:RadPageView> 
                    <telerik:RadPageView ID="RadPageView9" runat="server">  
                        RadPageView3  
                    </telerik:RadPageView> 
                </telerik:RadMultiPage> 
 
                <telerik:RadPanelBar ID="RadPanelBar1" runat="server" ExpandMode="SingleExpandedItem" 
                OnClientItemClicking="OnClientItemClicking" OnClientMouseOver="panelMouseOver" Skin="Telerik" Width="100%">  
                    <Items> 
                        <telerik:RadPanelItem Text="User Administration" /> 
                        <telerik:RadPanelItem Text="Business For Sale Administration" /> 
                        <telerik:RadPanelItem Text="Business Wanted Administration" /> 
                    </Items> 
                </telerik:RadPanelBar> 
 
            </telerik:RadPageView> 
        </telerik:RadMultiPage> 

I just took the code out of the tutorials.
Chase Florell
Top achievements
Rank 1
 answered on 08 Aug 2008
6 answers
167 views
Hi guys,

As far as I can tell the class .radCalToday_SkinName is never applied.

What's the reason for not using css to define the navigation arrows? I realize we can state special navigation and fastnavigation images, but how would one add some hover effect?

The same goes for the textboxes in date- and timepickers.
I added a class I didn't find in any of the skins I looked at called .radEnabledCss_Skinname, but I cannot access hover attributes without writing some javascript and try to override the default settings from there.

Is it really an ideal approach to embed these attributes from somewhere else, rather than simply using the skin css files?

Regards,
-DJ-
-DJ-
Top achievements
Rank 1
 answered on 08 Aug 2008
3 answers
314 views
I'm getting a Javascript error "Sys is not defined" when I use the RadAjaxManager to monitor a RadTextBox. If I change the textbox to a normal ASP textbox, things work fine. My app is configured the way your troubleshooting FAQ suggests, and I'm still getting the error. I've also noticed that I get the same problem when I use a DES (Peter Blum) textbox. Any ideas?
MatFindlay
Top achievements
Rank 1
 answered on 08 Aug 2008
2 answers
227 views
Hi, just for information.

I'm using the HTMLEditor in a rad grid.
The style
.radeditor.Vista.rade_wrapper table td.rade_contentCell 
{ 
    border: solid 1px #9db6c5; 
    background: white; 
} 

controls the background color for the contant area, but in FF, my html background is actually shown the content area because the content background is either transparent or it inherits the background image from my html style, not the white background.

So by adding !important, this is fixed!
.radeditor.Vista.rade_wrapper table td.rade_contentCell 
{ 
    border: solid 1px #9db6c5; 
    background: white !important; 
} 


Matt
Top achievements
Rank 1
 answered on 08 Aug 2008
2 answers
130 views
Hi,

I'm newbie in RadGrid.  I'm trying to implement the "Resizing grid with scrolling when data is less than scroll height" by following the RadControls document.
My version is Q2 2008.

The following taken from document :
<script type="text/javascript">
 
function GridCreated(sender, args)
 {
    var scrollArea = sender.GridDataDiv;
    var dataHeight = sender.get_masterTableView().get_element().clientHeight;
    if(dataHeight
< 350)
    {
       scrollArea.style.
height = dataHeight + 17 + "px";
    }
 }


However, it stopped at
 
scrollArea.style.height = dataHeight + 17 + "px";
with error" Object expected".

It seems
scrollArea.style.height expects an object as input rather than a string.

Please advise,
Wilson

Wilson
Top achievements
Rank 1
 answered on 08 Aug 2008
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?