Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
203 views
I need to be able to set the CurrentFilterFunction to NoFilter when the user deletes the value without manually selecting the NoFilter option from the menu.  The following code is useless since the CurrentFilterValue contains the value that was deleted.

            foreach (GridColumn column in RadGrid1.MasterTableView.Columns)
            {
                if (column.CurrentFilterFunction != GridKnownFunction.NoFilter
                && string.IsNullOrEmpty(column.CurrentFilterValue))
                {
                    column.CurrentFilterFunction = GridKnownFunction.NoFilter;
                }
            }

Here is the description from the tester: If you enter a value in a filter field and highlight thevalue and hit the delete key then enter a value in a different filter and selectthe filter icon… the first value you entered and deleted re-appears and isincluded in the filter.
Martin
Telerik team
 answered on 23 Jun 2010
3 answers
102 views
Hi,

It seems that the RadCalendar.IsSelected property is ignored. The below code should randomly select 1 of every 5 days. Instead none are selected. Any help is appreciated.

Jeff

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %> 
 
<!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"> 
        <asp:ScriptManager runat="server" /> 
        <rad:RadCalendar runat="server" OnDayRender="OnDayRender" EnableMultiSelect="true" /> 
    </form> 
</body> 
</html> 
 

using System; 
using System.Collections.Generic; 
using System.Linq; 
using System.Web; 
using System.Web.UI; 
using System.Web.UI.WebControls; 
 
public partial class _Default : System.Web.UI.Page 
{ 
    private Random Rand = new Random(); 
 
    protected void OnDayRender(object sender, Telerik.Web.UI.Calendar.DayRenderEventArgs e) 
    { 
        if (Rand.Next(5) == 0) 
            e.Day.IsSelected = true; 
    } 
} 
Martin
Telerik team
 answered on 23 Jun 2010
2 answers
296 views
Hi!
I'm trying to disable sorting / paging / filtering on my grid according some condition on the page.

The  code is the following

            grid.AllowPaging = false;
            grid.AllowSorting = false;
            grid.AllowFilteringByColumn = false;

This code doesn't work as expected. If I disable everything, the rendered grid has everything enabled and it's disabled ON NEXT postback. So It works, but with delay. The same if I try to enable everything again.

I placed that code on different events on the page / grid life cycle with no luck. Same behavior. I want to disable those commands and immediately see them disabled, not on next postback.

Thanks!
Jp Maxwell
Top achievements
Rank 1
 answered on 23 Jun 2010
2 answers
147 views
Hello!

When I have a radgrid nested inside of an RadAjaxPanel or associated with a RadAjaxManager, automatic paging will not work.  If the ajax panel or ajax manager is removed, the grid will postback to the next page.  Within the panel or associated with the manager, it never postbacks to the next page and appears to hang.  Any suggestions?

Thank you for any feedback that is provided!
Sanai
Top achievements
Rank 1
 answered on 23 Jun 2010
7 answers
118 views
Hi

Switching to day view throws the following error.

j is null
_onAppointmentMouseOver()Teleri...d16cbdc (line 8611)
_onDomEvent()Teleri...d16cbdc (line 7120)
createCallback()Teleri...d16cbdc (line 6)
createCallback()Teleri...d16cbdc (line 6)
Also, I have noticed appointment object becomes null when switching to day view.

Any ideas what could be the cause of this?

Thanks
T. Tsonev
Telerik team
 answered on 23 Jun 2010
4 answers
124 views
Ok, I feel like an idiot, but how do I change the skin of the RadEditor from Default to something else?

Thanks
Joseph Roberts
Top achievements
Rank 1
 answered on 23 Jun 2010
2 answers
193 views
In page load I want to reduce grid width by 250px.
I tried:

 

 

cnt = Convert.ToInt32(RadGrid1.Width) - 250

 

 

 

RadGrid1.Width = System.Web.UI.WebControls.Unit.Pixel(cnt)

but it did not work.

How can I do it?

 

John Davis
Top achievements
Rank 2
 answered on 23 Jun 2010
3 answers
107 views
Below is the scenario that I am not able to solve.
1. Master/Content Page setup.
2. Content Page has the RadAjaxManager object and a web user control (lets call it ucMaster)
3. ucMaster contains 3 other user controls, uc1, uc2 and uc3.  uc2 and uc3 are displayed based on a selection in ucMaster.  Both are loaded but the .Visible property is used to hide one or the other control.
4. uc1 has the RadAjaxManagerProxy1 and uses a radWindow dialog to get values and update the panel via ajaxrequest.  (Works fine)
5. uc3 has the RadAjaxManagerProxy2, and uses a radWindow dialog to get values and update the panel via ajaxrequest.  The "UpdatedControls" section uses the radAjaxManagerProxy2 as the "AjaxControlID" so that the panel is updated when the radWindow dialog is closed. (Does Not Work).

If I include the AJAX Setting in the ascx page under the RadAjaxManagerProxy AjaxSettings section, I get an error when the RadAjaxManagerProxy1 invokes an update for user control uc1.  The error is: "Sys.InvalidOperationException: Could not find UpdatePanel with ID 'ctl00xxxxx_grvContactsPanel'.  If it is being updated dynamically then it must be inside another UpdatePanel."

If uc3 is visible, the error does not come up.

I removed the "UpdatedControls" section from the radAjaxManagerProxy2.AjaxSetting section and add the control on the server-side in the page "PreRender" event.  The code runs, but the panel does not get updated.  If I move the server-side code to the "ajaxRequest" event handler I get the same error as before.

Any help with this will be greatly appreciated!

Thank you.
Iana Tsolova
Telerik team
 answered on 23 Jun 2010
6 answers
136 views
Hello,

See the attached image.  As soon as I click into the subject, it displays the error message, and even when I type, it still shows over top.  How do I fix this?  What is causing it, and is there a setting to turn it off?

Thanks.
T. Tsonev
Telerik team
 answered on 23 Jun 2010
2 answers
96 views
Hi,
       Telerik has done a great job to minimise the developement time.
       I am using the telerik controls extensively.

      I am using the RadListBox control and it's 'AllowReorder' property to move the items of RadListBox up and down.
      Now, i want that items of two listboxes can move Up using single UP button and Signle down button for two Radlistboxes.
      Can i do that.

     In addition to that i need to edit the item (option) of one of my RadListBoxes on doubleclick on that item, can i do that ?

Please reply
Yana
Telerik team
 answered on 23 Jun 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?