Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
107 views
Hello!
I am trying to export to rtf some content using radeditor. I have some labels and a grid.
i can export it with no problems, but when i open the rft on microsoft word i get the message that a table is damage and when i open it on wordpad, the content is empty.

Can i export grid to rtf with radeditor??

thanks
Rumen
Telerik team
 answered on 05 Dec 2011
3 answers
98 views
Hello!
i want to know if it is possible to export images and tables to rtf using radeditor. I've tried to export tables but once it is  exported, the table does not have a format, the lines don't appear and the content looks  like there is a letter for row. I attached a picture where you can see how a table looks like when it's exported

Is it  possible to export images and tables to rtf using radeditor?

thanks in advance!
Rumen
Telerik team
 answered on 05 Dec 2011
3 answers
149 views

After upgrading a web application to use the latest update, the AppointmentTemplate now show the delete cross. This had been disabled and replaced with custom functionality (see below). As a result, this overlaping delete cross makes the custom functionailty inopperable. As soon as I revert the project back to an older version of the Telerik controls, everything works as it it's supposed to.

 

         <AppointmentTemplate>
            <div class='rsCustomAppointmentContainer <%# Eval("Fullname") %>'>
               <strong><%# Eval("Fullname")%></strong>
               <asp:HiddenField ID="hidStatusId" runat="server"
                  Value='<%# Eval("StatusId") %>' />
            </div>
<div style="text-align: right;">
<asp:Button runat="server" ID="Button1" CssClass="rsExportButton" ToolTip="Change Status"
CommandName="ChangeStatus" OnClientClick="ChangeStatus(this, event); return false;" Style="cursor: pointer;
cursor: hand;" />
</div>
         </AppointmentTemplate>

Peter
Telerik team
 answered on 05 Dec 2011
2 answers
354 views
Hi,

I am using version 2011.1.519.35 of your ASP.NET for AJAX controls.

My problem is that client-side validation isn't firing when I click a linkbutton in the CommandItemTemplate.

My grid has a CommandItemTemplate which contains linkbuttons to put the grid into add or edit mode, and a button to save rows that are in add or edit mode.  See below:

<CommandItemTemplate>
  <div class="gridCommandItemRow">
      <asp:LinkButton runat="server" ID="AddNew" Text="Add New" CssClass="add" 
            CommandName="InitInsert" 
            Visible="<%# Not TeamMetricsRadGrid.MasterTableView.IsItemInserted %>" />
     <asp:LinkButton runat="server" ID="UpdateAll" Text="Save All" CssClass="save" 
                  CommandName="SaveAll" 
                  CausesValidation="true" />
  </div>
</CommandItemTemplate>

I also have the following line in the grid, to try to get validation to work:

<ValidationSettings CommandsToValidate="SaveAll,PerformInsert,Update" 
          ValidationGroup="TeamMetricsValidationGroup" />

I have asp.net required field validator controls on several of the controls within EditItemTemplates.

Prior to using my own linkbuttons in the CommandItemTemplate, I was using the built-in Add / Edit buttons supplied by the GridEditCommandColumn.  When I did this, the client-side validation was firing correctly, and preventing the postback as expected.

 

But my linkbutton in the CommandItemTemplate, with the CommandName of "SaveAll" is NOT firing client-side validation.  It does a postback without validation.

 

I thought I could set CausesValidation="true" for that button, and add that button's CommandName to the CommandsToValidate property, as I've done above, but that didn't work.  Does the grid validation not work with CommandNames from other buttons, in the CommandToValidate property, like I've done?

 

What am I missing?  Is it possible to fire client-side validation from buttons in the CommandItemTemplate?

Thanks,
Michael

Michael Hunt
Top achievements
Rank 1
 answered on 05 Dec 2011
0 answers
118 views
Hi Everybody,

     I have downloaded the latest version(2011.2.915.35) trial of telerik.

     I have an file explorer control in my page in which i need to show folders in user basis,
     some folders are common to all users and some are specific to users.

     Have done this, and in addition i want to disable deleting of the default folders.

    The users can be allowed to delete other folders except the default folders, is it possible to set delete permissions folder wise.
    Any one please give me a suggestion.

Thank you,
Anto (DLL Version : 2008.3.1314.35)
Top achievements
Rank 2
 asked on 05 Dec 2011
2 answers
107 views
Hi,

I am using Radscheduler for checking room availability as in one of your demos. However, I am using the timeline view instead of day view as I want the timescales at the top. There are 2 issues in this.
1. Even though I set the row height, it expands automatically for rows having an appointment. (Please see attached snapshot)
2. The previous and next buttons on the navigation pane work only one day back and forward and no further. How canI correct this? Or if this is the default behaviour in the tiemline view, how can I hide these buttons alone and not the calendar as I need navigation to see availability for other days

Code snippet is below. Any help appreciated.

Thanks.

<telerik:RadScheduler runat="server" ID="rsBookings" DataSourceID="odsBookings" RowHeight="50px" TimelineView-HeaderDateFormat="dd/MM/yyyy"
            DataKeyField="BookingID" DataSubjectField="Description" DataStartField="StartDate" DataEndField="EndDate"
            GroupBy="Room" GroupingDirection="Vertical" StartEditingInAdvancedForm="false" SelectedView="TimelineView" 
            TimelineView-TimeLabelSpan="1" TimelineView-SlotDuration="00:30:00" TimelineView-NumberOfSlots="48" 
            TimelineView-ColumnHeaderDateFormat="HH:mm" DayStartTime="00:00" DayEndTime="23:59"  ColumnWidth="80px"         
            AllowDelete="false" AllowEdit="false" AllowInsert="false" CustomAttributeNames="Description, CompanyName, BookingID"
            OnDataBound="rsBookings_DataBound">
            <AdvancedForm Modal="true" />
            <TimelineView UserSelectable="false" />
            <WeekView UserSelectable="false" />
            <MonthView UserSelectable="false" />
            <DayView UserSelectable="false" />
            <ResourceTypes>
                <telerik:ResourceType KeyField="RoomID" Name="Room" TextField="Name" ForeignKeyField="RoomID"
                    DataSourceID="odsRooms" />
            </ResourceTypes>
            <AppointmentTemplate>
                <a href='BookingDetails.aspx?BookingID=<%# Eval ("BookingID") %>'><%# Eval("Description") %></a>
                <br />
                <%# Eval("CompanyName")%> 
            </AppointmentTemplate>
            <TimeSlotContextMenuSettings EnableDefault="true" />
            <AppointmentContextMenuSettings EnableDefault="true" />
        </telerik:RadScheduler
  
  
Code Behind:
  
  
protected void Page_Load(object sender, EventArgs e)
        {
           rsBookings.SelectedDate = DateTime.Today;
            }
Kanchana
Top achievements
Rank 1
 answered on 05 Dec 2011
10 answers
213 views
HI,

    I am using telerik control. when i click on Combobox( Not only Combobox event raddatepicker,radAjaxloading panel....etc) it expand with items.( Here i am attach image  normalImage.png). after i am scrolling my page down /up it showing different . Here i am attaching that different look image ( i.e flying images.png  ) . i am using asp.net webapplication in Cs
Vasil
Telerik team
 answered on 05 Dec 2011
3 answers
220 views
Hi Everybody,

I have downloaded the latest version(2011.2.915.35) trial of telerik.

I have an file explorer control in my page in which i need to show folders in user basis,
some folders are common to all users and some are specific to users.

for example :

Users : USER-A, USER-B,

Common folders : ComFolder1,ComFolder2,ComFolder3.

User Specific folders:
FolderUser1--> for  USER-A alone
FolderUser2--> for USER-B alone

But all the folders (ComFolder1,ComFolder2,ComFolder3,FolderUser1,FolderUser2) resides in a common root folder called Fileexploredocs/documents.

My requirement is

When USER-A logs in i should show(ComFolder1,ComFolder2,ComFolder3,FolderUser1)
When USER-B logs in i should show(ComFolder1,ComFolder2,ComFolder3,FolderUser2)

For this i used the following class and function:

public partial class _Default : System.Web.UI.Page<br>{<br>protected void
Page_Load(object sender, EventArgs
e)<br>{<br>RadFileExplorer1.Configuration.ContentProviderTypeName =
typeof(CustomProvider).AssemblyQualifiedName;<br>}<br><br>public class
CustomProvider : FileSystemContentProvider<br>{<br>public
CustomProvider(HttpContext context, string[] searchPatterns, string[] viewPaths,
string[] uploadPaths, string[] deletePaths, string selectedUrl, string
selectedItemTag)<br>: base(context, searchPatterns, viewPaths, uploadPaths,
deletePaths, selectedUrl, selectedItemTag)<br>{ }<br><br>public override
DirectoryItem ResolveDirectory(string path)<br>{<br>DirectoryItem originalFolder
= base.ResolveDirectory(path);<br>FileItem[] originalFiles =
originalFolder.Files;<br>List<FileItem> filteredFiles = new
List<FileItem>();<br><br>// Filter the files<br>foreach (FileItem
originalFile in originalFiles)<br>{<br>if
(!this.IsFiltered(originalFile.Name))<br>{<br>filteredFiles.Add(originalFile);<br>}<br>}<br><br>DirectoryItem
newFolder = new DirectoryItem(originalFolder.Name, originalFolder.Location,
originalFolder.FullPath, originalFolder.Tag, originalFolder.Permissions,
filteredFiles.ToArray(), originalFolder.Directories);<br><br>return
newFolder;<br>}<br><br>public override DirectoryItem
ResolveRootDirectoryAsTree(string path)<br>{<br>DirectoryItem originalFolder =
base.ResolveRootDirectoryAsTree(path);<br>DirectoryItem[] originalDirectories =
originalFolder.Directories;<br>List<DirectoryItem> filteredDirectories =
new List<DirectoryItem>();<br><br>// Filter the folders<br>foreach
(DirectoryItem originalDir in originalDirectories)<br>{<br>if
(!this.IsFiltered(originalDir.Name))<br>{<br>filteredDirectories.Add(originalDir);<br>}<br>}<br>DirectoryItem
newFolder = new DirectoryItem(originalFolder.Name, originalFolder.Location,
originalFolder.FullPath, originalFolder.Tag, originalFolder.Permissions,
originalFolder.Files, filteredDirectories.ToArray());<br><br>return
newFolder;<br>}<br><br>private bool IsFiltered(string name)<br>{<br>if
(name.ToLower().EndsWith(".sys") ||
name.ToLower().Contains("_sys"))<br>{<br>return true;<br>}<br><br>//
else<br>return false;<br>}<br>}<br>}<br>

It worked fine for me when i run it in my local machine, i thought of testing it in a server and deployed it in a windows webserver with II7, 
its not working.

I tried debugging the application in visual studio in the same server, its working fine when i run it locally in the server, it is not working when i host it in IIS.

Anyone please give me some suggestions.

Thank You,
Anto (DLL Version : 2008.3.1314.35)
Top achievements
Rank 2
 answered on 05 Dec 2011
5 answers
125 views

Can we programatically add a TextBlock to a ChartTitle?

The reason is to display a multiline title, with a different style applied to each line so that I could display something like,

MAIN TITLE
Sub Title

Where the font size of "Sub Title" is smaller than "MAIN TITLE".  I tried declaring new textblocks separately, then adding them to a charttitle, but it gives me a null object error when creating the textblock like,

TextBlock newBlock1 = new TextBlock(chartName);
Petar Marchev
Telerik team
 answered on 05 Dec 2011
2 answers
82 views
We have a line chart that uses a stored procedure for data. There is a combo box that allows the user to select a different category, and to view the chart for that category. When the chart first loads, it has the expected line colors for the selected theme. When the combo box value is changed the chart reloads properly, but the line colors change. Here's the definition for the chart.
<telerik:RadChart ID="RadChartCategory" runat="server" DataSourceID="dsChartData" Width="950" Height="650" Skin="Vista">
        <PlotArea>
        <YAxis>
            <Appearance CustomFormat="#,#">
            </Appearance>
        </YAxis>
        <XAxis DataLabelsColumn="StringDate" LabelStep="4">
        </XAxis>
    </PlotArea>
    <Series>
        <telerik:ChartSeries DataYColumn="Scenario1" DefaultLabelValue="" Name="Scenario 1"
            Type="Line">
        </telerik:ChartSeries>
        <telerik:ChartSeries DataYColumn="Scenario2" DefaultLabelValue="" Name="Scenario 2"
            Type="Line">
        </telerik:ChartSeries>
        <telerik:ChartSeries DataYColumn="Scenario3" DefaultLabelValue="" Name="Scenario 3"
            Type="Line">
        </telerik:ChartSeries>
        <telerik:ChartSeries DataYColumn="Theoretical" DefaultLabelValue="" Name="Theoretical Capacity"
            Type="Line">
        </telerik:ChartSeries>
        <telerik:ChartSeries DataYColumn="NetEffective" DefaultLabelValue="" Name="Net Effective Capacity"
            Type="Line">
        </telerik:ChartSeries>
    </Series>
    <ChartTitle>
        <TextBlock Text="Labour Demand">
        </TextBlock>
    </ChartTitle>
</telerik:RadChart>

The only other code affecting the chart is to update the chart title when the selected value changes.
Protected Sub RadComboBoxCategory_SelectedIndexChanged(sender As Object, e As Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventArgs) Handles RadComboBoxCategory.SelectedIndexChanged
    RadChartCategory.ChartTitle.TextBlock.Text = "Labour Demand - " & RadComboBoxCategory.SelectedItem.Text
End Sub

I've attached a before and after image of how the chart appears. This seems to occur with any Skin. Subsequent reloads keep the same colors as the first reload.

Any ideas?
Derek
Top achievements
Rank 1
 answered on 05 Dec 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?