Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
88 views
The scheduler control currently from what I can understand works that per user I can block slots so that these are not scheduled for that user, can I do instead of blocking creating available times? Meaning that at the beginning all times are block and when choosing a slot this becomes available?

Thank you.
Peter
Telerik team
 answered on 27 May 2010
1 answer
81 views
Hello;

I have a user requirement to view 12 or 52 weeks in MonthView format.  Can I specify a starting date and number of weeks?  How would I do this, or is it even possible?

Thanks,

Al
Genady Sergeev
Telerik team
 answered on 27 May 2010
1 answer
111 views
How To maintained Filter value

I have face a problem .
I have a RadGrid with Filter Textbox.(Column in Radgrid like UserName,Email)
I Filter it with Email column and then click on any Filtered row,
then we open a new Radwindow(For Edit).
when i click on Update button on this window then parent page refresh and it lost his Filter value.

How i maintained  it's filter value. 

Radoslav
Telerik team
 answered on 27 May 2010
0 answers
73 views
Hello,

when looking for info on Telerik controls, I recommend trying this:
http://www.google.com/search?q=site%3Atelerik.com
Nicolaï
Top achievements
Rank 2
 asked on 27 May 2010
2 answers
130 views
Hello,

I'm building a RadCalendar with ToolTip to show the time and summary of the events. The example "RadToolTip for RadCalendar " is very helpful, but i'm having a problem that there's always an error "Return Integer.Parse(result.ToString())"--- Input string was not in a correct format. The difference is that I didn't use int for the eventID as the example did, i used uniqueidentifier.
Private Function IsDayRegisteredForTooltip(ByVal [date] As DateTime) As Integer 
        
        Dim connectionString As String = ConfigurationManager.ConnectionStrings("eCalendarConnectionString").ConnectionString 
        Dim con As New SqlConnection(connectionString) 
        
        Dim cmd As New SqlCommand("SELECT GUID FROM tblActivities WHERE convert( varchar(10), Start, 101 ) = convert( varchar(10), @Start, 101 )", con) 
        cmd.Parameters.Add(New SqlParameter("@Start", [date])) 
 
        
        Using con 
            con.Open() 
            Dim result As Object = cmd.ExecuteScalar() 
             
            If result <> Nothing Then 
                Return Integer.Parse(result.ToString()) 
                
            End If 
 
            Return -1 
        End Using 
    End Function 

When I debugged, the result is always 0.
Can someone help me with this? Thank you very much for your help !

Petio Petkov
Telerik team
 answered on 27 May 2010
0 answers
366 views
In order to get familiar in a fast and pretty straight-forward manner with RadEditor for ASP.NET AJAX, I suggest you visit the online resources linked below:

RadEditor End-User Manual

Online examples

Online documentation

Step-by-step tutorial

Code library

Knowledge base

Blogs

Videos

Of course, you can browse the public forum as well in order to find a specific information/code sample concerning an aspect of the editor object model/ features. There are numerous threads which can get you started/assist you through the development process.

If you think you have an interesting project implementation with the editor that would benefit the community, we will gladly reward you for posting it in the Code library of RadEditor. So feel free to share your projects for others to learn more about all the amazing things RadEditor can do.

Finally, we will appreciate your feedback on the structure/content of the online resources - our goal is to continue enriching them, thus facilitating our customers even more.
Telerik Admin
Top achievements
Rank 1
Iron
 asked on 27 May 2010
2 answers
81 views

The following code shows a Grid control hierarchy being created from the page Init function. Data is displayed along with filter controls but no filter action takes place when requested.

using System;  
using System.Collections.Generic;  
using System.Linq;  
using System.Web;  
using System.Web.UI;  
using System.Web.UI.WebControls;  
using System.Data;  
using System.Data.Odbc;  
using Telerik.Web.UI;  
 
namespace preTOPS  
{  
    public partial class Home : System.Web.UI.Page  
    {  
        OdbcConnection connection;  
 
        protected override void OnInit(EventArgs e)  
        {  
            base.OnInit(e);  
 
            connection = Master.connection;  
 
            try  
            {  
                if (Session["user"] == null)  
                    throw new Exception("@You must be logged in to view this page. Please <a href='Default.aspx' style='color:White; text-decoration:underline;'>login</a>.");  
 
                DefineGridStructure();  
            }  
            catch (Exception ex)  
            {  
                MyUtilities.DoError(Master.maindiv, Master.errordiv, Master.lblError, ex, connection, null, Master.GetUserName());  
            }  
        }  
 
        protected void Page_Load(object sender, EventArgs e)  
        {  
            if (!Master.maindiv.Visible)  
                return;  
 
            //RadGrid grid = (RadGrid)divgrid.FindControl("grid1");  
            //RadAjaxManager1.AjaxSettings.AddAjaxSetting(grid, grid);  
        }  
 
        private void DefineGridStructure()  
        {  
            RadGrid grid = new RadGrid();  
 
            grid.ID = "grid1";  
            grid.Width = Unit.Percentage(100);  
            grid.PageSize = 10;  
            grid.AllowPaging = true;  
            grid.AllowSorting = true;  
            grid.AllowFilteringByColumn = true;  
            grid.PagerStyle.Mode = GridPagerMode.NextPrevAndNumeric;  
            grid.AutoGenerateColumns = false;  
            grid.GroupingEnabled = true;  
            grid.ShowGroupPanel = true;  
            grid.ShowStatusBar = true;  
            grid.ClientSettings.AllowDragToGroup = true;  
            grid.NeedDataSource += new GridNeedDataSourceEventHandler(grid_NeedIndications);  
            grid.MasterTableView.PageSize = 15;  
            grid.MasterTableView.DataKeyNames = new string[] { "indication" };  
 
            GridBoundColumn c = new GridBoundColumn();  
            c.DataField = "indication";  
            c.HeaderText = "Indication";  
            c.SortExpression = "indication";  
            c.UniqueName = "indication";  
            c.AllowSorting = true;  
            c.AllowFiltering = true;  
            c.DataType = System.Type.GetType("System.String");  
            grid.MasterTableView.Columns.Add(c);  
//          grid.MasterTableView.GroupByExpressions.Add(new GridGroupByExpression("Indication Group By Indication"));  
 
            GridTableView tvProtocols = new GridTableView(grid);  
            tvProtocols.Width = Unit.Percentage(100);  
            tvProtocols.DataKeyNames = new string[] { "protocol" };  
            //tvProtocols.AllowFilteringByColumn = true;  
            tvProtocols.AllowSorting = true;  
            tvProtocols.AllowMultiColumnSorting = true;  
            tvProtocols.AllowPaging = true;  
 
            c = new GridBoundColumn();  
            c.DataField = "protocol";  
            c.HeaderText = "Protocol";  
            c.SortExpression = "protocol";  
            c.UniqueName = "protocol";  
            c.AllowSorting = true;  
            c.AllowFiltering = true;  
            c.DataType = System.Type.GetType("System.String");  
            tvProtocols.Columns.Add(c);  
 
            c = new GridBoundColumn();  
            c.DataField = "sponsor";  
            c.HeaderText = "Sponsor";  
            c.UniqueName = "sponsor";  
            c.SortExpression = "sponsor";  
            c.AllowSorting = true;  
            c.AllowFiltering = true;  
            c.DataType = System.Type.GetType("System.String");  
            tvProtocols.Columns.Add(c);  
 
            c = new GridBoundColumn();  
            c.DataField = "shorttitle";  
            c.HeaderText = "Short Title";  
            c.AllowSorting = true;  
            c.AllowFiltering = true;  
            c.DataType = System.Type.GetType("System.String");  
            tvProtocols.Columns.Add(c);  
 
            c = new GridBoundColumn();  
            c.DataField = "cro";  
            c.HeaderText = "CRO";  
            c.AllowSorting = true;  
            c.AllowFiltering = true;  
            c.DataType = System.Type.GetType("System.String");  
            tvProtocols.Columns.Add(c);  
 
            GridRelationFields rf = new GridRelationFields();  
            rf.MasterKeyField = "indication";  
            rf.DetailKeyField = "indication";  
            tvProtocols.ParentTableRelation.Add(rf);  
 
            grid.MasterTableView.DetailTables.Add(tvProtocols);  
 
            divgrid.Controls.Add(grid);  
        }  
 
        void grid_NeedIndications(object source, GridNeedDataSourceEventArgs e)  
        {  
            OdbcCommand command1 = new OdbcCommand("select indication from indications order by indication asc;", connection);  
            OdbcDataReader reader1 = command1.ExecuteReader();  
            RadGrid grid = (RadGrid)divgrid.FindControl("grid1");  
            grid.DataSource = reader1;  
 
            OdbcCommand command2 = new OdbcCommand("select * from protocols;", connection);  
            OdbcDataReader reader2 = command2.ExecuteReader();  
            grid.MasterTableView.DetailTables[0].DataSource = reader2;  
        }  
 
    }  
}  
 

I have done a lot of searching on this forum but haven't found the answer yet.

It would be really nice if examples included more instances of programmatic creation of data sources rather than relying almost exclusively on declarative data sources, which I never use.

Thanks

Veli
Telerik team
 answered on 27 May 2010
7 answers
757 views
Hi,

I'm using the hierarchical grid scenario to display records and child records using templates. Everything is expanded and will never be collapsed.

How do I remove the expand/collapse column that is automatically generated by Radgrid?

Thanks,

Ken
Sebastian
Telerik team
 answered on 27 May 2010
1 answer
196 views
Hello,

With resources, is it possible to have some of the resources required and some optional?  What I mean is can the Scheduler do the validation, like it does for the subject message?

Thanks.
T. Tsonev
Telerik team
 answered on 27 May 2010
1 answer
53 views
Does the Telerik Editor comply with the Authoring Tool Accessibility Guidelines www.w3.org/TR/ATAG10 . If not does the company plan to comply with these guidelines?

Rumen
Telerik team
 answered on 27 May 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?