Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
89 views
I got a scheduler that is inheriting from the RadScheduler and I would like to limit the available dates on it (Range).
For example  I want the range of the scheduler will be between 1/1/2009 until 1/1/2012.
I want the user would not be able to see or choose or create anything that is not between these dates.
The problems I have are in the following parts :
The scheduler header have the navigation where the option to choose a date should be only in the relevant dates.
If the user Create / Modify an Appointment the StartDate and EndDate selectors should behave the same .
The scheduler navigation should stay in bound of the dates.
There is no Markup to show as it is dynamically created all in code and I would like to keep it this way :-)
Any ideas, guidelines ?

P.S.
I could not find anywhere in the forums or kb's or examples that would point me in the right direction.
Thanks again. 
Ehud
Top achievements
Rank 1
 answered on 19 May 2011
3 answers
259 views
Hi,

I have a CheckBoxList control within a RadComboBox. The code in my aspx is as follows:

<

radC:RadComboBox ID="NursingStatusRCB" runat="server" Width="185px" Height="100%" Skin="WebBlue">
<Items>
   <radC:RadComboBoxItem runat="server" Text="Status (APN, RN, etc.)" />
</Items>
<ItemTemplate>
<div onclick="stopPropagation(event);">
<asp:CheckBoxList ID="NursingStatusCBL" runat="server" CssClass="field_box" BorderStyle="None"></asp:CheckBoxList>
</div>
</ItemTemplate>
</radC:RadComboBox>

In my code behind, I bind a datatable to the checkboxlist.
When the text associated with a checkbox is wider than that provided by the dropdown, it breaks onto a new line. The second line of text is aligned underneath the checkbox. The problem is that this doesn't look good at all, so we want to have the second line of text line up with the first line of text. Can anyone offer help on how to have the text line up with itself in this manner?

Alternatively, we could adjust the width of the DropDown of the radComboBox (using DropDownWidth) to allow enough room for the text so it doesn't break onto 2 lines. The problem we face there though is that the data populating the CheckBoxList comes from our DB, so at design time, we don't know what the width of the box needs to be. I tried setting this value as 100%, but it gets interpreted as 100px.

Thanks for any assistance you can provide.
Karl

Kate
Telerik team
 answered on 19 May 2011
1 answer
134 views
We have a com+  component that returns our data from the database in the following format.
This example represents 2 hours of 15min interval data with 4 data series delimited by commas.

1/1/2009 12:15:00 AM,263.560000000001,326.10000000149,54.22,73.629
1/1/2009 12:30:00 AM,254.490000002235,277,54.26,73.629
1/1/2009 12:45:00 AM,254.369999998509,274.39999999851,54,73.629
1/1/2009 1:00:00 AM,250.399999999255,253.20000000298,54.62,73.516
1/1/2009 1:15:00 AM,248.340000002981,246.29999999702,53.96,73.629
1/1/2009 1:30:00 AM,241.64999999702,286.20000000298,53.87,73.404
1/1/2009 1:45:00 AM,244.939999999999,311,53.65,73.291
1/1/2009 2:00:00 AM,241.980000000746,314.79999999702,53.74,73.516

We currently use a charting component that can produce a chart with 2 data series (Chart Series)
for 1 year in approximately 4 seconds (From Database query to Client display). That is 4x24x365=35040 points per series.

Will the RadChart (RadControls for ASP.NET AJAX Q2 2010) give us this kind of performance?
if so what would be the best method of loading the data into the chart

  1) data binding
  2) for loop loading item data

I'm currently seeing about a 15-20sec load time for 2 data series and 800 points using the following sample code.

Thank Marc,

RadChart1.Clear();
 // SETTING AXISES
 //SetXAxis(0);
 RadChart1.PlotArea.XAxis.LayoutMode = ChartAxisLayoutMode.Between;
 RadChart1.PlotArea.YAxis.AutoScale = true;
 RadChart1.PlotArea.YAxis.Step = 6;
 RadChart1.PlotArea.XAxis.AutoScale = true;
 RadChart1.PlotArea.XAxis.Step = 10;
 RadChart1.IntelligentLabelsEnabled = false;
 //SetYAxis(500);
 // SETTING SERIES
 ChartSeries Series1 = new ChartSeries();
 RadChart1.Series.Add(Series1);
 Series1.Name = "Electric";
 Series1.Type = ChartSeriesType.Line;
 Series1.Appearance.LabelAppearance.Visible = false;
 
 ChartSeries Series2 = new ChartSeries();
 RadChart1.Series.Add(Series2);
 Series2.Name = "Gas";
 Series2.Type = ChartSeriesType.Line;
  
 Series2.YAxisType = ChartYAxisType.Secondary;
 Series2.Appearance.LabelAppearance.Visible = false;
 
 //Load Series Data   
 int xSeries=0;
 foreach (ChartSeries ChartSeries in RadChart1.Series)
 {
     for (int i = 0; i < ProcessData.Length - 2000; i++)
     {
         String[] Channels = ProcessData[i].Split(',');
         ChartSeries.AddItem(Convert.ToDouble(Channels[xSeries + 1]));
     }
     xSeries++;
 }

Tsvetie
Telerik team
 answered on 19 May 2011
3 answers
62 views
Is it possible to let user to insert rotator with data source in RadEditor?

Thanks,
Darren L.
Rumen
Telerik team
 answered on 19 May 2011
2 answers
89 views
All,

I am using a custom version of the Sitefinity skin for my RadMenu, and am having one issue I can't seem to find. For some reason, the first row of submenus is showing a bullet. I can't seem to find where in the skin I need to make the change to set the bullet invisible using     list-style-type:none;

Any and all help is greatly appreciated!

Thanks,
B
Bruce
Top achievements
Rank 1
 answered on 19 May 2011
3 answers
95 views
I'm hoping that this is an easy question, and that I have just missed finding the answer.  Can you add other controls such as the RadTextBox to a RadRibbonBar?  I am using VS 2010 and each time I try to add between to the <Items> tags, it gives me an error:

Telerik.Web.UI.RibbonBarItemCollection must have items of type 'Telerik.Web.UI.RibbonBarItem'. 'telerik:RadTextBox' is of type 'Telerik.Web.UI.RadTextBox'

Any help is appreciated.

Thanks.

Nick
Nikolay Tsenkov
Telerik team
 answered on 19 May 2011
1 answer
120 views
Hello,
I have a radgrid with GridButtonColumn for deleteing row. On clicking the command image, appears radconfirm asking the user if he is sure of the deleting.
I am searching for event(js) BEFORE the confirmation appears on client, because the text of the confirmation depends on the type of the row - some types need text1 and some needs text2.
Witch event can i call?
I tried <clientEvents> of the grid such as: OnCommand, OnRowDeleted but it didnt help - first was shown the confirm and then get in the js function.

thanks,
gila
Tsvetina
Telerik team
 answered on 19 May 2011
2 answers
202 views
Hi,

I've got a RadListBox linked with a RequiredFieldValidator from ASP.NET and it's possible this RadListBox loads with preselected items. So, I open the corresponding page and reckon I haven't got to make a change in the selection of the RadListBox and just press my validation button. Unfortunately, I'm getting an error from the validator that I haven't selected a thing in my RadListBox, while there are some items preselected.

My RadListBox looks like:
<telerik:RadListBox ID="DepartmentsListBox" runat="server" CheckBoxes="true" SelectionMode="Multiple" Width="95%" DataSourceID="DepartmentsDataSource" DataTextField="Name" DataValueField="DepartmentID" OnDataBound="DepartmentsListBox_DataBound">
</telerik:RadListBox>
<asp:ObjectDataSource ID="DepartmentsDataSource" runat="server"
    SelectMethod="GetDepartments" TypeName="Datamex.Projects.Nebulus.BusinessLogics.Departments">
</asp:ObjectDataSource>

The RadListBox loads like:
protected void DepartmentsListBox_DataBound(object sender, EventArgs e)
{
    foreach (RadListBoxItem item in DepartmentsListBox.Items)
    {
        item.Checked = hc.DepartmentHourCategoryLinks.Any(l => l.DepartmentID == Guid.Parse(item.Value));
    }
}

And the validator:
<asp:RequiredFieldValidator ID="DepartmentsValidator" runat="server" ControlToValidate="DepartmentsListBox" ValidationGroup="Save" CssClass="Validator" Text="*" ErrorMessage="<%$ Resources:Resources, DepartmentsRequiredMessage %>" />

As you can see the DataBound event checks the preselected items as it should, but if I click my validation button I get the error from my validator that I haven't checked any items in the RadListBox.

What am I doing wrong?

Thanks in advance.

Regards,
Datamex
Shinu
Top achievements
Rank 2
 answered on 19 May 2011
5 answers
159 views
Hello all,

On my page I have a list of employees on the left side of the page, and as the user selects different employees I want to change the colors of the employee selected in the bar chart that I have.

In the attached you will see 2 bar charts, the chart I am talking about is the "Branch Sales Compparision" chart. The chart that shows multiple employees.

So in the attachment I have choosen Ian F. Jones so in the bar chart I want to make his bar colors a darker color.
Thanks,
KS
Evgenia
Telerik team
 answered on 19 May 2011
2 answers
80 views
Hi there,

I have to handel different Datatypes in one Templatecolumn. For this I have to load dynamic different controls to provide a proper interface for the user.
I attached a picture to this post.

As you can see, the column "typ" represents different kinds of datatypes. If the user presses the editbutton, the control in the colum "Wert" has to represent a proper control. For the date-type I need the "raddatepicker" and for the integer a RadNumericTextBox and so on.

Anybody an idea to solve this problem?

Best regards.
Vasil
Telerik team
 answered on 19 May 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
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?