Telerik Forums
UI for ASP.NET AJAX Forum
6 answers
171 views
Hello!

Are there any Gauge controls in the works? Several other vendors have them ( Component One), but would rather stick with Telerik. They look excellent  and would be great for presenting information on a "dashboard" form to summarize site data.

Thanks
Harold
Tim Tos
Top achievements
Rank 1
 answered on 07 Feb 2011
1 answer
72 views
I have a RadChart in a page 

<
telerik:RadChart ID="ChartProjects" runat="server" DataGroupColumn="ProjectName" AutoTextWrap="True" Skin="Colorful" Height="400px" Width="0px"></telerik:RadChart>

While changing the width to 80% in the property window the width automatically became 0px 
and this is what caused the error. So I have corrected it.

I can now see the chart OK with the Y Axis fine with increasing numbers and also the Series is OK.
But please help me in regards to the X axis text content.
It currently shows 1 in the center

I tried these lines of codes (one at a time) but seems to do nothing!
ChartProjects.PlotArea.XAxis.AddItem(projectCount)

 

 

 

 

ChartProjects.PlotArea.XAxis.AxisLabel.TextBlock.Text = dbRow(

 

"ProjectName").ToString.Substring(0, 2)

 

 

 

 

 

 

 

 

 

Can you help in this regards?

Thanks,
Sanjay



 

Evgenia
Telerik team
 answered on 07 Feb 2011
1 answer
114 views
Hello, 
Sorry for my english, but i question, RadListview RadDataPager can double as Radgridview paging (up and down)
Thanks.
Radoslav
Telerik team
 answered on 07 Feb 2011
2 answers
301 views
Hi,

I have using radgrid in my application. when i clicked edit button i have set tab index to first control in edit template like (textbox). and also tab index align also fine. tab index going update and cancel. it is fine. then i clicked tab it will go to again text box like only with in edit item template.

how to set tab index with edit item template.

I have attached image please help me.

Thanks,
Dhamu.
Dhamodharan
Top achievements
Rank 1
 answered on 07 Feb 2011
2 answers
121 views
Hi,

I have created a combobox load on demand and I want to add an another combox box when I select an item of the first combo box. The second combo box must use the selected value of the first combo box to execute an SQL query and to retrieve items.


When I select an item of the first combo box, the second combobox is added, but when I open it, a popup is displayed.

Here is the code of my issue.

Thanks a lot.


protected void Page_Load(object sender, EventArgs e)
   {
       ComboBoxLoadOnDemand cbx = new ComboBoxLoadOnDemand();
       cbx.TableName = "ddl_report_collaborator";
       cbx.DataTextField = "text_ddl";
       cbx.DataValueField = "value_ddl";
       cbx.Height = Unit.Pixel(250);
       cbx.Width = Unit.Pixel(200);
       cbx.NbItemsRequested = 50;
       cbx.AutoPostBack = true;
       cbx.ShowMoreResultsBox = true;
       this.form1.Controls.Add(cbx);
       cbx.SelectedIndexChanged += new Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventHandler(cbx_SelectedIndexChanged);
        
        
   }
   void cbx_SelectedIndexChanged(object sender, Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventArgs e)
   {
       ComboBoxLoadOnDemand cbx2 = new ComboBoxLoadOnDemand();
       cbx2.TableName = "ddl_report_collaborator";
       cbx2.DataTextField = "text_ddl";
       cbx2.DataValueField = "value_ddl";
       cbx2.Height = Unit.Pixel(250);
       cbx2.Width = Unit.Pixel(200);
       cbx2.NbItemsRequested = 50;
       cbx2.ShowMoreResultsBox = true;
       this.form1.Controls.Add(cbx2);
   }
TANSERI
Top achievements
Rank 1
 answered on 07 Feb 2011
1 answer
465 views
Good Morning,

I am binding a RadGrid GridDateTimeColumn to a DB2 datetime column that contains millisecond values. I need to use these millisecond values to be able to update/delete the proper rows from the DB2 table; however, it looks like the GridDateTimeColumn doesn't store the System.DataTime value all the way down to milliseconds. It looks like the value just stops at seconds. 

Am I correct that the RadGrid GridDateTimeColumn doesn't store date/time values down to the millisecond?

Thanks
Casey

EDIT***
I was able to change the DataFormatString to "{0:MM/dd/yyyy HH:mm:ss:ffffff}" and it worked!! 
Radoslav
Telerik team
 answered on 07 Feb 2011
3 answers
149 views
Hi,

I have some code which displays timings in the allday row, specifically this one. My Code is:

protected void radScheduler_TimeSlotCreated(object sender, TimeSlotCreatedEventArgs e)
{
    // Calculate total hours per day.
    if (radScheduler.SelectedView == SchedulerViewType.WeekView && e.TimeSlot.Duration.TotalDays == 1)
    {
        double totalHoursPerDay         = 0;
        double totalOvertimeHoursPerDay = 0;
        bool weekend = false;
 
        if (e.TimeSlot.Start.DayOfWeek == DayOfWeek.Saturday || e.TimeSlot.Start.DayOfWeek == DayOfWeek.Sunday)
        {
            weekend = true;
        }
 
        foreach (Appointment a in radScheduler.Appointments.GetAppointmentsInRange(e.TimeSlot.Start, e.TimeSlot.End))
        {
            // Check time of appointment and adding to hours or overtime accordingly.
            if (a.Start.TimeOfDay >= new TimeSpan(8, 0, 0) && a.End.TimeOfDay <= new TimeSpan(19, 0, 0) && weekend)
            {
                totalOvertimeHoursPerDay += a.Duration.TotalHours;
            }
            else if (a.Start.TimeOfDay >= new TimeSpan(8, 0, 0) && a.End.TimeOfDay <= newTimeSpan(17, 0, 0))
            {
                totalHoursPerDay += a.Duration.TotalHours;
            }
            else if (a.Start.TimeOfDay > new TimeSpan(17, 0, 0) && a.End.TimeOfDay <= newTimeSpan(19, 0, 0))
            {
                totalOvertimeHoursPerDay += a.Duration.TotalHours;
            }
            else if (a.Start.TimeOfDay >= new TimeSpan(8, 0, 0) && a.End.TimeOfDay <= newTimeSpan(19, 0, 0))
            {
                double overtime = a.End.TimeOfDay.TotalHours - 17;
                totalOvertimeHoursPerDay += overtime;
                totalHoursPerDay += (a.Duration.TotalHours - overtime);
            }
        }
 
        Literal hoursLiteral       = new Literal();
        Literal overtimeLiteral    = new Literal();
 
        if (!weekend)
        {
            hoursLiteral.Text = "Hrs: " + totalHoursPerDay.ToString();
        }
 
        overtimeLiteral.Text = " O/T: " + totalOvertimeHoursPerDay.ToString();
 
        radScheduler.Controls.Add(hoursLiteral);
        radScheduler.Controls.Add(overtimeLiteral);
 
        e.TimeSlot.Control.Controls.Add(hoursLiteral);
        e.TimeSlot.Control.Controls.Add(overtimeLiteral);
    }
}

With the context menu enabled, this is causing an exception when I switch week (in weekview). The exception is: "Failed to load viewstate.  The control tree into which viewstate is being loaded must match the control tree that was used to save viewstate during the previous request.  For example, when adding controls dynamically, the controls added during a post-back must match the type and position of the controls added during the initial request.", and it happens on:

radScheduler.Controls.Add(hoursLiteral);

You can find a sample code here.

Thank you for your support.

Daryl
Alan
Top achievements
Rank 1
 answered on 07 Feb 2011
3 answers
75 views
I am running into the following scenario.

I have a combobox and a rad grid on a page.  When a value is selected in the combobox I wan to highlight the associated item in the grid.  The associated item could be on any page on the grid so the focus will need to be on the correct page and then item on the page.

I could programatically page through the pages to find and select the item but was wondering if there was an inbuilt way in the grid.
Princy
Top achievements
Rank 2
 answered on 07 Feb 2011
8 answers
667 views
Thanks for a great sample to display items in a listview mode shown here  http://demos.telerik.com/aspnet-ajax/grid/examples/programming/listview/defaultcs.aspx

I wonder is there a way to switch between listlivew and grid view?
Here are two examples of such functionality:

If you could achieve it you'll be the best.

Thanks,
Michael
Sebastian
Telerik team
 answered on 07 Feb 2011
2 answers
163 views
I'm using a RadGrid within a RajAjaxManager.
On a specific LinkButton, I need to export the content of the grid to CSV.
So I need to disable Ajax to allow export works. I'm doing this :

<

 

script type="text/javascript">

 

 

function mngRequestStartedEAE(ajaxManager, eventArgs) {

 

 

if (eventArgs.EventTarget.indexOf("exportCsv") != -1) {

 

eventArgs.EnableAjax =

false;

 

}

 

}

 

</

 

script>
<

telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" ClientEvents-OnRequestStart="mngRequestStartedEAE" >

    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="content">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="content" LoadingPanelID="RadAjaxLoadingPanel1" />
            </UpdatedControls>
        </telerik:AjaxSetting>
    </AjaxSettings>
</telerik:RadAjaxManager>
<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Transparency="10"
    BackColor="#ffffff" CssClass="ajax_loader">
</telerik:RadAjaxLoadingPanel>
<asp:Panel ID="content" runat="server" CssClass="MaxW">
<!-- some other controls -->
<asp:LinkButton ID="exportCsv" runat="server" OnClick="exportCsv_Click" Text="Exporter"></asp:LinkButton>
<!-- grid declaration ... -->
</asp:Panel>

All of this works fine ! BUT :
All other next requests doesn't works, because no more ajax is running :( So all actions like autopostback on controls within content panel are not invoked...

What am I doing wrong ?

Thanks for help !
Alexandre BARBIER
Top achievements
Rank 1
 answered on 07 Feb 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?