Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
116 views
Hi all
how can i install the radmenu (source code) to my MOSS portal ? let's say that i only have the source code version of the menu available (dll not available)

Thank You


Paul
Telerik team
 answered on 09 Nov 2009
0 answers
142 views
Problem
When you hover a tab which is a sibling of a separator tab (IsSeparator=True) you get a javascript error:

"className" is null or not an object


Who is affected
Everyone who uses Q3 2009 version (2009.3.1103) and have IsSeparator = True set for any of the tabs.


Workaround
Place the following javascript code right after the script manager's declaration:

<script type="text/javascript"
Telerik.Web.UI.RadTab.prototype._highlight = function () 
    if (this.get_hoveredCssClass()) 
        Sys.UI.DomElement.addCssClass(this.get_linkElement(), this.get_hoveredCssClass()); 
 
    var prev = this.get_previousTab(); 
    var next = this.get_nextTab(); 
    if (prev) { 
        var prevLink = prev.get_linkElement(); 
        if (prevLink) 
            Sys.UI.DomElement.addCssClass(prevLink, "rtsHoverBefore"); 
    } 
    if (next) { 
        var nextLink = next.get_linkElement(); 
        if (nextLink) 
            Sys.UI.DomElement.addCssClass(nextLink, "rtsHoverAfter"); 
    } 
     
    if (!this.get_enabled()) return
    if (!this.get_hoveredImageUrl()) return
    if (!this.get_imageElement()) return
     
    if (this.get_imageElement().src != this.get_hoveredImageUrl()) 
        this.get_imageElement().src = this.get_hoveredImageUrl(); 
}; 
 
Telerik.Web.UI.RadTab.prototype._unhighlight = function () 
    if (this.get_hoveredCssClass()) 
        Sys.UI.DomElement.removeCssClass(this.get_linkElement(), this.get_hoveredCssClass()); 
     
    var prev = this.get_previousTab(); 
    var next = this.get_nextTab(); 
    if (prev) { 
        var prevLink = prev.get_linkElement(); 
        if (prevLink) 
            Sys.UI.DomElement.removeCssClass(prevLink, "rtsHoverBefore"); 
    } 
    if (next) { 
        var nextLink = next.get_linkElement(); 
        if (nextLink) 
            Sys.UI.DomElement.removeCssClass(nextLink, "rtsHoverAfter"); 
    } 
         
    this._updateImage(); 
}; 
</script> 


What is next
The problem is already fixed and will be available in the next Latest Internal Build and the first service pack.



We apologize for the caused inconvenience.


Telerik Admin
Top achievements
Rank 1
Iron
 asked on 09 Nov 2009
1 answer
89 views
Hi,

I have a scenario like this. I open a small modal RadWindow of the size(300,400) from the ContextMenu of the Radgrid. I want to open a second RadWindow (size maximum possible as per the window size and resolution) when I click on the link in the first RadWindow. As I understand, when I open the second radWindow from first one, the second window is always within the first window, is it possible to open the second RadWindow with maximum screen size possible?

I am using following Javascript code to get the screen width and height and want to open the second RadWindow with this size.

w = window.screen.availWidth;

h = window.screen.availHeight;


Thanks.
Georgi Tunev
Telerik team
 answered on 09 Nov 2009
3 answers
96 views
I have a .aspx page where I have a RadDockLayout and a RadDockZone registered as this:
<telerik:RadDockLayout ID="rdlDockLayout" runat="server" OnLoadDockLayout="rdlDockLayout_LoadDockLayout" 
    OnSaveDockLayout="rdlDockLayout_SaveDockLayout"
    <telerik:RadDockZone ID="rdzMain" UniqueName="rdzMain" runat="server" MinHeight="600px" 
        Width="550px" BorderStyle="None"
    </telerik:RadDockZone> 
    <div style="display: none"
        <%--Hidden UpdatePanel, which is used to receive the new dock controls.--%> 
        <%--We will move them with script to the desired initial dock zone.--%> 
        <asp:UpdatePanel runat="server" ID="udpPanel" OnLoad="udpPanel_Load"
            <Triggers> 
                <asp:AsyncPostBackTrigger ControlID="cmdNewDockWithZone" EventName="Click" /> 
                <asp:AsyncPostBackTrigger ControlID="cmdNewDock" EventName="Click" /> 
            </Triggers> 
        </asp:UpdatePanel> 
    </div> 
</telerik:RadDockLayout> 

I'm adding new Docks to the page via the UpdatePanel and placing the using script as illustrated in this example. Some docks are created with a DockZone and some are placed in these dynamically created DockZones.

Now I want to be able to react to the placed docks from code behind during the AJAX call backs but it seems that the DockZones are "lost" after they have been created. I.e. only the non-dynamic DockZone (rdzMain) is registered in rdlDockLayout.RegisteredZones and when calling rdlDockLayout.GetRegisteredDocksState() all Docks that are docked in dynamically created DockZones have an empty string for DockZoneID. This makes it hard to figure out which Dock belongs to which DockZone, which is important to my application.

DockZones have the same string (unique per DockZone though) set as both ID and UniqueName.

Is something wrong or is this the expected behavior when creating DockZones dynamically?


AndyRutter
Top achievements
Rank 2
 answered on 09 Nov 2009
1 answer
59 views
This example sends the user to a 404 page when the update button is clicked.
Pavel
Telerik team
 answered on 09 Nov 2009
11 answers
413 views

In FormTemplate I place combobox that select value from LinqDataSource, I want to find Selected Row’s Key value inside Linq’s selecting event at server side that will fire when user click on Add/Edit row in grid.

 

My code is.

 

<asp:LinqDataSource ID="linq_Students" runat="server"  

ContextTypeName="dbLibrary.StudentDataContext"

TableName="tbl_Students" OnSelecting="linq_Student_Selecting">            

</asp:LinqDataSource>

 

<telerik:RadGrid ID="gv_Student" runat="server"...

<MasterTableView...

<Columns>

...

</Columns>

<EditFormSettings...

      <FormTemplate>

<telerik:RadComboBox ID="list_Students" runat="server" SelectedValue='<%# Bind("StudentID") %>' DataSourceID="linq_Students"

DataTextField="StudentName" DataValueField="StudentId">

</telerik:RadComboBox>

 

...

 

 

 

protected void linq_Student_Selecting (object sender, LinqDataSourceSelectEventArgs e)

{

      Here I want to find Key Value.

}

 


With ASP Grid we can obtain the same behaviour using following technique.

 

<asp:LinqDataSource ID="linq_Students" runat="server"  

ContextTypeName="dbLibrary.StudentDataContext"

TableName="tbl_Students" OnSelecting="linq_Student_Selecting">

<SelectParameters>

            <asp:ControlParameter ControlID="ASPGridName" DefaultValue="0"

                  Name="StudentID" PropertyName="SelectedValue" 

Type="Int32"/>

       </SelectParameters>

</asp:LinqDataSource>

 

protected void linq_ContactPersons_Selecting(object sender, LinqDataSourceSelectEventArgs e)

{

Console.WriteLine(e.SelectParameters.ElementAt(0).Value);

}

Dharmesh Barochia
Top achievements
Rank 1
 answered on 09 Nov 2009
3 answers
164 views
I think its really nice that the RadWindow can be used as a div-like control container.  This works nice when there is just one or two windows on the webpage.  However, I need to create about 4 "dashboards" on my webpage.  With the RadWindow I need to end the content templates to place controls onto the window.  With 4 windows on the page tings do nto lineup correctly.  I also have to expand the template editor on all 4 windows to see what the whole page looks like. 

Are there any guidlines to using the RadWindow in my scenarion or should I be using a different apporach??

Thanks in advance!
Georgi Tunev
Telerik team
 answered on 09 Nov 2009
3 answers
182 views

Hi,

     I am using RadWindowManager to open radwindows and I'm opening the window from clientside (i.e from javascript). On test, I have noticed that the rad window loads in its first call status and not get refreshing on its consecutive calls with new values when i pass the same querstring. The window should reload (actually the page load event of radwindow itself not called in the consecutive calls) so that i can show the values updated in the previous load.

To achieve this I used ReloadOnShow="true", its working but the page is get loaded 2 times, which takes double time to load the radwindow. So I tried to use ReloadOnShow="false" and PreserveClientState="false". Now the expected behavior is working. But if I refresh the page the page load is not get loaded again (ie, radwindow get loaded in its previous state). What I need to load the page with current state without loading it double time. I don’t like to use some random numbers in querystring as a parameter. Is there any better solution than this?

Please help me

Georgi Tunev
Telerik team
 answered on 09 Nov 2009
1 answer
108 views
Hi,

i am new to Rad Editor , can we hide the tools in the Rad editor.

can we write our own functionalities for our tools?

thanks,
mano
Princy
Top achievements
Rank 2
 answered on 09 Nov 2009
1 answer
143 views
I am having an issue retaining the values in a popup form if the save of the underlying object is not successful.  Specifically, I am using a custom ObjectDataSource and handling its Inserting event.  I then attempt to create a new object, bind it's value to those found on the popup's controls, and save the object in a try/catch block.

If the save throws an exception, I set a class level variable (_errorOccurred) to true.  Then, I handle the Grid's ItemUpdated event as shown below:

 

 

protected void RadGrid1_ItemUpdated(object source, Telerik.Web.UI.GridUpdatedEventArgs e)  
{  
   e.KeepInEditMode = _errorOccurred;  
}  
 


What this does is keeps the popup open, which works great.  However, all of the values are lost, and the user has to re-enter all of the values.

How do I retain the values in the popup in this case?

Thanks!

 

Yavor
Telerik team
 answered on 09 Nov 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?