Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
137 views
Hello,

I'm trying to achieve the following: if the selection of the drop down has not changed, do not postBack. if the selection has changed, do postBack. How would I achieve this? I tried to change OnClientDropDownClosing to OnClientSelectedIndexChanged but the OnClientSelectedIndexChanged event was not fired.

I'm using version 2009.2.701.35. My sample code is as below. Thanks for your help!

<%@ 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.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml">  
<head runat="server">  
    <title>Untitled Page</title> 
    <style type="text/css">  
        .Hidden  
        {  
            visibility: hidden;  
        }  
    </style> 
</head> 
<body> 
 
    <script type="text/javascript">  
    function checkboxClick(e)    
       {    
            e.cancelBubble = true;    
            if (e.stopPropagation)    
            {    
                e.stopPropagation();    
            }    
        }    
 
        function OnClientDropDownClosing(sender)  
        {  
           document.getElementById(sender.get_id() + "Helper").click();  
        }  
    </script> 
 
    <form id="form1" runat="server">  
    <asp:ScriptManager ID="ScriptManager1" runat="server" /> 
    <div> 
        <telerik:RadComboBox runat="server" ID="RadComboBox1" Height="200" HighlightTemplatedItems="true" 
            AutoPostBack="false" AllowCustomText="true" Text="All">  
            <Items> 
                <telerik:RadComboBoxItem Text="One" /> 
                <telerik:RadComboBoxItem Text="Two" /> 
                <telerik:RadComboBoxItem Text="Three" /> 
            </Items> 
            <ItemTemplate> 
                <div> 
                    <asp:CheckBox onclick="checkboxClick(event);" runat="server" ID="CheckBox" Text="" /> 
                    <%# DataBinder.Eval(Container, "Text") %> 
                </div> 
            </ItemTemplate> 
        </telerik:RadComboBox> 
        <asp:Button ID="RadComboBox1Helper" runat="server" Text="" CssClass="Hidden" OnClick="ButtonHelper_Click" /> 
    </div> 
    </form> 
</body> 
</html> 
 

using System;  
using System.Web.UI;  
 
public partial class _Default : System.Web.UI.Page  
{  
    protected void Page_Load(object sender, EventArgs e)  
    {  
        if (!IsPostBack)  
        {  
            RadComboBox1.DataBind();  
            RadComboBox1.OnClientDropDownClosing = "OnClientDropDownClosing";  
            //RadComboBox1.OnClientSelectedIndexChanging = "OnClientDropDownClosing";  
        }  
        Page.Title = "new title";  
    }
    #region DropDown Closed Events  
    protected void ButtonHelper_Click(object sender, EventArgs e)  
    {  
        RadComboBox1.Text = "13";  
    }
    #endregion  

Thanks,
Ashley
Veselin Vasilev
Telerik team
 answered on 30 Jul 2009
6 answers
362 views
I want to disable collapse property went click a node on tree view. How can't i do it?
Yana
Telerik team
 answered on 30 Jul 2009
1 answer
211 views
Hi,
  • Is there a way where Drag and drop shoud not be allowed for the dates lesser than Current date?
  • Also any way to disable the built in validation in Rad Scheduler?
In my Case, I am using Advance Edit template to update the appointment.
Start Date and End Date are same.
I am interested just in the Start Date and time of the appointment and want to update the same thru double click
ASPX Code here:

 

<telerik:RadScheduler ID="rsSchedule" runat="server" DataEndField="InducDt" DataKeyField="ID"

 

 

DataStartField="InducDt" DataSubjectField="SlotDesc" FirstDayOfWeek="Monday"

 

 

LastDayOfWeek="Saturday" OverflowBehavior="Expand" SelectedView="MonthView" Culture="English (United States)"

 

 

DayEndTime="19:00:00" DayStartTime="08:00:00" EditFormDateFormat="MM/dd/yyyy"

 

 

EditFormTimeFormat="h:mm:tt" Height="500px" MonthVisibleAppointmentsPerDay="3"

 

 

EnableEmbeddedSkins="true" ShowViewTabs="true" Skin="Hay" BackColor="#98cb33"

 

 

DisplayRecurrenceActionDialogOnMove="True" ShowFullTime="True" AllowDelete="false"

 

 

AllowInsert="false" TimelineView-UserSelectable="false" CustomAttributeNames="Deliverables">

 

 

<MonthView VisibleAppointmentsPerDay="3" />

 

 

<AdvancedEditTemplate>

 

 

<div style="background-color: #e2f59e">

 

 

<table align="center" border="0" width="95%" cellpadding="5" cellspacing="0">

 

 

<tr class="tableRow">

 

 

<td class="tableCellInduct">

 

 

<br />

 

 

</td>

 

 

</tr>

 

 

<tr class="tableRow">

 

 

<td class="tableCellInduct1">

 

 

<asp:Label ID="lblDescription" AssociatedControlID="lblSubject" runat="server" Text="Description"

 

 

Font-Bold="true">

 

 

</asp:Label>

 

 

</td>

 

 

</tr>

 

 

<tr class="tableRow">

 

 

<td class="tableCellInduct">

 

 

<br />

 

 

<asp:Label ID="lblSubject" runat="server" Text='<%# Bind("Subject") %>'>

 

 

</asp:Label>

 

 

</td>

 

 

</tr>

 

 

<tr class="tableRow">

 

 

<td class="tableCellInduct">

 

 

<br />

 

 

</td>

 

 

</tr>

 

 

<tr class="tableRow">

 

 

<td class="tableCellInduct1">

 

 

<table width="40%" align="left">

 

 

<tr>

 

 

<td class="tableCellInduct1">

 

 

<asp:Label ID="lblDate" AssociatedControlID="rdtpFrom" runat="server" Text="Induction Date"

 

 

Font-Bold="true"></asp:Label>

 

 

</td>

 

 

<td style="background-color: #e2f59e" align="left">

 

 

<telerik:RadDateTimePicker ID="rdtpFrom" runat="server" DateInput-ReadOnly="true"

 

 

SelectedDate='<%# Bind("Start") %>' MinDate='<%# Date.Now.Date %>' TimeView-StartTime="08:00:00"

 

 

TimeView-EndTime="19:15:00" TimeView-Interval="00:15:00" TimeView-Columns="4">

 

 

</telerik:RadDateTimePicker>

 

 

</td>

 

 

</tr>

 

 

</table>

 

 

<tr class="tableRow">

 

 

<td class="tableCellInduct">

 

 

<br />

 

 

</td>

 

 

</tr>

 

 

<tr class="tableRow">

 

 

<td align="center" style="background-color: #e2f59e">

 

 

<asp:ImageButton ID="btnUpdate" runat="server" CommandName="Update" ImageUrl="~/Images/update.gif"

 

 

CausesValidation="false" />

 

 

<asp:ImageButton ID="btnCancel" runat="server" CommandName="Cancel" ImageUrl="~/Images/Cancel.gif"

 

 

CausesValidation="false" />

 

 

</td>

 

 

</tr>

 

 

</table>

 

 

</div>

 

 

</AdvancedEditTemplate>

 

 

</telerik:RadScheduler>

Now while editing if I select a date lesser the InductDt(the field from the database binded to Start and End Date) it works fine.
But if I select a date greater than the InducDt it gives me an error saying that the 'Appointment Start Date and Time should be less than the End Date and Time'.
I have even tried setting the Causes Validation property of the Update Btn to false and setting the Validation Group of the Scheduler to blank. But no use

Please suggest a way out of this.

 

Peter
Telerik team
 answered on 30 Jul 2009
1 answer
59 views
Hi,

i have two questions in this post.

1) In our prototype we used Q1 controls to show to the client and developed using  telerik Q2 controls to develop our website which is ready for UAT. Now, issue is what needs change in order to look all my telerik Q2 controls as Q1 controls????

2) Can I apply skin in a single place so that it will effect all my controls in all my pages???


Thanks,
Mahesh
Sebastian
Telerik team
 answered on 30 Jul 2009
1 answer
107 views
Hi guys. The documentation does not say how to implement ScaleBreaks. You just simply mentioned that it is a feature. I've tried for several hours to get it to work but I cannot.
Please provide an example of server side implementation of ScaleBreaks in a StackedBar, thanks.
Velin
Telerik team
 answered on 30 Jul 2009
1 answer
98 views
Hi,
    I have a Parent Node with node value -0,After that i have  have bind the Tree view node values from the Database vased on Display order id field.
    My problem is when i drag and drop the Nodes it should be update the fields in Database.

 What i need is , In button clickevent , How could i read all the nodes and values in readtree.

Please help !!
Any help will be Appreciated!!
Thanks and regards!
chithuraj.j
Shinu
Top achievements
Rank 2
 answered on 30 Jul 2009
1 answer
94 views
Hi

   How can I disable RadRoator. I could not do it even I specified Enabled = "false".
   Please help me

   Thanks
   Srikanthg
Fiko
Telerik team
 answered on 30 Jul 2009
1 answer
91 views
Here i found a missing ";" after contentWindow as follows:

// Get a reference to the first RadWindow's content
var contentWin = dialog1.get_contentFrame().contentWindow


url:

http://demos.telerik.com/aspnet-ajax/window/examples/dialogreturnvalue/defaultcs.aspx

its in the code example C# Dialog2.aspx in the javascript block in function returnValue()

...

or anything else is wrong, my compiler tells me that get_contentFrame().contentWindow is null or not an object...

with contentWindow (); he tells me that get_contentFrame() is null or not an obejct.

sure that its correct without ; or (); ?

 cheers uspec


Fiko
Telerik team
 answered on 30 Jul 2009
1 answer
141 views
I currently have a  RadGrid wired up with 42 columns. Naturally, I have horizontal scrolling and column freezing enabled. However, when I try to use the keyboard to scroll (using the tab key), I do not get the expected behavior. Namely, the scroll bar does not move as I tab between cells. This causes glitchy behavior, especially if I want to scroll back to teh left (since the bar has not moved, this is difficult). Does Telerik's RadGrid support full-on keyboard navigation & I'm implementing it wrong? Any help would be great!
Veli
Telerik team
 answered on 30 Jul 2009
1 answer
188 views
Hello,

Is it possible to show alert message when user try to rename and delete root directory?
Currently it does not show any messages to user.

Also,
OnClientDelete event calls after deleting item, Is it possible to call it before deleting item?


Thanks,
Amol



Fiko
Telerik team
 answered on 30 Jul 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?