Telerik Forums
UI for ASP.NET AJAX Forum
12 answers
887 views
  My program is showing doctor's appointments in timeline view.  Sometimes i want to hide weekend or any weekday if the doctor is not working on that day.

  I checked your timeline view and customization demos, the closest thing I can find is using the first day of week and last day of week, but it's not supported in timeline view.

  Is there a way I can hide a day in timeline view?  Or is there a way I can change the column width to 0, so it's like hide the column?

Jürgen
Top achievements
Rank 1
 answered on 26 Jul 2013
3 answers
339 views
hi,

We already working Telerik control version 2008 now we need to migrate 2013. I'm new to use Telerik chart . So kindly guide me the sample for Pie chart with dynamic creation C# . Earlier we are using dundas .

I'm struggle to implement :

Dynamic background color ,
Dynamic Title text
Dynamic PieSeriesItem


Need to implement all in C#

Kindly guide .
Danail Vasilev
Telerik team
 answered on 26 Jul 2013
2 answers
426 views
Hi,

I am using RadDatePicker control for start and end date input controls on my form. I am taking "01/01/1980" as min date and "12/31/2049" as max date. I am facing a problem when I enter the date manually in Date text box. 

Scenario 1: I enter date as 123129. RadPicker correctly picks it up as 12/31/2029 and displays the formatted date value.
Scenario 2: I enter date as 123130. I get a client side validation warning. No matter what day and month I enter, it freezes every time on year greater than XX/XX/29 (2029). 
Scenario 3: I enter date as 12312030 - complete year instead of just last 2 digits. RadPicker correctly picks it up as 12/31/2030 and displays the formatted date value.

I tested all 3 scenarios on your ASP.NET Calendar Demo - DatePicker - First Look as well. 

I am not sure why the validation kicks in when the max date is set as 12/31/2049. Please assist me in resolving this issue.

Thanks,
Vaibhav
Vaibhav
Top achievements
Rank 1
 answered on 26 Jul 2013
2 answers
83 views
Is it possible to add RadTextBox inside RadPanelItem which is inside RadPanelBar? I'm not sure whether is it possible and if it is how to accomplish that?
On client side, ofc :)
Bosko
Top achievements
Rank 1
 answered on 26 Jul 2013
3 answers
718 views
I need build a TextBox to search this text in any column in my Grid.
How I make it?
My grid:

<telerik:RadGrid ID="RadGrid2" DataSourceID="XXX" runat="server"
        AllowSorting="True" AutoGenerateColumns="False" GridLines="None">
        <GroupHeaderItemStyle HorizontalAlign="Left" />
        <MasterTableView Width="100%" AutoGenerateColumns="False" DataSourceID="dbNDriveSecuritySqlDataSource"
            GroupsDefaultExpanded="False">
            <Columns>
                <telerik:GridBoundColumn DataField="sub_folder_path" FilterControlAltText="Filter sub_folder_path column"
                    HeaderText="sub_folder_path" SortExpression="sub_folder_path" UniqueName="sub_folder_path">
                    <ItemStyle HorizontalAlign="Left" />
                </telerik:GridBoundColumn>
                <telerik:GridHyperLinkColumn DataNavigateUrlFields="group_manager" DataNavigateUrlFormatString="groupinfo.aspx?group={0}"
                    DataTextField="group_manager" FilterControlAltText="Filter column column" HeaderText="Group Manager"
                    UniqueName="column">
                    <ItemStyle HorizontalAlign="Left" />
                </telerik:GridHyperLinkColumn>
                <telerik:GridBoundColumn DataField="ServerName" FilterControlAltText="Filter ServerName column"
                    HeaderText="ServerName" SortExpression="ServerName" UniqueName="ServerName">
                    <ItemStyle HorizontalAlign="Left" />
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="main_folder_path" FilterControlAltText="Filter main_folder_path column"
                    HeaderText="main_folder_path" SortExpression="main_folder_path" UniqueName="main_folder_path"
                    Visible="False">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="group_manager" FilterControlAltText="Filter group_manager column"
                    HeaderText="group_manager" SortExpression="group_manager" UniqueName="group_manager"
                    Visible="False">
                </telerik:GridBoundColumn>
                <telerik:GridTemplateColumn HeaderText="Access Type">
                    <ItemTemplate>
                        <asp:CheckBox ID="CheckBox1" runat="server" Text="Access to Read" OnCheckedChanged="CheckBox1_ChangeCheck"
                            AutoPostBack="true" />
                        <asp:CheckBox ID="CheckBox2" runat="server" Text="Access to Modify" OnCheckedChanged="CheckBox2_ChangeCheck"
                            AutoPostBack="true" />
                    </ItemTemplate>
                </telerik:GridTemplateColumn>
                <telerik:GridBoundColumn DataField="securityGroupR" FilterControlAltText="Filter securityGroupR column"
                    HeaderText="securityGroupR" SortExpression="securityGroupR" UniqueName="securityGroupR"
                    Visible="false">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="securityGroupM" FilterControlAltText="Filter securityGroupM column"
                    HeaderText="securityGroupM" SortExpression="securityGroupM" UniqueName="securityGroupM"
                    Visible="false">
                </telerik:GridBoundColumn>
            </Columns>
            <GroupByExpressions>
                <telerik:GridGroupByExpression>
                    <SelectFields>
                        <telerik:GridGroupByField FieldAlias="main_folder_path" FieldName="main_folder_path" />
                    </SelectFields>
                    <GroupByFields>
                        <telerik:GridGroupByField FieldName="main_folder_path" />
                    </GroupByFields>
                </telerik:GridGroupByExpression>
            </GroupByExpressions>
            <EditFormSettings>
                <EditColumn FilterControlAltText="filter editcommandcolumn column">
                </EditColumn>
            </EditFormSettings>
        </MasterTableView>
        <FilterMenu EnableImageSprites="false">
        </FilterMenu>
    </telerik:RadGrid>

Jayesh Goyani
Top achievements
Rank 2
 answered on 26 Jul 2013
7 answers
164 views
Hello,

Can chunk upload be performed in IE10 (Desktop and metro)? 
Also Which upload module is used in those browsers? 

Than you,
Mikiya Sato

Mikiya Sato
Top achievements
Rank 1
 answered on 26 Jul 2013
4 answers
115 views
I've run into this issue before, but I can't remember how I resolved (or avoided) it.

I've nested a RadGrid inside the NestedViewTemplate of another RadGrid. I've attached a picture of the issue. In this case I expanded the first row (at which point things look normal) and then the second row. In Firebug I've selected the nested RadGrid of the first row which appears to be a solid line. It seems the MasterTableView has disappeared. The outer grid is ajaxified, but the behavior is identical when I set EnableAjax="false". I'll paste the code for the RadGrids. The outer grid is rgAgencies; the inner grid is rgSpecifications; rg refers to both grids (and so rgMaster refers to both grids' MasterTableView).

protected void rgMaster_Init(object sender, EventArgs e)
{
    GridTableView gtv = sender as GridTableView;
    gtv.CommandItemDisplay = UserInfo.IsInRole(PortalSettings.AdministratorRoleName) ? GridCommandItemDisplay.Top : GridCommandItemDisplay.None;
}
 
protected void rgAgencies_NeedDataSource(object sender, GridNeedDataSourceEventArgs e)
{
    using (EXSCInternshipsDataContext dbContext = new EXSCInternshipsDataContext())
    {
        rgAgencies.DataSource = dbContext.Agencies.Where(a => !a.AgencyDeleted).ToList();
    }
}
 
protected void rgSpecifications_NeedDataSource(object sender, GridNeedDataSourceEventArgs e)
{
    RadGrid rg = sender as RadGrid;
    GridDataItem item = ((GridNestedViewItem)rg.NamingContainer).ParentItem as GridDataItem;
    using (EXSCInternshipsDataContext dbContext = new EXSCInternshipsDataContext())
    {
        Agency agency = dbContext.Agencies.Single(a => a.AgencyID == Convert.ToInt32(item.GetDataKeyValue("AgencyID")));
        IEnumerable<InternshipSpecification> list = agency.InternshipSpecifications.ToList();
        if (list.Count() == 0) rg.Visible = UserInfo.IsInRole(PortalSettings.AdministratorRoleName);
        else rg.DataSource = agency.InternshipSpecifications.ToList();
    }
}
 
protected void rgAgencies_ItemDataBound(object sender, GridItemEventArgs e)
{
    if (e.Item is GridDataItem)
    {
        GridDataItem item = e.Item as GridDataItem;
        using (EXSCInternshipsDataContext dbContext = new EXSCInternshipsDataContext())
        {
            Agency agency = dbContext.Agencies.Single(a => a.AgencyID == Convert.ToInt32(item.GetDataKeyValue("AgencyID")));
            RadRating rr = item["Rating"].Controls.OfType<RadRating>().Single();
            IEnumerable<Score> ratings = agency.AForms.Select(a => a.Internship).
                                                        Where(i => i.InternshipGFormID.HasValue && i.GForm.OverallScore.ScoreValue != Score.NA).
                                                        Select(i => i.GForm.OverallScore).ToList();
            if (ratings.Count() == 0) rr.Enabled = false;
            else rr.Value = ratings.Select(s => s.ScoreValue - 1).Average(i => (decimal)i);
        }
    }
}
 
protected void rgAgencies_ItemCommand(object sender, GridCommandEventArgs e)
{
    if (e.CommandName == "InitInsert")
    {
        e.Canceled = true;
        rwEditAgency.VisibleOnPageLoad = true;
        loadAgencyData(null);
    }
    else if (e.CommandName == "Edit")
    {
        e.Canceled = true;
        rwEditAgency.VisibleOnPageLoad = true;
        using (EXSCInternshipsDataContext dbContext = new EXSCInternshipsDataContext())
        {
            Agency agency = dbContext.Agencies.Single(a => a.AgencyID == Convert.ToInt32((e.Item as GridEditableItem).GetDataKeyValue("AgencyID")));
            loadAgencyData(agency);
        }
    }
    else if (e.CommandName == "Delete")
    {
        using (EXSCInternshipsDataContext dbContext = new EXSCInternshipsDataContext())
        {
            Agency agency = dbContext.Agencies.Single(a => a.AgencyID == Convert.ToInt32((e.Item as GridEditableItem).GetDataKeyValue("AgencyID")));
            agency.AgencyDeleted = true;
            dbContext.SubmitChanges();
        }
    }
}
 
protected void rgPreRender(object sender, EventArgs e)
{
    RadGrid rg = sender as RadGrid;
    rg.Columns.FindByUniqueName("Buttons").Visible = UserInfo.IsInRole(PortalSettings.AdministratorRoleName);
}
Matthew
Top achievements
Rank 1
 answered on 25 Jul 2013
2 answers
170 views
How do I format the legend of a doughnut and pie chart when one of the axis is a date field represented as a string? Sample data:

DataPoint Group By
100.00 1/1/2013
200.00 2/1/2013
350.00 3/1/2013

"Group By" is of type string in my class. Please see attached image for a visual explanation.
George
Top achievements
Rank 1
 answered on 25 Jul 2013
2 answers
142 views
I'm allowing the user to create charts and change the chart type (line, area, bar, pie, etc) on the fly. With the new Date axis I'm experiencing a problem with the line chart. It doesn't connect the lines when there is a gap in the data like the area chart does. When XAxis.Type is set to AxisType.Category it works fine. Is this by design, or a bug. Is there a workaround besides filling the data source with dummy data for the months that don't have any metrics. Screenshot of the problem is attached.
George
Top achievements
Rank 1
 answered on 25 Jul 2013
1 answer
414 views
I am using Q1 2013 (before the addition of the CategorySeriesItem class, etc.) and am wondering if there is a method equivelant to http://www.telerik.com/help/aspnet-ajax/htmlchart-application-using-multiple-custom-colors.html for my situation.
Danail Vasilev
Telerik team
 answered on 25 Jul 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?