Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
46 views

Hi,

 

I am trying to send Slider value to a textbox using AjaxManager. I want the value to be displayed in the textbox OnValueChanged. I do not want to use OnClientValueChanged as I want to use a codebehind method.

The issue is that the slider value is not updated consistently in the textbox every time I drag the slider handle. Sometimes it responds after two clicks or more and sometimes it starts working fine.

<asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
 
      <telerik:RadAjaxManager ID="RadSlider1" runat="server" EnableAJAX="True" >
           <AjaxSettings>
               
               <telerik:AjaxSetting AjaxControlID="DbgSlider1">
                   <UpdatedControls>
                       <telerik:AjaxUpdatedControl ControlID="Slider1Text" UpdatePanelRenderMode="Inline"></telerik:AjaxUpdatedControl >
                          </UpdatedControls>
                   </telerik:AjaxSetting>
                             </AjaxSettings>
       </telerik:RadAjaxManager>
 
 
<telerik:RadSlider runat="server" ID="DbgSlider1" Width="400px"
 
                        IsSelectionRangeEnabled="false" MinimumValue="0" MaximumValue="50000" Step="5000"
 
                        OnValueChanged="SetValue"
 
                        AutoPostBack="true" ShowDecreaseHandle="false" ShowIncreaseHandle="false" EnableDragRange="true"
 
                        EnableServerSideRendering="true" >
     
    </telerik:RadSlider>
   <dbg:DbgTextBox ID="Slider1Text" runat="server">
    </dbg:DbgTextBox>

Slav
Telerik team
 answered on 09 Apr 2015
1 answer
48 views

Hello,
My problem is that an appointment that covers multiple days is not displayed correctly in Week View (see WeekView.PNG) while it is displayed correctly in the Monthly View (see MonthView.PNG).
As you can see the appointment does not cover the entire box, does not cover all days for his duration and more is moved to the right. The code in both cases is the same.
For more information I have inspected the item and there is a margin-left which, I believe, has no reason to be there. Also witdh calculated element is obviously wrong (see InspectElement.PNG).
I tried everything, but nothing.
Many thanks for the support.

Andrea

Andrea
Top achievements
Rank 1
 answered on 09 Apr 2015
13 answers
354 views

Hi all,
I have a Rad grid with a column template like the following:

<telerik:GridTemplateColumn HeaderText="Actions" UniqueName="Actions">
 <ItemTemplate>
 <div class="sfBasicLangs">
  <asp:ImageButton runat="server" CommandName="delete" OnCommand="Delete" />
 </div>
</ItemTemplate>
</telerik:GridTemplateColumn>

the Delete method present in the OnCommand is never fired.... how can  have radGrid fire it.
I've already tried to enable viewstate on the grid

Thanks,
Mattia
bharath
Top achievements
Rank 1
 answered on 09 Apr 2015
6 answers
102 views
I am using a Rad grid to display some information where the checkboxes mark items and using a rad drop down you can pick you action and press a button. One of the items is to send a email to all the checked rows.

In the button click call back I enumerate the checked rows from the grid and put their emails together in a string buffer and then add script to execute the email on postback.
ClientScript.RegisterStartupScript(this.GetType(), "mailto",
 "<script type = 'text/javascript'>parent.location='mailto:" + emailToBuffer.ToString() + "'</script>") ;

The results in the line
<script type = 'text/javascript'>parent.location='mailto:dana@here.com; '</script>
to be put just in front of the all Telerik rad javascript code.

Somehow this innocent little line of javascript causes the master checkbox on the header line and the drop down to stop functioning. The parent.location is no where in the html except my email line.

I cannot figure out a solution to this problem, it feels like bug that Telerik objects would break so easily form a little self contained scripting. Perhaps another way to send email on a browser set on the server would get around the issue.

George
Viktor Tachev
Telerik team
 answered on 09 Apr 2015
19 answers
227 views
I need to disable the sort order for my PivotGridRowField, but can't find a way to remove the SortOrder.
In RadGrid, there is an enum for GridSortOrder.None.
Can we have this similar enum for RadPivotGrid or how do I disable the sort for PivotGridRowField.
Thanks for any suggestion,
Chau
Angel Petrov
Telerik team
 answered on 09 Apr 2015
3 answers
262 views
I´m working with the RadFileExplorer, theContentProviderTypeName I´m using is FtpContentProvider.
The control lists all the FTP files, it can create and delete, BUT when I select a file to upload it, the upload button gets disabled inmediatly.

This is my code:
<
telerik:RadFileExplorer ID="attachmentFileExplorer" runat="server" Width="100%"                     Height="300px" PageSize="10"  EnableOpenFile="True">                                     
  <
Configuration EnableAsyncUpload="true"
   ViewPaths="/FOLDER 1/" 
   UploadPaths="/FOLDER 1/" 
   DeletePaths="/FOLDER 1/" />
</telerik:RadFileExplorer>


protected void Page_Load(object sender, EventArgs e)
        {
           attachmentFileExplorer.TreeView.Nodes.Clear();

            string[] paths = new string[] { "/FOLDER 1/" };
            attachmentFileExplorer.Configuration.ViewPaths = paths;

            string[] deletePaths = new string[] { "/FOLDER 1/" };
            attachmentFileExplorer.Configuration.DeletePaths = deletePaths;

            string[] uploadPaths = new string[] { "/FOLDER 1/" };
            attachmentFileExplorer.Configuration.UploadPaths = uploadPaths;

            attachmentFileExplorer.EnableCreateNewFolder = true;
            attachmentFileExplorer.EnableOpenFile = false;

            attachmentFileExplorer.Configuration.ContentProviderTypeName = typeof(FtpContentProvider).AssemblyQualifiedName;
            attachmentFileExplorer.Configuration.EnableAsyncUpload = true;
            attachmentFileExplorer.Configuration.SearchPatterns = new string[] { "*.*" };
            attachmentFileExplorer.InitialPath = "/FOLDER1/";
        }


Thanks in advanced.

I Hope you can help with this.
david
Top achievements
Rank 1
 answered on 09 Apr 2015
5 answers
704 views
Hi,
I am using RadAutocompletebox version 2011 Q3.
In this i couldnt restrict the user to select single input.
User should select one input. If he click "X" button,he can select other one in case he want to change the selected one.

can anyone help me in this?


Thanking you,


Regards,
AGMRAJA.
Nencho
Telerik team
 answered on 09 Apr 2015
1 answer
98 views

Dear Telerik, 

We have problem with selecting value from combo box and drop down list when there are more then 50 values. After selecting one value the focus on next input is slow. We saw that new Kendo version 2015.1.318 (core) have new property called data-index, we are on professional 2014.2.716 version. So can you please tell us how to speed up our project ? 

 

If there is any question please ask. 

 

Thank you in advanced.

Nencho
Telerik team
 answered on 09 Apr 2015
1 answer
142 views

I have a telerik RadScheduler in which I don't want Gray Color for current date instead I want it to be as simple as white color which Property do I use here?? here is my scheduler as shown in attached file 

 

     <telerik:RadScheduler runat="server" ID="RadScheduler1" SelectedView="MonthView"
        OverflowBehavior="Expand" DataKeyField="ID" DataStartField="Start" DataEndField="End"
        DataSubjectField="Subject" OnAppointmentDelete="RadScheduler1_AppointmentDelete" 
        DayStartTime="00:00:00" DayEndTime="23:00:00" StartInsertingInAdvancedForm="True"
        AdvancedForm-EnableCustomAttributeEditing="true" OnAppointmentInsert="RadScheduler1_OnAppointmentInsert"
        OnFormCreated="RadScheduler1_OnFormCreated" 
        OnClientAppointmentInserting="OnClientAppointmentInserting" OnFormCreating="RadScheduler1_FormCreating"
        OnAppointmentUpdate="RadScheduler1_OnAppointmentUpdate" EnableCustomAttributeEditing="True"
        ResolvedRenderMode="Classic" EditFormDateFormat="dd/MM/yyyy" WorkDayEndTime="23:00:00"
        WorkDayStartTime="00:00:00" TimeZoneID="Pakistan Standard Time" ShowFullTime="True"
        TimelineView-UserSelectable="false" MonthView-UserSelectable="false" DayView-UserSelectable="false" WeekView-UserSelectable="false"
        TimeZoneOffset="05:00:00" >
        
        <TimeSlotContextMenuSettings EnableDefault="true" />
        
        <AppointmentContextMenuSettings EnableDefault="true"></AppointmentContextMenuSettings>
        <TimeSlotContextMenus>
            <telerik:RadSchedulerContextMenu runat="server" ID="SchedulerTimeSlotContextMenu">
                <Items>
                    <telerik:RadMenuItem Text="Mark Holidays" Value="CommandAddAppointment">
                    </telerik:RadMenuItem>
     
                </Items>
            </telerik:RadSchedulerContextMenu>
        </TimeSlotContextMenus>
        <ExportSettings>
            <Pdf PageTopMargin="1in" PageBottomMargin="1in" PageLeftMargin="1in" PageRightMargin="1in">
            </Pdf>
        </ExportSettings>
        <AdvancedForm Modal="true" EnableCustomAttributeEditing="true" DateFormat="dd/MM/yyyy" />
        <Localization AdvancedNewAppointment="Set Day" AdvancedEditAppointment="Update Your Day"
            ConfirmDeleteText="Are you sure you want to delete this Day" />
        <WeekView DayStartTime="06:00:00" WorkDayEndTime="18:00:00" HeaderDateFormat="dd/MM/yyyy" />
        <DayView DayStartTime="06:00:00" WorkDayEndTime="18:00:00" HeaderDateFormat="dd/MM/yyyy" />
        <MultiDayView DayStartTime="06:00:00" WorkDayEndTime="18:00:00" />
        
        <MonthView HeaderDateFormat="dd/MM/yyyy" />
    </telerik:RadScheduler> 

Nencho
Telerik team
 answered on 09 Apr 2015
2 answers
110 views

Hey Guys im trying to follow the sample follow the example:

http://demos.telerik.com/aspnet-ajax/htmlchart/examples/databinding/bindtodataset/defaultcs.aspx

except that im trying to use a areaseries. Sadly it seems like the property DataFieldX is not supported eventhough its documented:

http://www.telerik.com/help/aspnet-ajax/properties_t_telerik_web_ui_areaseries.html

I can only set "DataFieldY". 

 

My Code:

<telerik:RadHtmlChart runat="server" ID="AreaChart" Width="800" Height="500" Skin="Silk">
    <PlotArea>
        <Series>
            <telerik:AreaSeries Name="Series1" DataFieldX="timestamp" DataFieldY="eToday" >
                <Appearance>
                    <FillStyle BackgroundColor="Red"></FillStyle>
                </Appearance>
                <LabelsAppearance Position="Above">
                </LabelsAppearance>
                <LineAppearance Width="1"></LineAppearance>
                <MarkersAppearance MarkersType="Circle" BackgroundColor="White" Size="6" BorderColor="Red"
                    BorderWidth="2"></MarkersAppearance>
                <TooltipsAppearance Color="White">
                </TooltipsAppearance>               
            </telerik:AreaSeries>
        </Series>
        <Appearance>
            <FillStyle BackgroundColor="Transparent"></FillStyle>
        </Appearance>
        <XAxis AxisCrossingValue="0" Color="black" MajorTickType="Outside" MinorTickType="Outside"
            Reversed="false">           
            <TitleAppearance Position="Center" RotationAngle="0" Text="Date & Time">
            </TitleAppearance>
            <LabelsAppearance DataFormatString="{0}" RotationAngle="0" Skip="0" Step="1">
            </LabelsAppearance>
        </XAxis>
        <YAxis AxisCrossingValue="0" Color="black" MajorTickSize="4" MajorTickType="Outside"
            MaxValue="1400" MinorTickType="None" MinValue="0" Reversed="false" Step="200">
            <LabelsAppearance DataFormatString="{0}" RotationAngle="0" Skip="0" Step="1">
            </LabelsAppearance>
            <TitleAppearance RotationAngle="0" Position="Center" Text="Leistung am Tag in kWh">
            </TitleAppearance>
        </YAxis>
    </PlotArea>
    <Appearance>
        <FillStyle BackgroundColor="Transparent"></FillStyle>
    </Appearance>
    <ChartTitle Text="Company performance">
        <Appearance Align="Center" BackgroundColor="Transparent" Position="Top">
        </Appearance>
    </ChartTitle>
    <Legend>
        <Appearance BackgroundColor="Transparent" Position="Bottom">
        </Appearance>
    </Legend>
</telerik:RadHtmlChart>

Danail Vasilev
Telerik team
 answered on 09 Apr 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?