Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
29 views
i continually keep seeing the same problem on this one page I am making where I make all these formatting changes and when I save it and look at the results, those formatting changes aren't there.  For example, I just selected all and changed the font to Arial but i'm looking at the page it's not all arial.  I see times new roman in various areas.  why does it do this? i go into the html and there is no reference to times new roman... why does it revert back to that? 
Rumen
Telerik team
 answered on 10 Nov 2011
1 answer
68 views
Hi,

I ran into an issue and as i am unable to find any post relating to it , i am pasting the image here. This issue is caused when typing some text inside radEditor and clicking through mouse after deleting the test. Note: The radEditor is inside the radWindow. Help will be much appreciated.
Rumen
Telerik team
 answered on 10 Nov 2011
0 answers
49 views
I have a Visual Studio 2010 project using Telerik Radcontrols for ASP.NET AJAX Q1 2011 SP1.  Primarily just using dropdowns and a radgrid and a button.  Everythings works great locally through the VS IDE and running the app on Localhost.  After deploying to our test server environment, while it loads the first page fine - which consists of the dropdowns for making selections, the 2nd page, which is the results from the database loading to a RadGrid, does not display.  The RadGrid simply shows a big box where the grid data should be, but no data.  I know the app is talking to the database because if I View Source and look at the page source, I can see the database records listed!  And there are all sorts of references to the grid as well in view source.  All controls display great except for the RadGrid.  Any ideas?
Nancy
Top achievements
Rank 1
 asked on 09 Nov 2011
3 answers
67 views
I have some extra fields in my appointment table which are not user-edited fields, but rather need to be generated from the appointment's information when the appointment is created or updated.
 
Is there a way for me to hook onto an event of the Radscheduler so that on inserts and updates, I can generate my extra field data, without interfering with Radscheduler's binding still handling the normal fields? Perhaps a way to have Radscheduler call my recalcuation function after every time it does an insert or update? I don't want to have to rewrite the whole edit/insert event. Is there a better way?
Plamen
Telerik team
 answered on 09 Nov 2011
3 answers
99 views
Hi all,
I am using appointment template to display appointment. If at same time interval there are more than 3 appointment its going to overlapped. Is there is any way by which we fix the width of appointment template, so that they will not overlapped,
thanks
Plamen
Telerik team
 answered on 09 Nov 2011
6 answers
530 views
I need the selected value from a ComboBox control in a RadGrid in insert mode (Edit mode = popup) Immediately after selecting by the user and before an insert into the database.

I set ComboBoxControl to AutoPostBack.

With:

Sub RadGrid_ItemCreated (....)
Dim item As GridEditableItem = TryCast (e.Item, GridEditableItem)
Dim editor As GridView DropDownList column editor = DirectCast (item.EditManager.GetColumnEditor ("field"), grid column drop down editor)
editor.ComboBoxControl.AutoPostBack = True
Dim myValue As String = editor.ComboBoxControl.SelectedValue

With myValue I just get the "old" value and not the new selected value from user. The new value will appear only after another postback. Is there a solution?

Is it possible for the selected value from a ComboBox control in insert mode (not edit mode) to get outside of sub RadGrid_ItemCreated (....)?

Thanks
Rolf from Switzerland
Clive Hoggar
Top achievements
Rank 1
 answered on 09 Nov 2011
1 answer
83 views
Hi, I have a Timer and a RadScheduler that uses WebService for data. I want to refresh a Radschduler on the event of Timer_Tick. However, if the RadSchduler is in Insert Mode(Using Advance Template), I would like to cancel that. So, how do I check to know that the RadScheduler is in Insert Mode? Thanks.
Ivana
Telerik team
 answered on 09 Nov 2011
3 answers
239 views
Hi,

I'm using RadComboBox Templates with the "OnItemsRequested" event.
I have the following scenario:
The ItemTemplate width is about 2300px, and indeed the HeaderTemplate should be 2300px also. The dropdown width is set to 500px (due to the maximum container width). I can see the Horizontal Scroll when the data is bounded; however the scroll only affect the ItemTemplate and not the HeaderTemplate. I want the scrollbar to scroll also the HeaderTemplate so the Items and the Header are matching.

Please do let me know what is needed to be done.                        
Here is my code:
                     <telerik:RadComboBox ID="ddHomeLocation" runat="server"
                         DropDownWidth="500px" EmptyMessage="Choose a Location" Skin="Windows7" HighlightTemplatedItems="true"
                          EnableLoadOnDemand="true" Filter="StartsWith" Height="200px" Width="500px"
                                 OnItemsRequested="ddHomeLocation_ItemsRequested" OnLoad="ddHomeLocation_Load"
                                   >
<HeaderTemplate>
                           <div style="width:2300px;height:50px; " >
                            <div style="float:left;width:90px">
                              <%= Session["LocationTypesLocationTypeCode"].ToString()%>
                            </div>
                            <div style="float:left;width:80px">
                                 <%= Session["LocationTypesLocationTypeName"].ToString()%>
                            </div>
                            <div style="float:left;width:60px">
                                 <%= Session["LocationsLocationID"].ToString()%>
                            </div>
                            <div style="float:left;width:60px">
                                 <%= Session["LocationsLocationName"].ToString()%>
                            </div>
                            <div style="float:left;width:60px">
                                 <%= Session["LocationsLocationCodeHome"].ToString()%>
                            </div>
                            <div style="float:left;width:70px">
                                 <%# Session["LocationsLocationNameHome"].ToString()%></div>
                            <div style="float:left;width:80px">
                                 <%= Session["LocationsLocationCodeCurrent"].ToString()%>
                            </div>
                            <div style="float:left;width:80px">
                                 <%= Session["LocationsLocationNameCurrent"].ToString()%>
                            </div>
                            <div style="float:left;width:80px">
                                 <%= Session["AddressesAddressName"].ToString()%>
                            </div>
                            <div style="float:left;width:80px">
                                 <%= Session["AddressesAddress1"].ToString()%>
                            </div>
                            <div style="float:left;width:80px">
                                 <%= Session["AddressesAddress2"].ToString()%>
                            </div>
                            <div style="float:left;width:80px">
                                 <%= Session["AddressesCity"].ToString()%>
                            </div>
                            <div style="float:left;width:80px">
                                 <%= Session["AddressesState"].ToString()%>
                            </div>
                            <div style="float:left;width:80px">
                                 <%= Session["AddressesZip"].ToString()%>
                            </div>
                            <div style="float:left;width:80px">
                                 <%= Session["AddressesCountry"].ToString()%>
                            </div>
                            <div style="float:left;width:80px">
                                 <%= Session["LocationsBuilding"].ToString()%>
                            </div>
                            <div style="float:left;width:80px">
                                 <%= Session["LocationsFloor"].ToString()%>
                            </div>
                            <div style="float:left;width:80px">
                                 <%= Session["LocationsRoom"].ToString()%>
                            </div>
                            <div style="float:left;width:80px">
                                 <%= Session["LocationsArea"].ToString()%>
                            </div>
                            <div style="float:left;width:80px">
                                 <%= Session["LocationsAisle"].ToString()%>
                            </div>
                            <div style="float:left;width:80px">
                                 <%= Session["LocationsShelf"].ToString()%>
                            </div>
                            <div style="float:left;width:80px">
                                 <%= Session["LocationsBin"].ToString()%>
                            </div>
                            <div style="float:left;width:80px">
                                 <%= Session["LocationsVIN"].ToString()%>
                            </div>
                            <div style="float:left;width:80px">
                                 <%= Session["LocationsMake"].ToString()%>
                            </div>
                            <div style="float:left;width:80px">
                                 <%= Session["LocationsModel"].ToString()%>
                            </div>
                            <div style="float:left;width:80px">
                                 <%= Session["LocationsColor"].ToString()%>
                            </div>
                            <div style="float:left;width:80px">
                                 <%= Session["LocationsLicensePlate"].ToString()%>
                            </div>
                            <div style="float:left;width:80px">
                                 <%= Session["LocationsPalletteNumber"].ToString()%>
                            </div>
                            <div style="float:left;width:80px">
                                 <%= Session["LocationsNotes"].ToString()%>
 
                            </div>
                        </div>
 
</HeaderTemplate>                                 
 
                         <ItemTemplate>
 
                        <div style="width:2300px;" >
                            <div style="float:left;width:90px">
                               
                               <%# DataBinder.Eval(Container, "Attributes['LocationTypeCode']")%>
                            </div>
                            <div style="float:left;width:80px">
                                  
                                  <%# DataBinder.Eval(Container, "Attributes['LocationTypeName']")%>
                            </div>
                            <div style="float:left;width:60px">
                                  
                                  <%# DataBinder.Eval(Container, "Attributes['LocationCode']")%>
                            </div>
                            <div style="float:left;width:60px">
                                  
                                  <%# DataBinder.Eval(Container, "Attributes['LocationName']")%>
                            </div>
                            <div style="float:left;width:60px">
                                 
                                  <%# DataBinder.Eval(Container, "Attributes['HomeLocationCode']")%>
                            </div>
                            <div style="float:left;width:70px">
                                 
                                  <%# DataBinder.Eval(Container, "Attributes['HomeLocationName']")%>
                                  </div>
                            <div style="float:left;width:80px">
                                  
                                  <%# DataBinder.Eval(Container, "Attributes['CurrentLocationCode']")%>
                            </div>
                            <div style="float:left;width:80px">
                                  
                                  <%# DataBinder.Eval(Container, "Attributes['CurrentLocationNam']")%>
                            </div>
                            <div style="float:left;width:80px">
                                  
                                  <%# DataBinder.Eval(Container, "Attributes['AddressName']")%>
                            </div>
                            <div style="float:left;width:80px">
                                 
                                  <%# DataBinder.Eval(Container, "Attributes['Address1']")%>
                            </div>
                            <div style="float:left;width:80px">
                                  
                                  <%# DataBinder.Eval(Container, "Attributes['Address2']")%>
                            </div>
                            <div style="float:left;width:80px">
                                  
                                  <%# DataBinder.Eval(Container, "Attributes['City']")%>
                            </div>
                            <div style="float:left;width:80px">
                                  
                                  <%# DataBinder.Eval(Container, "Attributes['State']")%>
                            </div>
                            <div style="float:left;width:80px">
                                 
                                  <%# DataBinder.Eval(Container, "Attributes['Zip']")%>
                            </div>
                            <div style="float:left;width:80px">
                                
                                  <%# DataBinder.Eval(Container, "Attributes['Country']")%>
                            </div>
                            <div style="float:left;width:80px">
                                 
                                  <%# DataBinder.Eval(Container, "Attributes['Building']")%>
                            </div>
                            <div style="float:left;width:80px">
                                  
                                  <%# DataBinder.Eval(Container, "Attributes['Floor']")%>
                            </div>
                            <div style="float:left;width:80px">
                                  
                                  <%# DataBinder.Eval(Container, "Attributes['Room']")%>
                            </div>
                            <div style="float:left;width:80px">
                                 
                                  <%# DataBinder.Eval(Container, "Attributes['Area']")%>
                            </div>
                            <div style="float:left;width:80px">
                                  
                                  <%# DataBinder.Eval(Container, "Attributes['Aisle']")%>
                            </div>
                            <div style="float:left;width:80px">
                                
                                  <%# DataBinder.Eval(Container, "Attributes['Shelf']")%>
                            </div>
                            <div style="float:left;width:80px">
                                 
                                  <%# DataBinder.Eval(Container, "Attributes['Bin']")%>
                            </div>
                            <div style="float:left;width:80px">
                                  
                                  <%# DataBinder.Eval(Container, "Attributes['VIN']")%>
                            </div>
                            <div style="float:left;width:80px">
                                 
                                  <%# DataBinder.Eval(Container, "Attributes['Make']")%>
                            </div>
                            <div style="float:left;width:80px">
                                  
                                  <%# DataBinder.Eval(Container, "Attributes['Model']")%>
                            </div>
                            <div style="float:left;width:80px">
                                  
                                  <%# DataBinder.Eval(Container, "Attributes['Color']")%>
                            </div>
                            <div style="float:left;width:80px">
                                  
                                  <%# DataBinder.Eval(Container, "Attributes['LicensePlate']")%>
                            </div>
                            <div style="float:left;width:80px">
                                  
                                  <%# DataBinder.Eval(Container, "Attributes['PlateNumber']")%>
                            </div>
                            <div style="float:left;width:80px">
                                  
                                  <%# DataBinder.Eval(Container, "Attributes['Notes']")%>
                            </div>
                        </div>
                         </ItemTemplate>
                     </telerik:RadComboBox>


Ivana
Telerik team
 answered on 09 Nov 2011
1 answer
83 views
Hi all,

We are testing the scheduler control to incorporate it in one of our projects but we are having a problem similar to the one posted in the thread below. 

http://www.telerik.com/community/forums/wpf/scheduler/how-to-set-resource-as-selected-in-combobox.aspx

When we load the appointment information, the drop-down of the resource is not set to the correct value. For example, we have an operatory resource that the user assigns in the appointment. We are able to set that and save in the database but when we open the appointment detail the resource is not set. 

We tried the solution presented by peter in the thread above but it does not apply to our case because we use the Telerik Appointment class. I am putting the code we are using below. Any ideas?

Thanks



public override System.Collections.Generic.IEnumerable<Appointment>
              GetAppointments(RadScheduler owner)
        {
            var events = _messageService.GetEvents();
            IEnumerable<Appointment> appts = events != null ? Mapper.Map<IList<EventDTO>, IEnumerable<Appointment>>(events) : new List<Appointment>();
            int index = 0;
            appts.ToList().ForEach(delegate(Appointment appt) {
                appt.Owner = owner;
                appt.RecurrenceState =
                    appt.RecurrenceParentID != null ?
                        RecurrenceState.Exception :
                        !string.IsNullOrEmpty(appt.RecurrenceRule) ?
                            RecurrenceState.Master : 
                            RecurrenceState.NotRecurring;
                LoadResources(owner, appt, events[index]);
                index++;
            });
            return appts;
        }
 
private void LoadResources(RadScheduler owner, Appointment appt, EventDTO eventDTO)
        {
            if (eventDTO.Professional.HasValue)
            {
                Resource professional = GetResourcesByType(owner, "Professional").FirstOrDefault(r => Convert.ToInt64(r.Key) == eventDTO.Professional);
                if (professional != null)
                    appt.Resources.Add(professional);
            }
            if (eventDTO.Operatory.HasValue)
            {
                Resource operatory = GetResourcesByType(owner, "Operatory").FirstOrDefault(r => Convert.ToInt64(r.Key) == eventDTO.Operatory);
                if (operatory != null)
                    appt.Resources.Add(operatory);
            }
        }
Ivana
Telerik team
 answered on 09 Nov 2011
1 answer
133 views

Using document manager, we select a file for upload, works fine, but it does not show the file path or name that we just selected, as I know it should.  Instead there is just a blank white space to the left of the select buttons, no fields visible at all just white space. If we mouse over the space, the tool tip will appear and give us the right file names we selected... but it's just not visible.
Any ideas?
Rumen
Telerik team
 answered on 09 Nov 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?