Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
107 views
<telerik:RadPanelBar Height="400PX" runat="server" ID="RadPanelBar1" ExpandMode="FullExpandedItem" 
                    DataFieldID="Id" DataFieldParentID="Padre" DataSourceID="ObjectDataSource1" 
                    DataTextField="Nombre"  Skin="Windows7">
</telerik:RadPanelBar> 

<asp:ObjectDataSource ID="ObjectDataSource1" runat="server" 
                    SelectMethod="cargarMenu" TypeName="PL.Util.cliente">
</asp:ObjectDataSource>





public List<
cliente> cargarMenu()
        {
            List<cliente> misClientes = new List<cliente>();
 
            List<cms_spSeleccionarActivos_Result> resultadoActivos = listarActivos();
            List<cms_spSeleccionarInactivos_Result> resultadoInactivos = listarInactivos();
            cliente clienteActivo = new cliente(1, 0, "Activos");
            cliente clienteInactivo = new cliente(2, 0, "Inactivos");
            misClientes.Add(clienteActivo);
            misClientes.Add(clienteInactivo);
            foreach (cms_spSeleccionarActivos_Result item in resultadoActivos)
            {
                cliente miCliente = new cliente(item.cmr_id, Convert.ToInt32(item.ecm_id), item.cmr_nombre);
                 
                misClientes.Add(miCliente);
            }
 
 
            foreach (cms_spSeleccionarInactivos_Result item in resultadoInactivos)
            {
                cliente miCliente = new cliente(item.cmr_id, Convert.ToInt32(item.ecm_id), item.cmr_nombre);
                
                misClientes.Add(miCliente);
            }
            return misClientes;
        }
There's any way to load about 20,000 records into a RadPanelBar efficiently,my problem is that the application becomes very slow .


Kate
Telerik team
 answered on 03 Oct 2011
4 answers
156 views
I have a screen in my application that has a multi-select RadComboBox which posts to a second application passing screen inputs as parameters.  In the past the control would pass the text parameter as a comma delimited string to the second application with the selections (ie. 123, 321, 223, 112).  After upgrading to 2011.2.915.35 this behavior has changed and now after more than 3 items are select the text is switching to "4 Items Selected".  In addition, my customer has asked to have the list display so they can directly edit the choices.  So, is there a property I can set to achieve the old behavior showing the comma delimited choices regardless the number of selected items?

Thanks,
Shane
Simon
Telerik team
 answered on 03 Oct 2011
8 answers
342 views

I have a ContentAreaCssFile that contains the following CSS:

body  
{  
    font-family:Verdana;  
    font-size:10px;  
} 

And on the Page Load event, I have the following code:

    var contentArea  =  editor.get_ContentArea();  
    if (contentArea != null)  
    {  
        contentArea.style.fontFamily = "Verdana";  
        contentArea.style.fontSize = "10px";  
    }  
 

In IE 7, when the user clicks in the body of the Editor, the Font Name and Font Size get correctly set to "Verdana" and "10px".

However, in Firefox 2.0, then FontName never gets set. After clicking in the editor, it still says "FontName".  Is this a Bug?   Is there a work-around?
Rumen
Telerik team
 answered on 03 Oct 2011
1 answer
58 views
Hi,

In our application a resource can only have one reservation at one moment/time-slot.

Is it possible to get more valuable space (especially for the WeekView), by hiding the insert area for the DayView and WeekView, like the TimelineView.ShowInsertArea?

Cheers
Jani
Plamen
Telerik team
 answered on 03 Oct 2011
2 answers
194 views
Hello Support

I have an radgrid in which I have enable filter option on one column. And in filter textbox as RadNumericTextbox, every thing works fine but the Radnumerictextbox background color is always black which I want to make it White but it doesn't happens. Following code I have tried

protected void RadGrid1_ItemDataBound(object sender, GridItemEventArgs e)
    {
        if (e.Item is GridFilteringItem)
        {
            GridFilteringItem filterItem = e.Item as GridFilteringItem;
            RadNumericTextBox txtNumber = (RadNumericTextBox)filterItem["S1"].Controls[0];
            txtNumber.BackColor = System.Drawing.Color.White;
        }
    }

Please check and tell me what made it wrong...

Regards

ASIF
Asif
Top achievements
Rank 1
 answered on 03 Oct 2011
1 answer
94 views
Hi,

When i darg and drop RadGrid from tollbox ,it is showing the dafult colums(Design time),

I don't want to see the default colums at design time inside the grid,

Is there any option avilable to turn of these default settings.

Please check the attached screen shot.

Regards
Kishore
Shinu
Top achievements
Rank 2
 answered on 03 Oct 2011
3 answers
182 views

I'm still conflicted about how to load the advanced form and prepopulate custom controls on an existing appointment.

Currently my GetAppointments method will return a collection of Telerik Appointments which the scheduler can easily understand and render.
When I go to edit an existing appointment, I need to bind data to custom controls that the appointment class does not have.
I'm still not certain how this is acheived.

I've toyed with creating my own appointment class that derives from the telerik one but the web service provider method I am using will only allow implementing methods that use the telerik appointment.

The thing that I am missing is what happens when a user clicks on the existing appointment.
 Where does my custom data will come from?
I have the ID of my appointment in the telrik appointment object. Am I to make a DB call to get the extra info?

Here's an example of my provider.Get method. This method returns the appointments to the scheduler.

                List<Appointment> appointmentsList = new List<Appointment>();  
                List<MySpecificAppointment> appts = new List<MySpecificAppointment>();  
 
                using (AppointmentFacade af = new AppointmentFacade())  
                {  
                    appts = ocsf.GetSecureAppointments(HttpContext.Current.User.Identity.Name); //gets appts for user  
                }  
 
                foreach (var apt in appts)  
                {  
                    Telerik.Web.UI.Appointment appointment = new Appointment();  
                    appointment.Start = apt.Start;  
                    appointment.End = apt.End;  
                    appointment.Description = apt.Description;  
                    appointment.Subject = apt.Subject;  
                    appointment.RecurrenceState = apt.RecurrenceState;  
                    appointment.RecurrenceRule = apt.RecurrenceDescription;  
                    appointment.RecurrenceParentID = apt.RecurrenceParentID;  
                    appointment.ID = apt.Id;  
                    appointmentsList.Add(appointment);  
                } 

I can fill the telrik appointment with common objects but anything specififc to MySpecififcAppointment is lost. When a user goes to edit the existing appointment, when the advanced form is loaded only Telerik.Appointment properties will be properly prepopulated.

Any help would be fantastic. Cheers.

Peter
Telerik team
 answered on 03 Oct 2011
1 answer
238 views
I am trying to add a custom dialog for the RadEditor.  I added the code by following the example here http://demos.telerik.com/aspnet-ajax/editor/examples/customdialogs/defaultcs.aspx. But I am getting error Telerik.Web.UI.Editor.CommandList is null. I am using the version 2010.3.1325.
Princy
Top achievements
Rank 2
 answered on 03 Oct 2011
1 answer
115 views
Hi

I am trying to use radopen to present a RadWindow.

I have looked at your example at :

http://demos.telerik.com/aspnet-ajax/window/examples/radopen/defaultcs.aspx

However when my window appears none of the settings in my RadWindow definition are being used.

Here's my RadWindow defintion

 

 

<telerik:RadWindow ID="CustomClientDataViewRadWindow" runat="server"

 

 

 

Behaviors="Close,Maximize,Move,Resize"

 

 

 

Height="600px"

 

 

 

IconUrl="../Images/pencil.png"

 

 

 

Modal="True"

 

 

 

ReloadOnShow="True"

 

 

 

Title="Device > Custom View"

 

 

 

VisibleOnPageLoad="False"

 

 

 

VisibleStatusbar="False"

 

 

 

Width="985px">

 

 

 

</telerik:RadWindow>

This definition is contained inside a UserControl. 

Here's my radopen statement

 

radopen(

 

"CustomDataViewPage.aspx?FolderID=" + FolderID + " &NodeType=2&ApplicationType=1", "CustomClientDataViewRadWindow");

CustomDataViewPage.aspx is my own page with its own code behind.
The radopen call is made inside a function in a separate .js file, rather then in a script block.

Once again any help greatly appreciated.


Do I need to invoke the radopen in the context of the RadWindowManager

 

Marin Bratanov
Telerik team
 answered on 03 Oct 2011
1 answer
83 views
Hi

 

div.RadScheduler_Sitefinity .rsMonthView .rsTodayCell
{
background-color: #CCFF00;
color: #000;
border: 1px solid #000;
}

I have set above in my stylesheet and was working very fine until In the Page_Load event
I added a line as below.

RadScheduler1.TimeZoneOffset =
TimeSpan.Parse(userSettingRow.UserTimeZone);

The TimeZone works fine, but I notice that the stylesheet no longer works and all cell have same background color (White).

-JD

 

Peter
Telerik team
 answered on 03 Oct 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?