Telerik Forums
UI for ASP.NET AJAX Forum
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
702 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
141 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
109 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
5 answers
374 views
Hello,

I have a RadTreeView with a series of nodes.  Each node can have it's own nodes, which could have their own nodes etc.  Currently if i delete a node from the tree, by calling RadTreeView.SelectedNode.Remove(), the node is removed but all of the nodes in the RadTreeView.SelectedNode.Nodes collection are also removed.  Ideally instead of removing the entire branch from the tree i'd just like to remove the single node, and shift that nodes sub-nodes up a level.

Currently if i had a tree like this:

A
|
B
|
C
 \
  D
   \
    E
|
F

Removing Node C results in a tree that looks like:
A
|
B
|
F


ideally i'd like it to look like:
A
|
B
|
D
 \
 E
|
F

Here you can see that only the selected node was removed, it's sub-nodes are still available. I see that the node has a server-side .Parent property, but this is not set-able.   When a node is removed, it could have 0 sub-nodes, or it could have multiple sub-nodes which in turn could have 0 or more sub-nodes each.  it's unknown how many sub-nodes or sub-node-nodes etc are contained in any given node that is being removed. The only other thing to note is that each of my nodes contains a fairly complex user-control that has several comboboxes and/or text boxes loaded with custom data.  This makes a recursive solution where we attempt to recreate each node by making a copy of the node and adding it to the parent problematic.  

Any assistance you can provide about how i could achieve this goal would be much appreciated.  I'm open to achieving this goal with either a server or client-side solution. 

Thanks!
-Mark
Ivan Danchev
Telerik team
 answered on 09 Apr 2015
3 answers
183 views

Is it possible to set the RadScheduler RowHeight dynamically on the client side? I can't seem to find a method to do this.

Thanks
Bozhidar
Telerik team
 answered on 09 Apr 2015
8 answers
229 views
i have this link button inside orgChart, on it click event i want fetch record from db to populate couple of text fields on the very same page.
It works fine but as soon as i add <ajax settings>, UI doesnt update. Please help.

<telerik:RadOrgChart runat="server" ID="RadOrgChart1" CssClass="Chart" DataTextField="PositionTitle"
        DataFieldID="PositionId" DataFieldParentID="ReportToPositionId" Skin="Silk" EnableCollapsing="true">
        <ItemTemplate>
                <div style="text-align:center; text-transform:uppercase; line-height:30px;">
                <asp:LinkButton ID="LinkButton1" CausesValidation="false" data-positionid='<%# Eval("PositionId") %>'  runat="server" OnClick="Position_Click" OnClientClick="DisplayAddPositionPopup();" ><%# DataBinder.Eval(Container, "Text") %></asp:LinkButton>
                    <asp:Panel ID="Panel1" Visible='<%#Convert.ToString( Eval("FunctionName")).Length>0%>' runat="server">
                    <div style="position:absolute; top:55px; width: 230px; margin-top:30px; height:20px; line-height:20px; border:1px solid #767676"><%#Eval("FunctionName") %></div>
                    </asp:Panel>
                
                </div>
            </ItemTemplate>
        <RenderedFields>
            <ItemFields>
                <telerik:OrgChartRenderedField DataField="FunctionName" Label="" />
            </ItemFields>
        </RenderedFields>
    </telerik:RadOrgChart>
Aneliya Petkova
Telerik team
 answered on 09 Apr 2015
1 answer
199 views

 Please help on how to be able to fire Required Field Validator of fields when clicking Add New Item and trying to SAVE empty record in Rad Grid. Thanks!!

 Rad Grid:

                <div> 
                        <label for="rgRemark">Remarks:</label>
                        <telerik:RadGrid ID="rgRemarks" runat="server" AllowPaging="True" AllowSorting="True"
                            AutoGenerateColumns="False" GridLines="None" AllowMultiRowEdit="false" AllowAutomaticInserts="false"
                            AllowAutomaticUpdates="false" CellSpacing="0" Width="500px" Style="float: right">

                            <PagerStyle Mode="NextPrevAndNumeric" AlwaysVisible="True" />
                            <MasterTableView CommandItemDisplay="Top" DataKeyNames="EmployeeID, RemarkID" CellSpacing="-1" RetrieveAllDataFields="false">
                                <CommandItemSettings ShowRefreshButton="True" ShowAddNewRecordButton="True" AddNewRecordText="Add Remark" />
                                <Columns>
                                    <telerik:GridTemplateColumn DataField="Remark" SortExpression="Remark" HeaderText="Remark"
                                        UniqueName="Remark">
                                        <ItemTemplate>                                           
                                            <asp:Label ID="lblRemark" Text='<%#Eval("Remark")%>' runat="server" />
                                        </ItemTemplate>

                                        <EditItemTemplate>
                                            <asp:TextBox ID="txtRemark" runat="server" TextMode="MultiLine" Width="300px" />
                                            <asp:RequiredFieldValidator ID="requiredFieldRemark" runat="server" ControlToValidate="txtRemark"
                                                ErrorMessage="* Remark is required field." Display="Dynamic"/>
                                        </EditItemTemplate>                                                                             
                                    </telerik:GridTemplateColumn>


                                    <telerik:GridButtonColumn ButtonType="ImageButton" HeaderText="Edit" CommandName="Edit" Text="Edit" />
                                    <telerik:GridButtonColumn ConfirmText="Delete this Remark?" ConfirmDialogType="RadWindow"
                                        ConfirmTitle="Delete" ButtonType="ImageButton" CommandName="Delete" Text="Delete"
                                        HeaderText="Delete" UniqueName="DeleteColumn">
                                    </telerik:GridButtonColumn>
                                </Columns>
                                <EditFormSettings>
                                    <EditColumn ButtonType="ImageButton" CancelImageUrl="~\Images\CommandImages\Cancel.gif" CancelText="Cancel Edit"
                                        InsertImageUrl="~\Images\CommandImages\Save.gif" InsertText="Insert" UniqueName="EditColumn"
                                        UpdateImageUrl="~\Images\CommandImages\Save.gif" UpdateText="Update ">
                                    </EditColumn>
                                </EditFormSettings>
                            </MasterTableView>
                        </telerik:RadGrid>
                    </div>

 

Code Behind:

If (TypeOf e.Item Is GridEditableItem AndAlso e.Item.IsInEditMode) Then
        
            Dim editedItem As GridEditableItem = CType(e.Item, GridEditableItem)
      
            Dim requiredFieldRemark As RequiredFieldValidator = DirectCast(editedItem.FindControl("requiredFieldRemark"), RequiredFieldValidator)
            requiredFieldRemark.Enabled = True

ElseIf (TypeOf e.Item Is GridEditFormInsertItem AndAlso e.Item.OwnerTableView.IsItemInserted) Then
       
            Dim dataItem As GridEditableItem = CType(e.Item, GridEditableItem)
            Dim requiredFieldRemark As RequiredFieldValidator = DirectCast(dataItem.FindControl("requiredFieldRemark"), RequiredFieldValidator)
            requiredFieldRemark.Enabled = True
 End If

 

Konstantin Dikov
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
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
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?