Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
125 views
Hi,

I am using radscheduler to display events.  In weekview of radscheduler I have to change column header text (e.g. Sun,21) into links of that perticular day of the week.
I saw demo on telerik site where this functionality is implemented but I am not finding any way how to implement it in my project.
Please help me......

Thanks
Amit

Amit Vaidya
Top achievements
Rank 1
 answered on 08 Jan 2010
1 answer
123 views
I am trying to get the RADFileExplorer (2009.3.1208.20) to work with my customized FileBrowserContentProvider.

The FileBrowserContentProvider code is not the problem.  The problem comes in when I try to create a sub folder, it gives me the following error, even though I am NOT using the File Structure:

--------------------------
Message from webpage
---------------------------
The selected folder could not be created because the application did not have enough permissions. Please, contact the administrator.
---------------------------
OK  
---------------------------

If I am uploading to the database I see no reason why the file should touch the file system.  How do I stop it from trying to access the filesystem?

Thanks!

WS
Top achievements
Rank 1
 answered on 07 Jan 2010
1 answer
106 views
Ok this is an odd issue.  I have been running ie8 for over 6 months with no issue then all of a sudden today I am getting verticle lines in the RadPanelBar on my screen.  It does not seem to be and issue for anyone else.  If I swiths to firefox I don't get the lines.  If I use Simple, or Vista screens I don't get the lines, but all the other skins I have tried I get verticla line in the panel bar, but only the first level of panel items.  When I expand a perent the childer do not have the verticle lines.  Any ideas?
Eric Klein
Top achievements
Rank 1
 answered on 07 Jan 2010
2 answers
148 views
In provided source code those things doesn't work and I don't understand why.

<MajorGridLines Visible="true" PenStyle="Dot" Width="1" /> should cause gridline to display, but it doesn't. Unless I set With more than 1 (2 works fine). But I need gridline of with 1.

<TextBlock Text="TestX"should cause label to be displayed on the side. But it doesn't again. I don't get why.

Whole source:

<telerik:RadChart runat="server" ID="rchTest" Skin="Office2007" AutoLayout="true"
      <ChartTitle> 
      <TextBlock Visible="false" /> 
    </ChartTitle> 
    <Legend> 
      <Appearance Position-AlignedPosition="Bottom"
      </Appearance>       
    </Legend> 
    <PlotArea> 
      <Appearance> 
        <Border Width="0" /> 
      </Appearance> 
        <XAxis LayoutMode="Inside" MinValue="1" Step="1">         
          <AxisLabel> 
            <TextBlock Text="TestX"
              <Appearance Position-AlignedPosition="Left" />             
            </TextBlock> 
          </AxisLabel> 
          <Appearance ValueFormat="General"
            <MajorGridLines Visible="true" PenStyle="Dot" Width="1" /> 
            <MinorGridLines Visible="false" />             
          </Appearance>           
        </XAxis> 
        <YAxis AutoScale="false"
          <AxisLabel> 
            <TextBlock Text="TestY"
              <Appearance Position-AlignedPosition="Left" />             
            </TextBlock> 
          </AxisLabel> 
          <Appearance ValueFormat="General"
            <MajorGridLines Visible="true" Width="1" /> 
            <MinorGridLines Visible="false" />                       
          </Appearance>           
          <Items> 
            <telerik:ChartAxisItem TextBlock-Text="" Value="0" /> 
            <telerik:ChartAxisItem TextBlock-Text="L1" Value="1" /> 
            <telerik:ChartAxisItem TextBlock-Text="L2" Value="2" /> 
            <telerik:ChartAxisItem TextBlock-Text="L3" Value="3" /> 
            <telerik:ChartAxisItem TextBlock-Text="L4" Value="4" /> 
            <telerik:ChartAxisItem TextBlock-Text="L5" Value="5" /> 
          </Items> 
        </YAxis> 
    </PlotArea> 
    <Series> 
        <telerik:ChartSeries Name="Series 1" Type="Line"
            <Appearance ShowLabels="false"
                <FillStyle MainColor="Red"
                </FillStyle> 
            </Appearance> 
            <Items> 
                <telerik:ChartSeriesItem YValue="1" Name="Item 1"
                </telerik:ChartSeriesItem> 
                <telerik:ChartSeriesItem YValue="2" Name="Item 2"
                </telerik:ChartSeriesItem> 
                <telerik:ChartSeriesItem YValue="1" Name="Item 3"
                </telerik:ChartSeriesItem> 
                <telerik:ChartSeriesItem YValue="3" Name="Item 4"
                </telerik:ChartSeriesItem> 
                <telerik:ChartSeriesItem YValue="2" Name="Item 5"
                </telerik:ChartSeriesItem> 
            </Items> 
        </telerik:ChartSeries> 
        <telerik:ChartSeries Name="Series 2" Type="Line"
            <Appearance ShowLabels="false"
                <FillStyle MainColor="Blue"
                </FillStyle> 
            </Appearance> 
            <Items> 
                <telerik:ChartSeriesItem YValue="3" Name="Item 1"
                </telerik:ChartSeriesItem> 
                <telerik:ChartSeriesItem YValue="1" Name="Item 2"
                </telerik:ChartSeriesItem> 
                <telerik:ChartSeriesItem YValue="5" Name="Item 3"
                </telerik:ChartSeriesItem> 
                <telerik:ChartSeriesItem YValue="1" Name="Item 4"
                </telerik:ChartSeriesItem> 
                <telerik:ChartSeriesItem YValue="2" Name="Item 5"
                </telerik:ChartSeriesItem> 
            </Items> 
        </telerik:ChartSeries> 
    </Series> 
  </telerik:RadChart> 

Ales Ruzicka
Top achievements
Rank 1
 answered on 07 Jan 2010
2 answers
114 views
Does RadScheduler supports Unbound mode? I dont see any example of that if it is possible. If it doesn't support that, may I know any special reason?

thanks,
Sameers
Sameers
Top achievements
Rank 1
 answered on 07 Jan 2010
5 answers
150 views
Hello All,

I have a problem when sorting RadGrid which has Scandinavian characters (åäöÅÄÖ).
E.g. Columns below having following data are not handled correctly (sample case):

[Driver]  <-- Data not sorted properly -->
Räikkönen
Raikkonen
Ã…slund
Aslund

Rows Åslund and Räikkönen shuld be the last ones.

So, how could I tell RadGrid that it should support UTF-8 (or something else???) that sorting would work?

Below is my aspx and cs codesnippets

telerik:RadGrid ID="RadGridPersons" runat="server"
 AutoGenerateColumns="False" AllowFilteringByColumn="false" AllowSorting="True"
 SortingSettings-EnableSkinSortStyles="true" Width="80%" Visible="false"
 OnSortCommand="RadGridPersons_SortCommand" onitemdatabound="RadGridPersons_ItemDataBound">
 <MasterTableView CellSpacing="-1" TableLayout="Fixed" Width="100%"
 AllowNaturalSort="false" AllowMultiColumnSorting="false">   
  <SortExpressions>
    <telerik:GridSortExpression FieldName="LastName" SortOrder="Ascending" />
  </SortExpressions>      
 <RowIndicatorColumn>
  <HeaderStyle Width="20px"></HeaderStyle>
 </RowIndicatorColumn>
 <ExpandCollapseColumn>
 <HeaderStyle Width="20px"></HeaderStyle>
 </ExpandCollapseColumn>
  <Columns>    
   <telerik:GridBoundColumn DataField="CustomerId"
    HeaderText='<%$Resources:Customers, PersonCustomerSearchResultHeader_CustomerNumber%>'
    SortExpression="CustomerId" UniqueName="CustomerId" Visible="false">
   </telerik:GridBoundColumn>

   <telerik:GridHyperLinkColumn DataTextField="LastName"
    HeaderText='<%$Resources:Customers, PersonCustomerSearchResultHeader_LastName%>'
    SortExpression="LastName" UniqueName="LastName" DataNavigateUrlFields="CustomerId"
    DataNavigateUrlFormatString="PersonCustomer.aspx?CustomerId={0}" Visible="true"
    HeaderStyle-Width="90" HeaderStyle-Wrap="true" ItemStyle-Font-Italic="true"
    ItemStyle-Width="90" ItemStyle-Wrap="false">
   </telerik:GridHyperLinkColumn>


 
    protected void RadGridPersons_SortCommand(object source, Telerik.Web.UI.GridSortCommandEventArgs e)  
    {  
        GridDataItemCollection Coll = RadGridPersons.MasterTableView.Items;  
        var Items = from GridDataItem item in Coll  
                    orderby e.CommandSource ascending  
                    select new 
                    {  
                        CustomerId = item["CustomerId"].Text.ToString(),  
                        LastName = (item["LastName"].Controls[0] as HyperLink).Text.ToString(),  
                        ForeNames = item["ForeNames"].Text.ToString(),  
                        Street = item["Street"].Text.ToString(),  
                        PostalCode = item["PostalCode"].Text.ToString(),  
                        City = item["City"].Text.ToString(),  
                        SocialSecurityId = item["SocialSecurityId"].Text.ToString(),  
                        StatusKey = item["StatusKey"].Text.ToString(),  
                    };  
 
        RadGridPersons.DataSource =  
            (e.NewSortOrder == GridSortOrder.Ascending) ? Items : Items.OrderByDescending(x => x.LastName);  
 
        RadGridPersons.DataBind();  
    }  
 

Thanks,

Michael

 



Pavlina
Telerik team
 answered on 07 Jan 2010
5 answers
159 views
I have a grid using the GridClientSelectColumn and I also have a button that calls RadGrid.Rebind().
After the call to rebind, when a user tries to click on the grid row's checkbox nothing happens. here is the code (simplified).

Thanks!

<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="Sample.ascx.cs" Inherits="Touchstone.PT.Daimler.Web.Views.P2P.Sample" %> 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Charting" TagPrefix="telerik" %> 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> 
 
<telerik:RadAjaxLoadingPanel ID="AjaxLoadingPanel1" runat="server" Transparency="15" Width="800" BackColor="white">  
    <div style="height:30px">&nbsp;</div> 
    <img alt="Saving..." src='<%= RadAjaxLoadingPanel.GetWebResourceUrl(Page, "Telerik.Web.UI.Skins.Default.Ajax.loading.gif") %>' style="border: 0px; vertical-align: middle;" /> 
</telerik:RadAjaxLoadingPanel> 
 
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" UpdatePanelsRenderMode="Inline">  
    <AjaxSettings> 
        <telerik:AjaxSetting AjaxControlID="btnSearch">  
            <UpdatedControls> 
                <telerik:AjaxUpdatedControl ControlID="rgUsers" LoadingPanelID="AjaxLoadingPanel1" /> 
            </UpdatedControls> 
        </telerik:AjaxSetting> 
        <telerik:AjaxSetting AjaxControlID="rgUsers">  
            <UpdatedControls> 
                <telerik:AjaxUpdatedControl ControlID="rgUsers" LoadingPanelID="AjaxLoadingPanel1" /> 
            </UpdatedControls> 
        </telerik:AjaxSetting>          
    </AjaxSettings> 
</telerik:RadAjaxManager> 
 
<asp:Button id="btnSearch" runat="server" Text="Search" OnClick="btnSearch_Click" /> 
<br /> 
<telerik:RadGrid ID="rgUsers" runat="server" Width="100%" ShowStatusBar="false" AllowSorting="true" AllowMultiRowSelection="True" OnNeedDataSource="rgUsers_NeedDataSource">  
    <MasterTableView AutoGenerateColumns="false" TableLayout="fixed" Width="100%" AllowNaturalSort="false">  
        <Columns>                          
            <telerik:GridClientSelectColumn Reorderable="False" UniqueName="ClientSelectColumn">  
                <HeaderStyle Width="42px"></HeaderStyle> 
            </telerik:GridClientSelectColumn> 
        </Columns> 
    </MasterTableView> 
    <PagerStyle NextPageText="Next" PrevPageText="Prev" Mode="NextPrevAndNumeric"></PagerStyle> 
    <ClientSettings AllowDragToGroup="True">  
        <Selecting AllowRowSelect="True"></Selecting> 
    </ClientSettings> 
</telerik:RadGrid>  


        protected void btnSearch_Click(object sender, EventArgs e)  
        {  
            rgUsers.MasterTableView.Rebind();  
        }  
 
        protected void rgUsers_NeedDataSource(object source, Telerik.Web.UI.GridNeedDataSourceEventArgs e)  
        {  
            rgUsers.DataSource = new string[] { "Bob""Tom""Gary" };  
        } 
Daniel
Telerik team
 answered on 07 Jan 2010
7 answers
344 views
I was playing around with the new bits and wanted to try to use WCF Service using DbSchedulerProviderBase.
I kept getting errors on the DbSchedulerProviderBase method LoadResources when it tries to add a Resource to the appointment.
I thought I must had done something wrong so I open the Quick Start Examples in Visual Studio and altered the example http://demos.telerik.com/aspnet-ajax/scheduler/examples/wcf/defaultcs.aspx to use the MyDbSchedulerProvider instead by passing in the name of provider from web.config:
    private WebServiceAppointmentController Controller  
    {  
        get 
        {  
            if (_controller == null)  
            {  
                //_controller =  
                //    new WebServiceAppointmentController(  
                //        new XmlSchedulerProvider(HttpContext.Current.Server.MapPath("~/App_Data/Appointments_Outlook.xml"),   
                //            false));  
 
                _controller = new WebServiceAppointmentController("ReadOnlySchedulerData");  
            }  
            return _controller;  
        }  
    }  
 

I then ran the page and got the same error on the method below on line 16:
        private void LoadResources(Appointment apt)  
        {  
 
            using (DbConnection conn = OpenConnection())  
            {  
                DbCommand cmd = DbFactory.CreateCommand();  
                cmd.Connection = conn;  
 
                cmd.Parameters.Add(CreateParameter("@ClassID", apt.ID));  
                cmd.CommandText = "SELECT [TeacherID] FROM [DbProvider_Classes] WHERE [ClassID] = @ClassID AND [TeacherID] IS NOT NULL";  
                using (DbDataReader reader = cmd.ExecuteReader())  
                {  
                    if (reader.Read())  
                    {  
                        Resource teacher = apt.Owner.Resources.GetResource("Teacher", reader["TeacherID"]);  
                        apt.Resources.Add(teacher);  
                    }  
                }  
 
                cmd.Parameters.Clear();  
                cmd.Parameters.Add(CreateParameter("@ClassID", apt.ID));  
                cmd.CommandText = "SELECT [StudentID] FROM [DbProvider_ClassStudents] WHERE [ClassID] = @ClassID";  
                using (DbDataReader reader = cmd.ExecuteReader())  
                {  
                    while (reader.Read())  
                    {  
                        Resource student = apt.Owner.Resources.GetResource("Student", reader["StudentID"]);  
                        apt.Resources.Add(student);  
                    }  
                }  
            }  
        }  
 

The method GetResource returns null.

Can you check it out and let us know how to implement client binding from a database.

BTW I added a check for null and it works but of course there is no resources so it is specifically relating to how to load resources.
We can load resources from XML so I guess we just need to change the implementation of DbSchedulerProviderBase unless I have really missed somthing here.

Regards
Axe
Dimitar Milushev
Telerik team
 answered on 07 Jan 2010
2 answers
175 views
Hello,
i have some problem in exporting the results i have got to CSV format; actually i have a grid with 5 databound columns and 1 checkBox column, all columns are exported but the checkbox inspite of exportting it correctly to DOC or XLS. and why we couldn't export the columns which are not dispalyed on gird, is there way to do that...


thanks,
hanan
Daniel
Telerik team
 answered on 07 Jan 2010
1 answer
84 views
Hi,

Will a roadmap for the next release be available soon?

thanks,


Richard
Sebastian
Telerik team
 answered on 07 Jan 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?