Hi,
I am tring to create a year calendar (multi month) to select, save and restore in a DB multiple sections (periods) and I do not know where to start. My goal is to setup a banner system where the same banner can be showed for multiple days at different period in a year.Thank you
Erik

I'm creating several textboxes and dropdown controls. Some have a related RequiredFieldValidator control. The RequiredFieldValidator is created as follows:
RequiredFieldValidator getValidator(string ctrlNo, bool visible, Label lbl, TextBox txt, RadComboBox rcb)
{
string lblName = (lbl==null ? "This " : lbl.Text.Replace(" "," "));
RequiredFieldValidator rfv = new RequiredFieldValidator();
rfv.ID = "rfv_" + ctrlNo;
rfv.Visible = visible;
if (txt.Visible == true)
rfv.ControlToValidate = txt.ID;
if (rcb.Visible == true)
rfv.ControlToValidate = rcb.ID;
rfv.ErrorMessage = lblName;
rfv.ToolTip = lblName;
rfv.Text = "*";
rfv.ValidationGroup = "cmsave";
return rfv;
}
This method is called from the following section of code which inserts rows into a table. Insert location is marked with a PlaceHolder control (ID="tblInsertRow").
// instantiate each control.
Label lbl = getLabel(ctrlNo, bShowLbl, property.Label);
TextBox txt = getTextBox(ctrlNo, bShowTxt, property.ControlWidth);
RadComboBox rcb = getComboBox(ctrlNo, bShowRcb, property.ControlWidth, list);
RequiredFieldValidator rfv = getValidator(ctrlNo, bShowRfv, lbl, txt, rcb);
// STEP 2 - ADD CONTROLS TO A ROW
if (txt.Visible == true || rcb.Visible == true)
{
// create new table row.
TableRow row = new TableRow();
// create 1st cell; add label; add cell to row.
TableCell cell_0 = new TableCell();
if (lbl.Visible == true)
cell_0.Controls.Add(lbl);
cell_0.ColumnSpan = 1;
row.Controls.Add(cell_0);
// create 2nd cell; add control; add cell to row.
TableCell cell_1 = new TableCell();
if (txt.Visible == true)
cell_1.Controls.Add(txt);
if (rcb.Visible == true)
cell_1.Controls.Add(rcb);
if (rfv.Visible == true)
cell_1.Controls.Add(rfv);
cell_1.ColumnSpan = 3;
row.Controls.Add(cell_1);
// add row at place holder into existing table.
tblInsertRow.Controls.Add(row);
}
When the user clicks the "Save" button, I force a validation of all validators as follows:
// force validation of controls.
Page.Validate("cmsave");
if (Page.IsValid == false)
{
// display message.
return;
}
The problem I'm having is that Page.IsValid is always "true". I read some older posting that stated that you cannot use RequiredFieldValidator with AJAX, but I don't believe that's true anymore since I've done it before with static controls. This is the 1st time I'm trying to do this with controls created at runtime. These controls are created in a User Control that is displayed on a Page with a Master Page. Could this be a RadScriptManager related issue? What am I missing? TIA, Gary.
| <telerik:RadMenuItem Text="New Recurring Appointment" ImageUrl="Images/recurring.gif" Value="CommandAddRecurringAppointment" /> |
I'm using trial Q2 2009 controls with a RadNumericTextBox input for salary and have several issues:-
| <telerik:RadNumericTextBox runat="server" ID="dataEarnedAnnualIncome" Text='<%# Bind("EarnedAnnualIncome") %>' NumberFormat-DecimalDigits="0" NumberFormat-AllowRounding="true" Tooltip="" /> |
1. I don't want any decimal places, however, no matter what I do the control allows me to enter several decimal places. I need the control to stop me enetring decimal places or limit it to the correct number like a masked control - how can I do this?
I've tried adding a OnClientBlur javascript function to disable the decimal point from input, which would only cater for numbers with no decimal places, but this doesn't work as none of the RadNumericTextBox validation then happens and I can enter non numeric text in the box - can my script be changed to make this work?
| //Function to stop decimal point being input |
| function StripDecimalPoint(sender, eventArgs) { |
| var c = eventArgs.get_keyCode(); |
| if (c == 46) { eventArgs._cancel = true; } |
| return false; |
| } |
2. The rounding is calculated incorrectly as rounding depends on the number of significant decimal places not just the values of the numbers. With no decimal places 0.45 should be rounded down to 0, however it is being rounded up to 1?
3. If I cannot limit the number of decimals the user inputs then its preferable to truncate the input, however, when I change the AllowRounding to false the input is not truncated but left exactly as entered by the user. Obvioulsy I'd prefer to stop the user being able to enter extra decimals but if I can't how do I need to change my line to get truncating to work?
If these are known issue when do you anticipate fixing them?
Thanks

| Private Sub AddChildNodes(ByVal node As RadTreeNode) |
| If GetCustomersByNode(CInt(node.Value)) Then |
| Dim row As DataRow |
| For Each row In parentCustomer.Tables(0).Rows |
| Dim childNode As New RadTreeNode() |
| childNode.Text = CStr(row("CustomerName")) |
| childNode.Value = CInt(row("CustomerNum")).ToString() |
| childNode.ExpandMode = CInt(row("HasChild")) |
| childNode.PostBack = True |
| node.Nodes.Add(childNode) |
| Next row |
| End If |
| End Sub |
| <%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %> |
| <telerik:RadCalendar runat="server" |
| EnableEmbeddedSkins="false" |
| Skin="SESkin" /> |
| <telerik:RadChart runat="server" |
| EnableEmbeddedSkins="false" |
| Skin="SESkin" /> |
| <telerik:RadColorPicker runat="server" |
| EnableEmbeddedSkins="false" |
| Skin="SESkin" /> |
| <telerik:RadComboBox runat="server" |
| EnableEmbeddedSkins="false" |
| Skin="SESkin" /> |
| <telerik:RadDock runat="server" |
| EnableEmbeddedSkins="false" |
| Skin="SESkin" /> |
| <telerik:RadDatePicker runat="server" |
| EnableEmbeddedSkins="false" |
| Skin="SESkin" /> |
| <telerik:RadGrid runat="server" |
| EnableEmbeddedSkins="false" |
| Skin="SESkin" |
| EnableLinqExpressions="false" |
| GroupingSettings-CaseSensitive="false" /> |
| <telerik:RadEditor runat="server" |
| EnableEmbeddedSkins="false" |
| Skin="SESkin" /> |
| <telerik:RadFileExplorer runat="server" |
| EnableEmbeddedSkins="false" |
| Skin="SESkin" /> |
| <telerik:RadFormDecorator runat="server" |
| EnableEmbeddedSkins="false" |
| Skin="SESkin" /> |
| <telerik:RadMaskedTextBox runat="server" |
| EnableEmbeddedSkins="false" |
| Skin="SESkin" /> |
| <telerik:RadMenu runat="server" |
| EnableEmbeddedSkins="false" |
| Skin="SESkin" /> |
| <telerik:RadTextBox runat="server" |
| EnableEmbeddedSkins="false" |
| Skin="SESkin" /> |
| <telerik:RadDateInput runat="server" |
| EnableEmbeddedSkins="false" |
| Skin="SESkin" /> |
| <telerik:RadPanelBar runat="server" |
| EnableEmbeddedSkins="false" |
| Skin="SESkin" /> |
| <telerik:RadProgressArea runat="server" |
| EnableEmbeddedSkins="false" |
| Skin="SESkin" /> |
| <telerik:RadRotator runat="server" |
| EnableEmbeddedSkins="false" |
| Skin="SESkin" /> |
| <telerik:RadScheduler runat="server" |
| EnableEmbeddedSkins="false" |
| Skin="SESkin" /> |
| <telerik:RadSlider runat="server" |
| EnableEmbeddedSkins="false" |
| Skin="SESkin" /> |
| <telerik:RadSpell runat="server" |
| EnableEmbeddedSkins="false" |
| Skin="SESkin" /> |
| <telerik:RadSplitter runat="server" |
| EnableEmbeddedSkins="false" |
| Skin="SESkin" /> |
| <telerik:RadTabStrip runat="server" |
| EnableEmbeddedSkins="false" |
| Skin="SESkin" /> |
| <telerik:RadToolBar runat="server" |
| EnableEmbeddedSkins="false" |
| Skin="SESkin" /> |
| <telerik:RadToolTip runat="server" |
| EnableEmbeddedSkins="false" |
| Skin="SESkin" /> |
| <telerik:RadTreeView runat="server" |
| EnableEmbeddedSkins="false" |
| Skin="SESkin" /> |
| <telerik:RadUpload runat="server" |
| EnableEmbeddedSkins="false" |
| Skin="SESkin" /> |
| <telerik:RadWindow runat="server" |
| EnableEmbeddedSkins="false" |
| Skin="SESkin" /> |
| <telerik:RadWindowManager runat="server" |
| EnableEmbeddedSkins="false" |
| Skin="SESkin" /> |
