Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
94 views
Good morning, we are refining their controls and we have a problem with RadSearchBox, this control does not support the ('Ñ') character , and when to return a result with the same shows nothing.

there is a way I can use that character?

For in Spain and Latin America it is all used
Veselin Tsvetanov
Telerik team
 answered on 11 Apr 2016
1 answer
201 views

Hello,

we have updated one of our solutions from .NET 3.5 to 4.0 with a new Telerik version. Right now we are having an critical issue we are not able to solve.

We are opening an selection form in an modal dialog. All available items are displayed in an GridView where the user can select a single item. On post back the form is handing the user selection back to the previous form. From the theory quite easy going. Right now we have recognized an ciritical issue with our post back.

On postback we are loosing the ViewState and the ControlState of the GridView. Due to this case, it will reload the data source, without the selected sort, filter and page options and returns the wrong user selection.

For example:

If we select the 3rd item on page 2, while all items are sorted alphabetically ascending, it will return the 3rd item from the datasource, without any filtering, paging, or sorting. So on postback the selected page is always 0, the sort order null... filtering null.

This strange behaviour only occurs in modal dialogs. If we do use the same kind of grid (cause it's based on a adapter pattern will complete same implementation) it will work correctly.

Grid implementation:

<telerik:RadAjaxManagerProxy  ID="AjaxManagerProxy" runat="server" >
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="PanelButtonBar">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="PanelButtonBar" LoadingPanelID="RadAjaxLoadingPanel1"/>
                <telerik:AjaxUpdatedControl ControlID="pnlMessage"/>
                <telerik:AjaxUpdatedControl ControlID="RadWindowManagerInGrid" LoadingPanelID="RadAjaxLoadingPanel1" />
            </UpdatedControls>
        </telerik:AjaxSetting>
        <telerik:AjaxSetting AjaxControlID="Grid">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="Grid" LoadingPanelID="RadAjaxLoadingPanel1"/>
            </UpdatedControls>
        </telerik:AjaxSetting>
    </AjaxSettings>
</telerik:RadAjaxManagerProxy>

If you already know this kind of issue and fixed it, please let me know. I realy do require an idea :)

Best Regards,

Jan

 

Konstantin Dikov
Telerik team
 answered on 11 Apr 2016
7 answers
121 views
We've just upgraded the controls we're using from Q2 to Q3 and note that the font used in the RadSplitter seems to have changed from 'Arial, Helvetica, sans-serif' to '"Segoe UI", Arial, Helvetica, sans-serif'.

There was no mention of this in the release docs.

I have to say I consider changes to things like colours and fonts at least as important as changes to functionality and, therefore worth of note in the docs.

You may consider it a petty complaint, but end-users get really up-tight about things like this if they're not forwarned, and as I have to explain these changes to those further up the food chain internally, it'd be nice to get some advance warning.

--
Stuart
Vessy
Telerik team
 answered on 11 Apr 2016
15 answers
331 views
Hello,

I'm using an instance of the Telerik.Web.UI.Appointment class and the RadScheduler.ExportToICalendar method to export as iCalendar.
I managed to set basics properties of my appointement:
                    Appointment objAppointment = new Appointment()
                            {
                                Subject = "TEST",
                                Start = datStart,
                                End = datStart.AddHours(2)
                            };
and to get the ics file which is readable by Outlook.
But I'd like to set some advanced properties like a reminder.
I've open an other ics which has a 2 days reminder and I can see the following code:
BEGIN:VALARM
TRIGGER:-PT2880M
ACTION:DISPLAY
DESCRIPTION:Reminder
END:VALARM

How can I produce something like that with the Appointment's members?

Thanks.
Plamen
Telerik team
 answered on 11 Apr 2016
3 answers
111 views
Ok So I have got the valarm text saving to db thanks to amazing support here but the reminder dialog refuses to show
01.<asp:UpdatePanel ID="UpdatePanel1" runat="server">
02.                          <ContentTemplate>
03.                              <div>
04.                                  <legend>Calendar Layout</legend>
05.                                  <asp:RadioButtonList ID="rbDisplay" CellSpacing="5" AutoPostBack="true" RepeatDirection="Horizontal" runat="server">
06.                                      <asp:ListItem Value="1"> Verticle </asp:ListItem>
07.                                      <asp:ListItem Value="2"> Horizontal </asp:ListItem>
08.                                  </asp:RadioButtonList>
09.                              </div>
10.                              <telerik:RadScheduler OnTimeSlotCreated="apertureAppointments_TimeSlotCreated" OverflowBehavior="Auto" runat="server" WeekView-ShowDateHeaders="true" ID="apertureAppointments"
11.                                  TimelineView-UserSelectable="false" DayView-UserSelectable="true" AgendaView-UserSelectable="True" DataKeyField="ID" DataSubjectField="Subject" AllowInsert="false" AllowDelete="false" AllowEdit="false"
12.                                  DataStartField="Start" DataEndField="End" DataRecurrenceField="RecurrenceRule" DayView-EnableExactTimeRendering="true" WeekView-UserSelectable="True" SelectedView="WeekView"
13.                                  DataRecurrenceParentKeyField="RecurrenceParentID" DataSourceID="EntityDataSource1" StartInsertingInAdvancedForm="True" MonthView-UserSelectable="True" AgendaView-NumberOfDays="5" RowHeight="40px"
14.                                  RenderMode="Classic" EnableExactTimeRendering="True" Reminders-Enabled="true" Width="800px" Height="1000px" EnableDatePicker="true" ShowHeader="true"
15.                                  DayStartTime="09:00:00" ShowFooter="false" DayEndTime="18:00" FirstDayOfWeek="Monday" LastDayOfWeek="Friday" HoursPanelTimeFormat="HH:mm tt" OnAppointmentClick="apertureAppointments_AppointmentClick" OnTimeSlotContextMenuItemClicking="apertureAppointments_TimeSlotContextMenuItemClicking"
16.                                  EnableDescriptionField="true" AppointmentStyleMode="Default" Skin="Metro">
17. 
18.                                  <AdvancedForm Modal="True" />
19. 
20.                                  <TimeSlotContextMenuSettings EnableDefault="false" />
21.                                  <AppointmentContextMenuSettings EnableDefault="false" />
22.                                  <DayView EnableExactTimeRendering="True" />
23.                                  <AdvancedForm Modal="true"></AdvancedForm>
24. 
25.                                  <ResourceTypes>
26.                                      <telerik:ResourceType KeyField="lookup_code" Name="Managers" TextField="lookup_description" ForeignKeyField="managerId"
27.                                          DataSourceID="ManagersDataSource"></telerik:ResourceType>
28.                                  </ResourceTypes>
29.                                  <ResourceStyles>
30.                                      <%--AppointmentStyleMode must be explicitly set to Default (see above) otherwise setting BackColor/BorderColor
31.                          will switch the appointments to Simple rendering (no rounded corners and gradients)--%>
32.                                      <telerik:ResourceStyleMapping Type="Managers" Text="Natalie Edgar"
33.                                          BackColor="#512479" ApplyCssClass="appointment" />
34.                                      <telerik:ResourceStyleMapping Type="Managers" Text="Clare Coyle"
35.                                          BackColor="#512479" ApplyCssClass="appointment" />
36.                                      <telerik:ResourceStyleMapping Type="Managers" Text="Christine Clarke"
37.                                          BackColor="#512479" ApplyCssClass="appointment" />
38.                                      <telerik:ResourceStyleMapping Type="Managers" Text="Adam Adair"
39.                                          BackColor="#512479" ApplyCssClass="appointment" />
40.                                  </ResourceStyles>
41.                              </telerik:RadScheduler>
42.                          </ContentTemplate>
43.                      </asp:UpdatePanel>
44. 
45.                      <asp:EntityDataSource runat="server" ID="EntityDataSource1" ConnectionString="name=aperturenetEntities"
46.                          DefaultContainerName="aperturenetEntities" EntitySetName="Appointments" EnableDelete="true"
47.                          EnableInsert="true" EnableUpdate="true">
48.                      </asp:EntityDataSource>
49. 
50.                      <asp:SqlDataSource ID="RoomsDataSource" runat="server"
51.                          ProviderName="System.Data.SqlClient" ConnectionString="<%$ ConnectionStrings:aperturenetSql %>"
52.                          SelectCommand="SELECT * FROM [Rooms]"></asp:SqlDataSource>
53. 
54.                      <asp:SqlDataSource ID="ManagersDataSource" runat="server"
55.                          ConnectionString="<%$ ConnectionStrings:aperturenetSql %>" SelectCommand="SELECT * FROM [tblApertureNetLookUps] WHERE lookup_type='11787CA6-DE99-4E0E-83D2-7D96E0FD11A3'"></asp:SqlDataSource>

 

Now i dont no why its not firing as per the demo but the dialog is not appearing when it should have tested it but no ball

 

Veselin Tsvetanov
Telerik team
 answered on 11 Apr 2016
1 answer
130 views

Hi,

Need help Issue in accessing session data in radwindow popup data in IE.

In our ASP.net application we stored datatable in session and using below code to open the popup.

string script = "function f(){$find(\"" + Window.ClientID + "\").show(); Sys.Application.remove_load(f);}Sys.Application.add_load(f);";
ScriptManager.RegisterStartupScript(Page, Page.GetType(), "key", script, true);

but we are facing issue to access session data in popup window(.aspx page) in IE we checked in chrome it is working fine.

Please let us know if more details required, can you please provide solution or any help.

Thank you in advance.

 

 

Danail Vasilev
Telerik team
 answered on 11 Apr 2016
3 answers
124 views

I am using entity frame work to pull my appointments in but I need to be able to set reminders on the appointments i have added the filed DataReminderField but obv i need to be able to set the remidner at the apointment creation side I am doing this through a custom booking form and its been requested I mimic the outlook reminder dialog which your component offers. So my main question is how do i write the valarm code through entity framework ?.

 

So the string i need to generate is this one

 

   BEGIN:VALARM
    TRIGGER:-PT2880M
    ACTION:DISPLAY
    DESCRIPTION:Reminder
    END:VALARM








Plamen
Telerik team
 answered on 11 Apr 2016
5 answers
278 views
I am trying to show a text value in a radgrid column cell that contains leading spaces, for example :-    '      111'.
The value is present in the td element when i view the source of the page,  but it is not shown in the browser. The grid in browser trims the leading spaces and displays  just   '111'.  How can i show the leading spaces in the grid column cell, without appending &nbsp;  before?
But when i sort the column it considers the leading spaces,  as it is present in the datasource. The end user finds it as a mismatch between what he enters in UI field and what he sees in grid. Please advice how to handle the situation.
devoas
Top achievements
Rank 1
 answered on 09 Apr 2016
3 answers
526 views

I have a UserControl as custom edit form inside my grid. It's bound directly to a data item using the Data Item property as demonstrated here.

 

private object _dataItem = null;
 
public object DataItem
{   
      get {return this._dataItem;}
      set {this._dataItem = value;}
}

 

Binding expressions display values in controls like this:

<div>
 <asp:TextBox ID="txtApples" runat="server" Text='<%# Bind("Apples") %>' Width="50px" Enabled="false" ></asp:TextBox>
 <asp:TextBox ID="txtOranges" runat="server" Text='<%# Bind("Oranges") %>' Width="50px" ></asp:TextBox>
 </div>

 

Users can edit the number of Oranges and divide Apples/Oranges on button click. The button click event handled in the ascx.cs file, which does the math and updated the value displayed in txtApples.

 

Now, I want to add a Reset button to the UserControl. When clicked, the original Apple value will display in txtApples. Seems like this value would be availble in the Edited Grid Item as described here

Accessing the edited grid item from the user control


When RadGrid loads the UserControl Edit Form, the UserControl has full access to the properties of the grid item in which it is loaded. Inside theUserControl, you can access the grid item using the Parent.NamingContainer property:

GridEditableItem editedItem = this.Parent.NamingContainer;

Once you have a reference to the GridEditableItem object, you can access any of its properties, such as cell text values, the DataItem object (available in DataBinding event handler), and so on.

How can I access the Apple cell text value?

 

 

 

Joe
Top achievements
Rank 1
 answered on 08 Apr 2016
6 answers
146 views

I created css for RadMenu and it does some things right. However, some issues remain, such as selected tab css, and end of menu css. In addition separation between tabs looks a little incomplete. Can you please take a look? Code and Pic attached

Thank you

 .RadMenu .rmItem
        {           
            font-family: 'Open Sans', sans-serif;
            font-size:13px;
            font-weight:bolder;
            text-decoration:none;
            text-align:center;
            position:relative;
            padding:5px;
            outline: none;
        
            background-image: linear-gradient(bottom, #7B1342 0%, #DB4D8D 100%);
            background-image: -o-linear-gradient(bottom, #7B1342 0%, #DB4D8D 100%);
            background-image: -moz-linear-gradient(bottom, #7B1342 0%, #DB4D8D 100%);
            background-image: -webkit-linear-gradient(bottom, #7B1342 0%, #DB4D8D 100%);
            background-image: -ms-linear-gradient(bottom, #7B1342 0%, #DB4D8D 100%);
            background-image: -webkit-gradient(linear,left bottom,left top,color-stop(0, #7B1342),color-stop(1, #DB4D8D));

            -pie-background: linear-gradient(#DB4D8D, #7B1342);
            behavior: url(/styles/pie/PIE.htc);
     
            -webkit-border-radius: 5px;
            -moz-border-radius: 5px;
            -o-border-radius: 5px;
            border-radius: 5px;
    
            -webkit-box-shadow: inset 0px 1px 0px #DB4D8D, 0px 5px 0px 0px #661A3C, 0px 10px 5px #999;
            -moz-box-shadow: inset 0px 1px 0px #DB4D8D, 0px 5px 0px 0px #661A3C, 0px 10px 5px #999;
            -o-box-shadow: inset 0px 1px 0px #DB4D8D, 0px 5px 0px 0px #661A3C, 0px 10px 5px #999;
            box-shadow: inset 0px 1px 0px #DB4D8D, 0px 5px 0px 0px #661A3C, 0px 10px 5px #999;
     
        }
David
Top achievements
Rank 1
Iron
Iron
Veteran
 answered on 08 Apr 2016
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?