Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
96 views
When adding a new expression in RadFilter, for some fields, I would like to pre-populate a default value in the expression. For example, in the attached picture, when adding an OrderID expression, it should programmatically populate the value to "111".

I tried to customize the ItemCommand event, but I don't know how to obtain the associated RadFilterTextFieldEditor and set the default value "111" to it.

Does any one know how to archieve it?

 

Daniel
Telerik team
 answered on 21 Oct 2010
1 answer
92 views
I'm pretty close on this one.  I took advantage of the EnableEmptyListItem to add an string telling the user to select an item.  I have a CompareValidator that is picking up the empty list item text.  What I would really like is to pick up the empty list item value, which is zero by default.  Here's what I have and it works on the text in the radcombobox.
GridDropDownListColumnEditor category = (GridDropDownListColumnEditor)item.EditManager.GetColumnEditor("RiskCategory");
                TableCell catcell = (TableCell)category.ComboBoxControl.Parent;
  
                CompareValidator comp = new CompareValidator();
                comp.ID = "compID";
                comp.ControlToValidate = category.ComboBoxControl.ID;
                  
                comp.ValueToCompare =  "Select a category";
  
                comp.Operator = ValidationCompareOperator.NotEqual;
                comp.ErrorMessage = "Please select a valid category";
                catcell.Controls.Add(comp);
Here, the emptylistitem text is "Select a category".  I can live with this, but if it's possible to get the value field for the comboboxcontrol, that would be great.  Thanks.
Cori
Top achievements
Rank 2
 answered on 21 Oct 2010
1 answer
175 views
I just installed the latest asp.net ajax controls and I'm using VS2010.  I clicked convert to telerik project and ran through the wizard leaving everything default.  I added a test.aspx and dragged a RadGrid onto the page and added a RadScriptManager.  It renders fine in design mode but when I run the project the grid just shows up as a gray line in the browser.

I also tried manually adding columns, populating the grid with data, etc.  Nothing works.
Cori
Top achievements
Rank 2
 answered on 21 Oct 2010
1 answer
61 views
I've got a grid that is on a radwindow.  The height of the window in set and so is the grid height but when the user select Add Record the height of the grid changes.  Is there anyway of stopping this from happening.
Cori
Top achievements
Rank 2
 answered on 21 Oct 2010
4 answers
253 views
I have two load on demand radcomboboxes that are working great, however, in the page load I try to set the seleceted value to session values:
if (Session["FacilityID"] != null)
            {
                FacilityID = Utils.ToInteger(Session["FacilityID"].ToString());
                if (Utils.ToInteger(radcmbFacility.SelectedValue.ToString()) != FacilityID)
                {
                    radcmbFacility.SelectedValue = FacilityID.ToString();
                }
            }
if I pause execution of the code, the line setting the value does run, and after it runs I can hover over the SelectedValue and it shows the correct value, however,  on the page the combobox still shows the empty message instead of the text for the selected value.





Cori
Top achievements
Rank 2
 answered on 21 Oct 2010
2 answers
97 views
Hi,

I use several telerik asp.net ajax controls (latest version) in my project. These controls reside in several usercontrols which use Output Caching. I followed the help article to disable embedded scripts and to register them manually. This works fine and so far I have no problems. But, I'm facing some problems when I load the page with the cached user controls in an iframe where the hosting page, which includes this iframe, also uses telerik controls but with EmbeddedScripts = true. The AnimationScript causes an error "Too much recursion"

}}return this.oldstep(e);  // This is the error point};

Maybe I'm not doing it correctly and you have some advice for me:
As said I use several telerik control in my project and I want to use caching on all controls. What I did:
I took all common scripts
1. Core.js,
2. jqueryplugins (I load the jquery.min.js from google cdn seperatley), 
3. NavigationScripts
4. PopupScripts
5. Scrolling
6. Animation
7. Subsequently all the scripts for the controls I use (RadRotator, RadTagCloud, etc.)

and put them into ONE file and registered this file in my master page. Which works great when the page is called alone.
The reason why I load this page in an iframe is that the admin of the page can rearrange the usercontrols. This hosting page uses the RadMenu for example which is included normally (Embedded Scripts, no caching etc.). The problem with the "too much recursion" error is that all other scripts fail (rearranging the usercontrol relies heavily on javascript)
As said the normal scenario is to call the page standalone but not in an iframe. Unfortunatley I cannot change the EmbeddedScripts property when the page is loaded in an iframe.

I Hope I made a silly mistake and there is a quick fix.

Thanks in advance.
deval
Top achievements
Rank 1
 answered on 21 Oct 2010
1 answer
71 views
My scheduler is populated via a webservice call that returns an XmlDocument. I want to send some additional data that is associated with each appointment. I have tried adding a new element and key to the resources section of the Xml but this makes the scheulder have an error (object reference not set). I've also tried adding it as an extra element which generates no errors, but I can't find a way to retrieve the information.

Can you advise how to do this?
Peter
Telerik team
 answered on 21 Oct 2010
2 answers
351 views

I Have 2 RadDatePicker and I’d like to ask if it’s possible to disable dates before a specific dates selected
(as airlines dates you can't select a return date before a departure date)

i used a trick that i changed the MinDate of the second RadDatePicker to the selected date of the first one in the code behind but its kind slow.


protected void pickDateFrom_OnSelectedDateChanged(object sender, EventArgs e)
        {
            if (pickDateFrom.SelectedDate.HasValue)
            {
                pickDateTo.MinDate = pickDateFrom.SelectedDate.Value;
            }
        }

is there any way to do this in JavaScript or something to make it faster

i'm Sorry this is asp.net problem not a windows forms one, admin could you please delete it or move it to the right section.

 

Mohammad
Top achievements
Rank 1
 answered on 21 Oct 2010
1 answer
65 views
I am currently reviewing the latest radcontrols to decide if I'm going to upgrade from our current 2008 Q2 version of the classic version. In this progress I got the comment from our users that the they have some problems with the new interface of the filebrowsers (image manager etc)
1. the new manager is slow (minutes in stead of seconds) in showing about 1000 items (without paging) where the non ajax browser didn't have those problems.Why is the newer version so much different in loading the items? I know paging is faster but this results in the following point.
2. when paging is turned on we have to problem the that finding a specific file in the list is tedious as the default sorting is unclear on how it sorted and the users have to look at every page to see if there file is there. if sorting is turned on however it still takes longer to find a file then it used to and more actions from the user.

I am willing to customize the dialogs but I rather limit that to a minimum so there will be a lower maintenance.

Kind regards
Rumen
Telerik team
 answered on 21 Oct 2010
1 answer
197 views
I am using Linq to Sql and a LinqDatasource.  I have added a property to one of the class linq classes that were created as below.
public string FullName
        {
            get { return string.Format("{0}, {1}", this.LastName, this.FirstName); }
        }

When trying to sort or filter on this column I receive The member FullName has no supported translation to SQL error. 

Does anyone know how to get around this.  I realize there is no column in the database called Fullname.  I can set the sort expression of the coulmn to "User.LastName + User.FirstName" and this works, but it still errors when filtering.

Thanks for any help.
Nikolay Rusev
Telerik team
 answered on 21 Oct 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Andrey
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Andrey
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?