Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
203 views
I recently installed the Official IIS 7 URL Rewrite module (http://www.iis.net/expand/URLRewrite) and wrote a simple rule to rewrite a website from: http://www.site.com/news.aspx?Category=Sports to http://www.site.com/Sports/  The URL Rewrite works, if you goto the later url it works, however all of the Ajax driven controls (ie the RadMenu, RadRotator, RadTabStrip etc) do not work any more.

Is there a simple fix for this?

Thank you.
Fiko
Telerik team
 answered on 11 Dec 2009
5 answers
154 views
Hello. I need help with three things:

  • I need to make it required that a user selects from two resource dropdowns before attempting to submit a new appointment.
  • I need to make it required that the date of the appointment is after today.
  • I need to output error messages if either of these two do not happen.

        protected void RadScheduler1_AppointmentInsert(object sender, SchedulerCancelEventArgs e)  
        {  
            //if the event takes place before today, cancel, preferably with an error message  
            //if the resources are left empty, cancel, preferably with an error message  
            if (e.Appointment.Start <= DateTime.Now)  
            {  
                e.Cancel = true;  
            }  
        }  
 
        protected void RadScheduler1_AppointmentUpdate(object sender, AppointmentUpdateEventArgs e)  
        {  
            //if the event takes place before today, cancel, preferably with an error message  
            //if the resources are left empty, cancel, preferably with an error message  
            if (e.ModifiedAppointment.Start <= DateTime.Now)  
            {  
                e.Cancel = true;  
            }  
        } 

Using the above functions, I can prevent insertion/editing-in a prior date, but how do I get the scheduler to output an error message?

And how do I require resource selection from dropdown menus AND provide errors for those as well?

Thanks in advance.
Peter
Telerik team
 answered on 11 Dec 2009
1 answer
69 views
The ImageSrc icon to select a background image invokes the same DbContentProvider class as the Image Manager icon in the toolbar.

How do I invoke a different DbContentProvider class?

Thanking you in anticipation.

Roger
Rumen
Telerik team
 answered on 11 Dec 2009
1 answer
164 views
Hi,

I am wondering if there is any support for MicrosoftAjaxWebForms.js on the CDN feature.

Thanks
T. Tsonev
Telerik team
 answered on 11 Dec 2009
2 answers
135 views
I have the date filters working on a grid.

A between filter would be very helpful, but i have a simpler question i am not getting.

I want to hide the default row and column headers and set the fast nav to 12 months instead of 3.

I have set this for other datepicker controls in a form, but   How can i do this for a filter ?  In VB please ...

David
Top achievements
Rank 1
 answered on 11 Dec 2009
2 answers
159 views
I've got a problem with filling RadComboBox. Every time, the user clicks on the scrollbar all items are added again.

My RadComboBox looks like (its within a table):

 

                                                        <telerik:RadComboBox ID="radComboBoxPLZ" Runat="server" Width="50px" DropDownWidth="260px" MaxHeight="200px" 
                                                            OnItemsRequested="radComboBoxPLZ_ItemsRequested" EnableLoadOnDemand="true" MarkFirstMatch="true"   
                                                            CollapseDelay="100" TabIndex="1">  
                                                            <HeaderTemplate> 
                                                            <table style="width: 220px" cellspacing="0" cellpadding="0">  
                                                                <tr> 
                                                                    <td style="width: 40px;">  
                                                                        PLZ</td> 
                                                                    <td style="width: 120px;">  
                                                                        Gemeinde</td> 
                                                                    <td style="width: 20px;">  
                                                                        Kanton</td> 
                                                                </tr> 
                                                            </table> 
                                                            </HeaderTemplate> 
                                                            <ItemTemplate> 
                                                                <table style="width: 220px" cellspacing="0" cellpadding="0">  
                                                                    <tr> 
                                                                        <td style="width: 40px;">  
                                                                            <%# DataBinder.Eval(Container, "Text")%> 
                                                                        </td> 
                                                                        <td style="width: 120px;">  
                                                                            <%# DataBinder.Eval(Container, "Attributes['Gemeinde']")%> 
                                                                        </td> 
                                                                        <td style="width: 20px;">  
                                                                            <%# DataBinder.Eval(Container, "Attributes['Kanton']")%> 
                                                                        </td> 
                                                                    </tr> 
                                                                </table> 
                                                            </ItemTemplate> 
                                                        </telerik:RadComboBox> 
 
And my CS-Code looks like:
    protected void radComboBoxPLZ_ItemsRequested(object sender, RadComboBoxItemsRequestedEventArgs e)  
    {  
        if (e.Text.Length < 1)  
            return;  
 
        string sqlSelectCommand = string.Format("Select p.PLZ, k.Gemeinde, k.Kanton from AAV_TEST_PLZ_ORTE_GEMEINDE p, AAV_TEST_GEMEINDE_KANTON k where p.KANT_GEM_ID = k.ID and p.PLZ LIKE '{0}%' ORDER BY p.PLZ", e.Text);  
 
        DataTable dataTable = null;  
 
        using (OleDbDataAdapter adp = new OleDbDataAdapter(sqlSelectCommand, AdresssucheParameter.ConnectionString))  
        {  
            dataTable = new DataTable();  
            adp.Fill(dataTable);  
        }  
 
        foreach (DataRow dataRow in dataTable.Rows)  
        {  
            RadComboBoxItem item = new RadComboBoxItem();  
 
            item.Text = (string)dataRow["PLZ"];  
            item.Value = dataRow["PLZ"].ToString();  
 
            //zusätzliche Spalten  
            item.Attributes.Add("Gemeinde", dataRow["Gemeinde"].ToString());  
            item.Attributes.Add("Kanton", dataRow["Kanton"].ToString());  
 
            radComboBoxPLZ.Items.Add(item);  
            item.DataBind();  
        }  
    }  
 
In den Page_Load-Event I do nothing, beceause I don't want to load all the items beacause it takes too long. And I can't use WebService, because I need to get the value from the ComboBox in an other ComboBox with:

    string

plz = e.Context["FilterStringPLZ"].ToString();

I'm looking for an solutin since 2 days and can't find an answer. It's very frustrating because I'm testing with yout Trial Version - when it looks good, we would like to pay the software.
Thanks for your anser! Bye

 

Test Test
Top achievements
Rank 1
 answered on 11 Dec 2009
1 answer
75 views
I'm currently experiencing the following issue in my development environment that can also be reproduced on one of the demo pages.

Steps to reproduce:


  1. Go to:  http://demos.telerik.com/aspnet-ajax/window/examples/windowmanager/defaultcs.aspx
  2. Click on the Maximize button of the window that doesn't have the focus (the bottom most window)
  3. Click on the Maximized Window.

Observation:

The bottom most window is maximized; however, the top most window appears on top of the maximized window.  When I click on the maximized window, the minimized window still appears.

Expected result:

The z-index of the bottom most window (the one that was maximized) should be greater than the top most window and it's opacity should be 1.0.  When the maximized window obtains the focus, the minimized window should no longer be visible.

Version:

2009.2.701.35

Is this a bug?  Is there a work-around or solution?


Georgi Tunev
Telerik team
 answered on 11 Dec 2009
1 answer
122 views
Hi All,

In my application i am using RadComboBox where on load of the page i am unable to get what ever the empty message i had given in the design this is what i had used.


<telerik:RadComboBox ID="cmbPlatformName" runat="server" AutoPostBack="True" 
                          onselectedindexchanged="cmbPlatformName_SelectedIndexChanged" 
                          Height="200px" Width="200px"
DropDownWidth="298px" EmptyMessage="Select Platform" HighlightTemplatedItems="true"
EnableLoadOnDemand="true" onitemsrequested="cmbPlatformName_ItemsRequested">
</telerik:RadComboBox>

Thanks in Advance.
Simon
Telerik team
 answered on 11 Dec 2009
4 answers
324 views
hi all,
I'm using Asp.net Ajax Radgrid for my application but i have one problem that how to generate combobox column dynamically in radgrid.
Can anyone suggest me how to add combobox column in radgrid dynamically so that i can populate combobox at itemcreated or itemdatabound event of radgrid.


Thanks in advance!!!
Kris
Top achievements
Rank 1
 answered on 11 Dec 2009
1 answer
149 views
This error appeared in my global exception logging and I was wondering if there was any insight into it

 
User-agent: IE8.0  
Location: Telerik.Web.UI.WebResourceError  
Description: System.NullReferenceException: Object reference not set to an instance of an object.      
at Telerik.Web.UI.CombinedScriptWriter.GetContentType(List`1 scriptEntries)      
at Telerik.Web.UI.CombinedScriptWriter.WriteCombinedScriptFile()    
at Telerik.Web.UI.WebResource.ProcessRequest(HttpContext context)      
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()      
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) Stack trace:     
at Telerik.Web.UI.CombinedScriptWriter.GetContentType(List`1 scriptEntries)      
at Telerik.Web.UI.CombinedScriptWriter.WriteCombinedScriptFile()      
at Telerik.Web.UI.WebResource.ProcessRequest(HttpContext context)      
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()      
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) 

T. Tsonev
Telerik team
 answered on 11 Dec 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?