Telerik Forums
UI for ASP.NET AJAX Forum
10 answers
222 views
Will the RadControls for ASP.NET AJAX work in Microsoft's new MVC Framework? Although that is really a blanket question, it came up at my last .NET community meeting. I am sure that some features on most of your controls will probably work (like the RadTabStrip), but I am not sure about the controls that require post back features (since there is no post back in MVC).

What information can you provide me with so I can field these sort of questions? Any information would be helpful.

The most asked questions:
Will there be a control set for the MVC framework?
If so, will they require a separate developer license?

Thanks!

John
Ivo
Telerik team
 answered on 23 Oct 2008
0 answers
90 views
how to get the RadGrid Selection box value ?
after selecting selection box ..
when i click radlinkbuttion at the time i  want to redirect to another page..

pls help me
karthik
Top achievements
Rank 1
 asked on 23 Oct 2008
5 answers
112 views
Hi

I'm dynamically creating an empty DataTable, with a number of predefined rows. I bind that to a RadGrid control, with one GridDropDownColumn set up. I then make the whole RadGrid editable.

A user will select a value in each of the DropDownLists, and then it will be saved to a database.

However, each DropDownList needs to be bound to a different datasource. How can I uniquely identify each DropDownList?
Sebastian
Telerik team
 answered on 23 Oct 2008
1 answer
199 views
Hello,

My original post for this question was in the RadnControls for ASP.NET forums, but it wasn't getting responses so I have decided to paste it here.  I am using the ASP.NET Ajax version of the calendar.  Please view the following thread to other correspondence to this issue: http://www.telerik.com/community/forums/thread/b311D-bgmttm.aspx

In the example below I am adding a button to every cell of the calendar using the OnDayRender event.  The problem I am having is that the button click event is not being fired when the button is clicked.  Instead, the OnSelectionChanged event of the RadCalendar is being fired.  Is it possible to add asp controls to the RadCalendar cells and catch their click events?  I attempted to use the code formatter, but it was flaking out so I just pasted the code below.  Thank you in advance for any replies.

-Drew

C#

using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using Telerik.RadComboboxUtils;

public partial class UserControls_EventCalendar : System.Web.UI.UserControl
{
    protected void Page_Load(object sender, EventArgs e)
    {
    }

    protected void CustomizeDay(object sender, Telerik.Web.UI.Calendar.DayRenderEventArgs e)
    {
        DateTime CurrentDate = e.Day.Date;

        if (e.Day.Date <= e.View.MonthEndDate && e.Day.Date >= e.View.MonthStartDate)
        {
            TableCell currentCell = e.Cell;

            currentCell.Style["background-color"] = "Orange";
            currentCell.Text = e.Day.Date.Day.ToString();
            currentCell.ID = e.Day.Date.ToString();
            Button button = new Button();
            button.Command += new CommandEventHandler(button_Command);
            button.UseSubmitBehavior = true;
            button.CausesValidation = false;
            button.ID = e.Day.Date.ToString();
            button.Text = e.Day.Date.Day.ToString();
            button.CommandName = "DatePicked";
            button.Click += new EventHandler(button_Click);

            currentCell.Controls.Add(button);

        }
    }

    void button_Click(object sender, EventArgs e)
    {
        throw new NotImplementedException();
    }


    public void button_Command(object sender, CommandEventArgs e)
    {
        throw new NotImplementedException();
    }

    public void OnDateClicked(object sender, Telerik.Web.UI.Calendar.SelectedDateChangedEventArgs e)
    {
    }

    protected void SelectedDateChange(object sender, Telerik.Web.UI.Calendar.SelectedDatesEventArgs e)
    {
    }
}

Asp.Net
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="EventCalendar.ascx.cs" Inherits="UserControls_EventCalendar" %>
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>

<telerik:RadCalendar ID="RadCalendar1" runat="server" Width="755px" TitleFormat="MMMM yyyy"
            AutoPostBack="true" ShowRowHeaders="False" UseRowHeadersAsSelectors="False" ShowOtherMonthsDays="False"
            EnableEmbeddedSkins="false" Skin="Business" CultureInfo="English (United States)" OnDayRender="CustomizeDay" OnSelectionChanged="SelectedDateChange" >
                <WeekendDayStyle BorderWidth="1px" BorderColor="MidnightBlue"></WeekendDayStyle>
                <SelectedDayStyle BackColor="Orange"></SelectedDayStyle>
                <FastNavigationStyle BorderWidth="1px" BorderColor="MidnightBlue" BackColor="Lavender"></FastNavigationStyle>
                <DayOverStyle Font-Bold="True" ForeColor="#C0FFFF" BackColor="SlateGray"></DayOverStyle>
                <OutOfRangeDayStyle BorderWidth="1px" BorderColor="MintCream"></OutOfRangeDayStyle>
                <HeaderStyle BorderWidth="1px" BorderColor="#000040"></HeaderStyle>
                <DayStyle BorderWidth="1px" BorderColor="MidnightBlue" Height="60px"></DayStyle>
                <CalendarTableStyle BackColor="Lavender"></CalendarTableStyle>
                <OtherMonthDayStyle BorderWidth="1px" BorderColor="Navy"></OtherMonthDayStyle>
</telerik:RadCalendar>
Missing User
 answered on 23 Oct 2008
3 answers
106 views
Hi,

I use to be able to stop auto postback for combobox on the OnClientBlur() method with eventArts.set_cancel(true), but the browse can't find that method anymore with the latest asp.net version released on 10/1/2008.  Anyways, I have a combobox that is on demand loading, I only want the combobox to postback when the user selects a value, or clicks enter, I have that working, except if a user uses the down arrow, has a value selected, then clicks off, the combobox still posts back.  I just need someway from the OnClientBlur() method to cancel post back.


Any idea?
Yana
Telerik team
 answered on 23 Oct 2008
1 answer
116 views
  <telerik:RadDatePicker ID="tbStartDate" Runat="server" >   <DatePopupButton ImageUrl="App_Themes/Default/images/calendar.jpg"     HoverImageUrl="App_Themes/Default/images/calendar.jpg" />  </telerik:RadDatePicker>
<msvab:PropertyProxyValidator ID="StartDateValidator" runat="server" ControlToValidate="tbStartDate" PropertyName="StartDate" RulesetName="StartDate" SourceTypeName="XYZ.CLASS" Display="Dynamic" />

 

[DateValidator(Ruleset = "StartDate", MessageTemplate = "Start Date \"{0}\" must not be in the past.")] 
public DateTime StartDate {}

 

 


I Have a telerik DatePicker and i am trying to validate with a custom Validator.
The PropertyProxyValidator always read the date as 01/01/0001 instead of the date i selected.
Any suggestions ?

 

 

 

 

 

 

 

 

 

 

Missing User
 answered on 23 Oct 2008
1 answer
109 views
Hello;

I need a help about how to get a drop event on RADSecheduler.

I want to popup a window like RADWindow when item dropped to Secheduler.
any help how to do that?!

another question...

how to enable only drag & drop and disable expanding items?


Thanks alot
Mona
Top achievements
Rank 1
 answered on 23 Oct 2008
1 answer
178 views
I am using a RadPane to display content from an external web page in my application.  If the user clicks on links in the external content and navigates to a different page than that was orginally loaded in the RadPane, the src URL does not update to reflect the current web page address.

How can I get the current address that is loaded into a RadPane?

Also, would like to convert the contents of the RadPane to a PDF file for archiving purposes in my application.  How can I get the HTML content that is loaded into the RadPane?

Tim
Svetlina Anati
Telerik team
 answered on 23 Oct 2008
3 answers
152 views
Hi, i'm having a problem with dynamically creating controls(datetime picker specifically), i need the page to add a new control to the page every time a button is pressed.
any help would be appreciated.

Thanks
Nikolay Rusev
Telerik team
 answered on 23 Oct 2008
4 answers
374 views
Dear Telerik,
I saw your code about multicultural calendar.
there is a comment which you wrote
 //Hard code Gregorian calendar which you can use an switch case to check your culture which you can send it in client culture info from rad calendar. and you can add a Persian Calendar in your Calendar Engine.
you can find the algorithm of Persian calendar from .net Persian calendar. it is really easy. I made it for my self but the problem is in Scheduler which do not use Rad Calendar.
plamen
Top achievements
Rank 1
 answered on 23 Oct 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?