Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
496 views
Hi I've built a ASP.NET user control (ascx) with a radgrid in it.
The control is placed on a ASPX page. When a user click on a row in the radgrid
 
When a user click on the radgrid in the ASCX I want to do an ajax update of a couple of graphs on the ASPX page. 

What's the best way to get the event in the ascx to the aspx page and update the controls based on the current selection in the grid?

Thanks!
Mike
Top achievements
Rank 1
 answered on 06 Aug 2009
2 answers
183 views
I am trying to update the time in timepicker when the time is selected. However, when i try to update the time, the OnDateSelected handler is called, causing an infinite loop. How can I disable the event handler temporarily so I can update the time?


<telerik:RadTimePicker ID="uxStartTime" runat="server" Skin="Default" TimeView-RenderDirection="Horizontal" 
                                                        Width="85px" ClientEvents-OnDateSelected="dateSelected" TimeView-Interval="0:30" 
                                                        TimeView-Columns="4" EnableTyping="false" /> 

function dateSelected(sender, eventArgs) 
        { 
            var endTime = sender.get_selectedDate(); 
            endTime.setMinutes(endTime.getMinutes() + 10); 
            sender.set_selectedDate(endTime); 
        } 

Ron Cirka
Top achievements
Rank 1
 answered on 06 Aug 2009
8 answers
330 views
Hi,

I am trying to show filtering menu onMouseOver even of the Filter button and to hide the menu onMouseOut event if the user decides not to change the filtering option. I managed to show the menu and have the problem with hidding it. Do you have any suggestion how I can do it?

Here is my code:

using

 

System.Web.UI.WebControls;

 

using

 

Telerik.Web.UI;

 

namespace

 

WWR.Common.UI.WebControls

 

{

 

public class WWRFilteringGridBoundColumn : GridBoundColumn

 

{

 

public WWRFilteringGridBoundColumn() : base()

 

{

AutoPostBackOnFilter =

true;

 

}

 

protected override void SetupFilterControls(TableCell cell)

 

{

 

base.SetupFilterControls(cell);

 

TextBox txtFilter = (TextBox)cell.Controls[0];

txtFilter.Attributes.Add(

"onclick", "javascript:document.getElementById('" + txtFilter.ClientID + "').select();document.getElementById('" + txtFilter.ClientID + "').focus();");

 

Button btnFilter = (Button)cell.Controls[1];

btnFilter.Attributes.Add(

"onmouseover", "javascript:document.getElementById('" + btnFilter.ClientID + "').click()");

 

 

//btnFilter.Attributes.Add("onmouseout", "javascript: ");

 

}

}

}

Thank you for advance,

Tatiana

Mira
Telerik team
 answered on 06 Aug 2009
9 answers
122 views
We have been using Telerik RadEditor since 1997 we are using version 4.4.1.0.  When I try to edit a page all of the icons are gone.  It just shows text for the buttons and when I try to use the MOSS Link Manager I get the following error :Could not find the command MOSSLinkManager.  Please update your command list.  I have no idea how to fix this.  Any ideas?
gail kinney
Top achievements
Rank 1
 answered on 06 Aug 2009
2 answers
107 views
For reasons that aren't important here, I need to be able to initiate the add/edit appointment process using the advanced edit form from a RadToolBar button rather than double-clicking on a timeslot or an existing appointment.

However, I can't find anything that obviously suggests itself as a way forward in the docs.

Is this something I can do entirely client-side? Or do I have to perform an AjaxRequest on the button click and call something server-side?

Hints, vague clues and fully-working examples complete with documentation and a free copy of half-life will all be appreciated. :-)

--
Stuart
Stuart Hemming
Top achievements
Rank 2
 answered on 06 Aug 2009
4 answers
189 views
I can't seem to get the RadAjaxLoadingPanel to appear over the control being updated.  I've tried to create as simple an example as possible to remove the possibility of my project's complexities as the culprit.  However, even that simple scenario doesn't seem to work.

<%@ Page Language="C#" AutoEventWireup="true"  CodeFile="Default.aspx.cs" Inherits="_Default" %> 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> 
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
 
<html xmlns="http://www.w3.org/1999/xhtml"> 
<head runat="server"> 
    <title></title> 
</head> 
<body> 
    <form id="form1" runat="server"> 
    <div> 
        <telerik:RadScriptManager runat="server" ID="rsmScriptManager" /> 
        <telerik:RadAjaxManager runat="server" ID="ramAjaxManager"> 
            <AjaxSettings> 
                <telerik:AjaxSetting AjaxControlID="btnTest">                     
                    <UpdatedControls> 
                        <telerik:AjaxUpdatedControl ControlID="divColor" LoadingPanelID="rlpLoadingPanel" /> 
                    </UpdatedControls> 
                </telerik:AjaxSetting> 
            </AjaxSettings> 
        </telerik:RadAjaxManager> 
        <telerik:RadAjaxLoadingPanel ID="rlpLoadingPanel" runat="server" Skin="Vista"/> 
        <div style="width: 500px; height: 500px; background-color: Red;" runat="server" id="divColor" /> 
        <asp:Button ID="btnTest" runat="server" Text="Test" OnClick="btnTest_Click" /> 
    </div> 
    </form> 
</body> 
</html> 
 

The codebehind simply changes the color of the div from red to blue after sleeping for a couple of seconds to simulate server processing time.  When I run this, the colored div disappears, no loading panel is shown, and then div reappears in blue.   What am I missing here?
Pavlina
Telerik team
 answered on 06 Aug 2009
3 answers
237 views
I have a page with a RadMenu on it, at across the top, and there is a RadComboBox.
The user is complaining, because when they dropdown the combo, if they have their window resized, so the dropdown goes UP instead of down, it goes behind the menu.
Is there a way to get it to go in front of the menu?

thanks in advance.
CheerZ!
Mr. Plinko
Top achievements
Rank 1
 answered on 06 Aug 2009
3 answers
93 views
Hi,

I am trying to create a menu that has a different template per level. i.e First level is just a label and then the second level is a UserControl implementing ITemplate. It is the same Usercontrol for all the 2nd level menu items.

  |-- Users (text label)
  |    |-- Gallery UserControl (datasource is children of users)
  |
  |-- Locations (text label)
  |    |-- Gallery UserControl (datasource is children of locations)   
  |

Is this possible?

Thanks
Atanas Korchev
Telerik team
 answered on 06 Aug 2009
3 answers
126 views
I would like to create a grid that has multiple lines per entry.  There are 4 colums in the line.  Column 1 is type, column 2 is date, column 3 is a value, column 4 is a value.  I would like to add a new column 5 (short description) that will be on the second row spanning the entire grid (basically colspan=4).  Is there a simple way to do something like this besides building a complicated template?

EX.
-----------------------------------------------------------------------------
| type             |  date                 |    val 1               |  val 2          |
-----------------------------------------------------------------------------
| Drivers        | 1/2/2009           |    Cat                 |   Dog          |
-----------------------------------------------------------------------------
| My cat likes you                                                                    |
-----------------------------------------------------------------------------
| Man           | 2/2/2009           |    Fly                 |   Chimp        |
-----------------------------------------------------------------------------
| Something about a man                                                       |
-----------------------------------------------------------------------------
Gary
Top achievements
Rank 1
 answered on 06 Aug 2009
2 answers
54 views

Hi,

When using the month view inthe Scheduler I would like to show a summary of all appointments in a day, OnMousehover I would like to show the details of the appointments for that day.

For Example

I have a room name Conference,and wish to see the bookings for a month for this room. I am able to show theappointments in the month view.

Say on a particular day thereare 5 bookings for the room, the month view shows all 5 bookings seperately.What I want is to show a summary stating there are 5 bookings and on mousehoverit should provide me information of the separate bookings for the day.

Thanks

Sabrish

Peter
Telerik team
 answered on 06 Aug 2009
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?