Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
120 views
Can someone whip up a block confirm sample for drag\drop please?

Like is there no way for you to elegantly do it like the RadButtons implimentation?

function confirmOnDragItem_Dropping(sender, args) {
                var callBackFunction = Function.createDelegate(sender, function (shouldSubmit) {
                    if (shouldSubmit) {
                        //Allow it to happen
                    }
                });
 
                var text = "Are you sure you wish to move this item?";
                radconfirm(text, callBackFunction, 300, 100, null, "RadConfirm");
                args.set_cancel(true);
            }

Does it need the bloated block confirm instead?...I mean I know it probably does, but can you make it easier like the above scenario (in the RadButtons case you call a click method if shouldSubmit.

Daniel
Telerik team
 answered on 03 Oct 2011
1 answer
117 views
Reffering to this thread (http://www.telerik.com/community/forums/aspnet-ajax/grid/header-caption.aspx) I re-ask the question , not sure if you've seen it..

and i re-write main points here:
1) I want to show header caption taken from my datasource (dataset) caption field, grid shows columnName by default
Answer: in this od thread (http://www.telerik.com/community/forums/aspnet-ajax/grid/column-names-are-shown-instead-of-column-captions.aspx)
ok

2) as i click on a row, header captions go back to their colum names.
Answer:on radgrid_itemcommand radgrid.rebind
ok

3) unanswered
I've added a detailTable, it happens now that expanding a row to its child I have this scenario:
itemDataBound fires
(now I check e.Item.OwnerTableView.Name)
1. case is masterTableView -> everything is ok
2. case is detailView -> header captions of the masterTableView are not set (uniqueName is shown)

Really need it.
Thank you

Shinu
Top achievements
Rank 2
 answered on 03 Oct 2011
1 answer
101 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
149 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
318 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
50 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
183 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
85 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
173 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
229 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?