Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
113 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
224 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
225 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
134 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
93 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
1 answer
161 views
Hello,

I have zip file on my machine. in which i have csv file.

i need to unzip that file and read the data from csv file.

Is there any way in Telerik to unzip , zip file on machine.

Thanks
Princy
Top achievements
Rank 2
 answered on 05 Dec 2011
3 answers
107 views
I have a rad combo box which is being databound as follows...

'Now populate the Managers Drop down
           rsMain = GeneralDataMethod.GetAllApprovedManagers
           While rsMain.Read
               cboManager.Items.Add(New RadComboBoxItem(rsMain("Manager"), rsMain("ManagerID")))
 
           End While
           cboManager.Items.Insert(0, New RadComboBoxItem("- Please select -", ""))

I would like to add a 3rd item from the database into the combo box (email address, the sp gives me this) but not display in the drop down but have it available to me when the user selects a manager from the drop down.

Is this possible using code behind?

TIA.

S


Dimitar Terziev
Telerik team
 answered on 05 Dec 2011
2 answers
122 views
Hi all,
I am using RADGRiD to develop my Web App.
In my RadGrid I use "radio button" in it. => every row in Grid, We have a radio button.

When I click on a radio button=> this radio button is checked.
And then I continue click on the other RADIO Button=> tat Radio button is checked too but the previous Radio button is still Check.

What I want: WHen I click on the second RADIO Button=> the First Radio button will be unchecked.

Please view the image in attached file.

Please help me to do it.
Thanks alot!

Ky
Top achievements
Rank 1
 answered on 05 Dec 2011
4 answers
129 views
Hi,

I was working on Exporting RADGrid data to Excel using ExcelML approach. While exporting I have given and want following name (IncomeStatement_MSFT_xNAS) to the file. I have set this using RadGridFS.ExportSettings.FileName property.

Most of the times, exported file has correct name but randomly it start appending garbage character to it. Given below are different names with random garbage characters appended by grid exporter:
IncomeStatement_MSFT_xNASCAN3IT2H
IncomeStatement_MSFT_xNASCAJPY7HM

What could be the issue? Any help/fix?

Thanks in anticipation.
Daniel
Telerik team
 answered on 05 Dec 2011
1 answer
154 views
I have a splitter control within a User control on a page containing two panes with a grid in each and am trying to size the splitter control on load to fit the available space. I have added a hook to the javascript function with OnClientLoaded="sizeSplitter".

The javascript I'm using is:

function sizeSplitter(sender, args) {
                var w = browserWidth() - 10;
                var h = browserHeight() - 200;
                alert('height=' + h + ' width=' + w);
                sender.get_element().style.height = h;
                sender.get_element().style.width = w;
            }

This returns the browser width and height fine and displays them using the alert, but the splitter seems to be stubbornly remaining the same size as defined.
Dobromir
Telerik team
 answered on 05 Dec 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?