Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
176 views

I have used RadMenu version 2009.1.414.20, I want to set height of the RadMenu so that scroll will appear if menu items exceeds from mentioned height.

By using EnableAutoScroll="true" i am able to get scrollbar with respect to screen height but i want to set height of the RadMenuItems.
Below is the code, which i have used.


<

 

telerik:RadMenu Skin="Custom" EnableEmbeddedSkins="false" BorderWidth="0px" ID="RadMenu1" EnableScreenBoundaryDetection="false" EnableAutoScroll="true" EnableRootItemScroll="true"

 

 

runat="server" DataTextField="ScreenName" DataValueField="ScreenID" DataFieldID="ScreenID"

 

 

DataFieldParentID="ParentID" OnItemDataBound="RadMenu1_ItemDataBound" OnItemClick="RadMenu1_ItemClick">

 

 

<CollapseAnimation Duration="200" Type="OutQuint" />

 

 

</telerik:RadMenu>

Let me know if you have any solution?

 

Meghna
Top achievements
Rank 1
 answered on 18 Sep 2009
1 answer
123 views
How do I avoid calling NeedDataSource during ItemCommand execution ie, insert, update and cancel?

Thanks
Princy
Top achievements
Rank 2
 answered on 18 Sep 2009
1 answer
104 views
I have a linq query that returns a list of locations. Is it possible to bind the query results to a gridDropdown from the code behind ? I have the gridDropDown on that aspx page, but am not sure if i have to do everything from the back end or if there is just a setting i can do in the back end to populate the dropdown.  if so can someone show me a sample of how it would be done.. I am totally drawing a blank on this one.

Thanks
Gina
Princy
Top achievements
Rank 2
 answered on 18 Sep 2009
0 answers
88 views
I am building RadPanelBar using Database. In ascx page, I just have root like below

        <telerik:RadPanelBar
            runat="server" ID="RadPanelBar1"
            ExpandMode="FullExpandedItem">
            <Items>
            </Items>
        </telerik:RadPanelBar> 

In ItemDataBound, I am adding RadPanelItem, and itemtemplate using ItemTemplate = new MyTemplateClass()

In MyTemplateClass,

public void InstantiateIn(System.Web.UI.Control container)
// Here I am adding RadGrid and other controls dynamically.

All the code above in ASCX page (Usercontrol)

Question:
1. How to pass a value to RowDrop handler of dynamic RadGrid (which is inside the dynamically created radpanelitem) from aspx web page?
Venkat Ganesh
Top achievements
Rank 1
 asked on 18 Sep 2009
7 answers
438 views
Is there a way to turn off the Mouse Wheel Incrementation in the RadDatePicker similar to the property IncrementSettings-InterceptMouseWheel="False" in the RadNumericTextbox for a RadGrid and FormView?

I have not been able to find any docmentation that shows this.

Thanks, Robin
Raam Nandan
Top achievements
Rank 1
 answered on 18 Sep 2009
1 answer
428 views
Hi.

We are evaluating the latest version of the RadControls for ASP.NET and have come across a problem. I have two separate projects that both contain custom server controls. One project is the main website with it's own server controls and the other project is another set of server controls that would need to be reusable in other projects. Project 1 has a server control with a RadMenu in it placed on the aspx page. Project 2 has a server control with a RadTreeView in it. When I include the server control from project 2 with the RadTreeView on the same page as the RadMenu, I get the following JavaScript errors:

Error: Sys.InvalidOperationException: Type Telerik.Web.UI.Orientation has already been registered. The type may be defined multiple times or the script file that defines it may have already been loaded. A possible cause is a change of settings during a partial update.

Error: Sys.InvalidOperationException: Type Telerik.Web.UI.AttributeCollection has already been registered. The type may be defined multiple times or the script file that defines it may have already been loaded. A possible cause is a change of settings during a partial update.

Both projects import Telerik.Web.UI.

The conclusion I'm coming to is that the scripts are getting registered twice when I bring in the control from Project 2 because it is also referencing the Telerik dll.

I am currently using a ToolKitScriptManager as I tried to implement a RadScriptManager, but it throws an "Object not set" error.

Have you heard of this problem? Is there any way to make it work with using an external server control that also references the Telerik dll? Is there a way to check if Telerik.Web.UI is already imported so it doesn't import it a second time?

Just a note that it works fine if the RadTreeView server control is a part of project 1 also and placed on the page, but the second I add the external control from project 2, it throws those JavaScript errors.

Thanks for any assistance.
Ed

FaSSt2001
Top achievements
Rank 1
 answered on 17 Sep 2009
1 answer
199 views
How can I clear the AJAX cache of the ToolTip content?  I'm using the ToolTipManager to show history of a record.  However the information won't refresh I think due to the AJAX caching.  How do I force it to refresh?

Thanks.
Yong Zhou
Top achievements
Rank 1
 answered on 17 Sep 2009
2 answers
276 views
I'm trying to add a CssClass to a row in my grid. I use an OnItemDataBound method to do this, with the following code:

    protected void uxGrid_OnItemDataBound(Object sender, GridItemEventArgs e) 
    { 
        if (e.Item.ItemType == GridItemType.Item || e.Item.ItemType == GridItemType.AlternatingItem) 
        { 
            e.Item.CssClass += " foo"; 
        } 
    } 

However, I'm finding that this code REPLACES the class attribute on the row rather than appending to it.

Without the OnItemDataBound event, the generated HTML is:

<tr class="rgRow" id="..."

With the event, I'd expect this:

<tr class="rgRow foo" id="..."

But instead I get this:

<tr class=" foo" id="..."

Note that no classes are added in any settings on my aspx page. (Also note that I've removed other logic from the OnItemDataBound event for clarity - in reality I only want to add the "foo" class when certain conditions are met.)

What am I doing wrong?

Many thanks!

Jake
Jake
Top achievements
Rank 1
 answered on 17 Sep 2009
3 answers
117 views
Hi ,
Its great work is dont by Telerik in exporting to the calendar . when i click on the export button(samples version ) its exporting all the events on the scheduler . I want to export appointments based on the SelectedView . For Ex, if scheduler is in MonthView only  the month appointments should be exported. Please give me some suggestions

Thanks in advance
Nagireddy T
pucsoftware
Top achievements
Rank 1
 answered on 17 Sep 2009
2 answers
149 views
I wanted to know if there is a way to get other fields populated in outlook such as the location and description.  thanks.
pucsoftware
Top achievements
Rank 1
 answered on 17 Sep 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?