Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
64 views
I'm working on upgrading versions to RadControls for ASPNET AJAX Q1 2009 from an unknown version which is probably a couple of years old... on a RadAjax.Net2 Assembly, its version is 1.7.2.0.

What is the equivalent of the AjaxLoadingPanel in the new version?

Also, what is the equivalent of Telerik.WebControls.Tab and Telerik.WebControls.PageView?

Thanks,
Dave
Iana Tsolova
Telerik team
 answered on 05 Oct 2009
2 answers
119 views
Hi There

Is there a way to colour the background e.g. white text on red background, of the filter box (on the grid header) when it has a value in it, non-completed filter boxes to remain white.

Regards

Steve
Steve Todd
Top achievements
Rank 1
 answered on 05 Oct 2009
1 answer
122 views
Hi,
     I'm using a radscheduler which is same as the following demo
http://www.telerik.com/help/aspnet-ajax/schedule_databindingimplementingaproviderthatsupportsmultivaluedresources.html

instead of using teacher and student , i'm using room and users

users are listed in checkbox which is populated from the usercontrol  MultipleValuesResourceControl.ascx

in this MultipleValuesResourceControl.ascx  i'm checking the resouceavailability  which is in this demo with slide modification

http://demos.telerik.com/aspnet-ajax/scheduler/examples/resourceavailability/defaultcs.aspx

here is the code

private IEnumerable<Resource> GetResources(string resType)
        {
            List<Resource> availableUsers = new List<Resource>(Owner.Resources.GetResourcesByType("User"));
            List<Resource> availableResources = new List<Resource>();
            IEnumerable<Resource> resources = Owner.Resources.GetResourcesByType(resType);
            
                foreach (Appointment appointmentInRange in Owner.Appointments.GetAppointmentsInRange(Appointment.Start, Appointment.End))
                {
                    if (appointmentInRange == Appointment)
                        continue;

                    foreach (Resource occupiedUser in appointmentInRange.Resources.GetResourcesByType("User"))
                    {
                        availableUsers.Remove(occupiedUser);
                    }
                    if (availableUsers.Count == 0)
                    {
                        found = true;
                    }
                }         
           
                //foreach (Resource res in resources)
                //{
                //    if (IncludeResource(res))
                //    {
                //        availableResources.Add(res);
                //    }
                //}

                //return availableResources;
           
            return availableUsers;
        }

the commented code was the original one, but i did mofication to check the available resources

while editing an appointment which is reoccuring i'm having some pblm, otherwise its working good

while editing the reoccuring appointment  ie "EDIT ONLY THIS OCCURENCE"  it shows error "Object reference cannot set to an instance".

if anyone has any idea plz help



Peter
Telerik team
 answered on 05 Oct 2009
2 answers
648 views
Hola.

Tengo un problema a la hora de cambiar las propiedades de un RadComboBox a la hora de querer insertar o actualizar un dato en el Grid cuando me abre el formulario. Inicialmente defino la columna de tipo GridDropDownColumn como se ve a continuación:

GridDropDownColumn Col_NameSyst = new GridDropDownColumn(); 
RDG_Fallos.MasterTableView.Columns.Add(Col_NameSyst); 
Col_NameSyst.DataField = "idSystem"; 
Col_NameSyst.HeaderText = "System"; 
Col_NameSyst.UniqueName = "System"; 
Col_NameSyst.DataSourceID = "sdsSystem"; 
Col_NameSyst.ListTextField = "System"; 
Col_NameSyst.ListValueField = "idSystem"; 
Col_NameSyst.DropDownControlType = GridDropDownColumnControlType.RadComboBox; 

En este caso no encontré como cambiarle el skin por default del Grid que es Office2007. Intenté hacelo en el evento ItemCommand de la siguiente manera:

protected void RDG_Fallos_ItemCommand(object source, GridCommandEventArgs e) 
    { 
        GridEditFormItem editFormItem = e.Item as GridEditFormItem; 
        if (e.CommandName == "InitInsert") 
        { 
            GridDropDownListColumnEditor rdcSystem = (RDG_Fallos.Columns.FindByUniqueName("System") as GridDropDownColumn).ColumnEditor as GridDropDownListColumnEditor; 
            rdcSystem.ComboBoxControl.Enabled = false; 
            rdcSystem.ComboBoxControl.Skin = "Vista"; 
        } 
        else 
        { 
            if (e.CommandName == "Edit") 
            { 
                GridDropDownListColumnEditor rdcSystem = (RDG_Fallos.Columns.FindByUniqueName("System") as   GridDropDownColumn).ColumnEditor as GridDropDownListColumnEditor; 
                rdcSystem.ComboBoxControl.Skin = "Vista"; 
            } 
        } 
    } 
En los dos casos aparentemente cambia el skin pero a la hora de mostrarlo mantiene el del Office2007. Gracias de antemano
y disculpen por escribir en español,

Julio

Julio Lopes
Top achievements
Rank 1
 answered on 05 Oct 2009
1 answer
93 views

I have a webmethod which returns the rows from the query, and passes it as a list.  I am using two classes to assign the values. 

        public class Types  
        {  
            public Types()  
            {  
                this.Defs = new List< Definitions>();  
            }  
            public string Name  
            {  
                get;  
                set;  
            }  
            public int Sort  
            {  
                get;  
                set;  
            }  
            public Definitions Defs  
            {  
                get;  
                set;  
            }  
        }  
        public class Definitions  
        {  
            public string Name  
            {  
                get;  
                set;  
            }  
        } 

 

I am unsure if I am doing this correctly, but this is what I am trying to accomplish.  Each Type is a RadPanelBarItem Parent of a Definition.  There are multiple Types and Definitions.  This is the closest I have come to implementing this in this way. 

 

ObservableCollection<Types> events = e.Result;  
 
   
 
                //find a specific object  
 
                String _type = events.FirstOrDefault().Type;  
 
   
 
                IEnumerable<Types> qry = from c in events  
 
                                             where (c.Type.ToString().Equals(_type))   
                                             orderby c.Sort  
 
                                             select c;  
 
   
 
                int ct = 0;  
 
                if (qry != null)  
 
                {  
 
                    RadPanelBarItem head = new RadPanelBarItem()  
 
                    {  
 
                        Header = _type  
 
                        ,  
 
                        Style = Application.Current.Resources["radPanel_StyleInd"] as Style  
 
                    };  
 
                    foreach (Types typ in qry)  
 
                    {  
 
                        if (inc.IsActive == true)  
 
                        {  
 
                            RadPanelBarItem pbi = new RadPanelBarItem()  
 
                            {  
 
                                Name = inc.IncType.ToLower() + "_Def_" + ct   
 
                                ,  
 
                                Style = Application.Current.Resources["radPanel_StyleInd"] as Style  
 
                            };  
 
                            pbi.Selected += new EventHandler<Telerik.Windows.RadRoutedEventArgs>(pbi_Selected);  
 
                            head.Items.Add(pbi);  
 
                            ct++;  
 
                        }  
 
   
 
                    };  
 
                        pb.Items.Add(head);  
 
                    }  
 
            }
 
 

 

Right away you can see that it isn’t dynamically adding the head—parent items.  I need it to add the Types as the head, parent items and definitions as child items… any idea how to accomplish this?

übermensch
Top achievements
Rank 1
 answered on 05 Oct 2009
2 answers
156 views
Hi,

Is there any way to develop standard login window with telerik controls?. I have user table using it i want develop login control

lakmal
Georgi Tunev
Telerik team
 answered on 05 Oct 2009
1 answer
89 views
Hi

I have successfully set up a grid export to Excel, but now I want to allow visitors to select alternative format
by clicking different buttons  - excel or pdf. 

Can you give me some tips on how to approach this, bearing in mind that the style/formatting needs
of each type are so different?

Is there a demo/barebones example which shows this multiple choice (including pdf)?

Thanks

Clive


Princy
Top achievements
Rank 2
 answered on 05 Oct 2009
1 answer
104 views
Hey,
I read the article about how to define custom CSS to the editor. This works great - but just ones! When trying to update the file with new styles nothing happens. SharePoint sill serves me with the old file. What do I do to update it?
Thanks!
Martin
Martin Lundgren
Top achievements
Rank 1
 answered on 05 Oct 2009
1 answer
229 views
Hi

I am trying to use the method shown in the excellent KB article:
"Adding a Custom Button to RadWindow Titlebar".

Functionally it is fine, but the button image does not show  properly. It appears as a thick minus sign, which moves upwards on mouseover (as specified by the css code provided).

Since the javascript works by implementing a <ul> , I guess there is conflict with the
CSS list button images I already have on the page?  Can you suggest how can I get round this?

Thanks

Clive
Georgi Tunev
Telerik team
 answered on 05 Oct 2009
1 answer
74 views
I am using the latest Version of Telerik controls.
How do i find a replacement for the "NotSelectedImageURL" and "SelectedImageURL"  property in the RADGRID of the latest version.

Looking forward for your reply.

Thanks in Advance
Sebastian
Telerik team
 answered on 05 Oct 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?