Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
124 views
Hey Peeps,

I'm trying to use a RadDateTimePicker to allow a user to select a date, and according to the date selected, populate the TimeView with custom time values. According to this forum, you can use the following to allocate custom time values:

RadDateTimePicker1.TimeView.CustomTimeValues = new string[] { "12,10,10,57,4", "5,6,3,38,9", "3,8,11,5,7" };

Unfortunately, with my controls (2012 Q1), there is no such property/method (CustomTimeValues) in the RadDateTimePicker or RadTimePicker. How can I go about assigning custom time values to this control?
Juan
Top achievements
Rank 1
 answered on 15 Feb 2013
2 answers
155 views
hi Telerik,

I try to call $find('<%= radPane1.ClientID %>') after page is rendered on client side javascript function, but it is always null -- can't find it. Any idea what i did wrong?

thanks,

roger
Shen Li
Top achievements
Rank 1
 answered on 15 Feb 2013
2 answers
88 views
Hello Telerik Team,

Please help me

I need to consider only working days at the time of assignments binding to Rad Scheduler(not including Sunday and Saturday).
Example:-My assignment is in three working days. I want to show on Friday,Monday,Tuesday.But now it shows on Friday,Saturday and Sunday.

How to exclude these non-working days.Is it possible.Can you please help me.

Thanks in Advance....
Madhavi
Top achievements
Rank 1
 answered on 15 Feb 2013
1 answer
115 views
Hello,

I am using a RadButton inside my RadWindow and I want to close the RadWindow using this button. Is it possible to close the window using some client side code?

Thanks in advance,
Ivy.
Princy
Top achievements
Rank 2
 answered on 15 Feb 2013
5 answers
131 views
HI,
Is someone could give me explaination of this?
I have a OnSelectedIndexChanged event working properly, when I haven't set the visibility property of the grid in the aspx into false.
Then, after i set it false, why OnSelectedIndexChanged event not fired.

this is the code of my grid:
<telerik:RadGrid ID="FacilityRadGrid" runat="server" AllowFilteringByColumn="False"
    AllowMultiRowEdit="False" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False"
    GridLines="None" PageSize="10" ShowStatusBar="False" MasterTableView-ShowFooter="False"
    OnNeedDataSource="FacilityRadGrid_OnNeedDataSource" OnSelectedIndexChanged="FacilityRadGrid_SelectedIndexChanged"
    Visible="false">

protected void FacilityRadGrid_SelectedIndexChanged(object sender, EventArgs e)
{
    //get selected row
    GridDataItem item = (GridDataItem)this.FacilityRadGrid.SelectedItems[0];
 
    this.FacilityRTBId.Text = item.GetDataKeyValue("Record1").ToString();
    this.FacilityRTBName.Text = item.GetDataKeyValue("Record2").ToString();
 
    this.FacilitytFields.Visible = true;
    this.FacilityRadGrid.Visible = false;
}

Shinu
Top achievements
Rank 2
 answered on 15 Feb 2013
1 answer
207 views
Hi

Is it possible to set the value of RadSlider through JavaScript based on a value in my textbox?  When I enter some value in the textbox then the slider should be set accordingly and vice-versa.
Thanks
Ben.
Princy
Top achievements
Rank 2
 answered on 15 Feb 2013
1 answer
103 views
ISSUE:show grid data with currency and export to excel in currency format,(sum is not working in excel).
on googling issue i was able to perform the task with inherting GridBoundColumn to my custom class GridCurrencyColumn
 but filters not working


here is my code:

i am facing problem with rad grid custom class GridCurrencyColumn
inherits GridTemplateColumn. 


 public class GridCurrencyColumn<T> : GridTemplateColumn
    {
        private string _javascript;
        private string _buttonName;
        private int _columnWidth;

        public GridCurrencyColumn(string buttonName, string dataField, int columnWidth, string javascript, string gridId)
        {
            _buttonName = buttonName;
            ITemplate template = new GridMoneyItemTemplate<T>(dataField);
            _javascript = javascript;
            string onClientClick = string.Format(_javascript, typeof (long), dataField, gridId);

            DataField = dataField;
            UniqueName = dataField;
            DataType = typeof (decimal);
            AllowFiltering = true;
            HeaderTemplate = new ButtonGridHeaderTemplate(buttonName, onClientClick);
            ItemTemplate = template;
            _columnWidth = columnWidth;
            ItemStyle.Width = Unit.Pixel(_columnWidth);
            HeaderStyle.Width = Unit.Pixel(_columnWidth);
            HeaderStyle.Wrap = false;
            ItemStyle.HorizontalAlign = HorizontalAlign.Right;
            HeaderStyle.HorizontalAlign = HorizontalAlign.Right;
            ItemStyle.Wrap = false;
            HeaderText = buttonName;
        }

        public override string EvaluateFilterExpression()
        {
            string expression = base.EvaluateFilterExpression();
            return expression.Replace("$", "").Replace(",", "");
        }

        public override GridColumn Clone()
        {
            GridCurrencyColumn<T> res = new GridCurrencyColumn<T>(_buttonName, DataField, _columnWidth, _javascript, null);
            res.CopyBaseProperties(this);
            return res;
        }
    }
i have converted data using {0:C} so that i am able to view data with $ in GridMoneyItemTemplate.


//ExportCellFormatting funtion for grid
static void Grid_ExportCellFormatting(object sender, ExportCellFormattingEventArgs e)
        {
     
            if (e.FormattedColumn.ColumnType.IndexOf(GridCurrencyColumnName) > -1)
            {
               
                e.Cell.Style["mso-number-format"] = "currency";
            }
}


but in excel i am not getting data in currency format.
moreover i am not getting  e.cell.text in ExportCellFormatting funtion
Shinu
Top achievements
Rank 2
 answered on 15 Feb 2013
2 answers
202 views
Hi,

I have a RadPanelBar that uses an ItemTemplate.  Inside of this ItemTemplate I have a radMenu which has an ItemTemplate of its own containing a checkboxlist and a radbutton.  I am dynamically populating the checkboxlist, and have found that if the checkboxlist contains several items, it causes the menu to be larger than the panelbaritem that contains it.  When this happens, the radmenu is cut off by the next panelbaritem.  I have seen several tips about setting z-index but nothing seems to work.  I have tried setting the z-index on the radmenu, the radmenuitem (via a cssclass), and I have tried wrapping my inner template with a div with the z-index set to a high value.  I have also tried using the mouseover client event to set the menu z-index.  None of these have any affect.    Below is some sample code.  If you set the checkboxlist to contain several items the problem should occur.  Any suggestions would be greatly appreciated.

Thanks!
Richard
<telerik:RadPanelBar runat="server" ID="pbPanelBar" Width="100%" Skin="Office2007"
                                    AllowCollapseAllItems="true"
                                    ExpandMode="MultipleExpandedItems" >
                                    <ItemTemplate>
                                        <telerik:RadAjaxPanel ID="RadAjaxPanel2" runat="server" LoadingPanelID="LoadingPanel1">
                                            <telerik:RadMenu ID="MyMenu" runat="server" Style="float: right" EnableScreenBoundaryDetection="true"
                                                EnableRoundedCorners="true">
                                                <Items>
                                                    <telerik:RadMenuItem Text="Copy" GroupSettings-ExpandDirection="Left">
                                                        <Items>
                                                            <telerik:RadMenuItem Text="Copy" GroupSettings-ExpandDirection="Left">
                                                                <ItemTemplate>
                                                                    <div style="z-index:5000000003">
                                                                    <asp:CheckBoxList runat="server" ID="cblList" Width="300px">
                                                                    </asp:CheckBoxList>
                                                                    <telerik:RadButton style="z-index:inherit" ID="btnButton1"
                                                                        runat="server" Text="Test Button" />
                                                                    </div>
                                                                </ItemTemplate>
                                                            </telerik:RadMenuItem>
                                                        </Items>
                                                    </telerik:RadMenuItem>
                                                </Items>
                                            </telerik:RadMenu>
</telerik:RadAjaxPanel>
</ItemTemplate>
</RadPanelBar>
Richard
Top achievements
Rank 1
 answered on 15 Feb 2013
2 answers
126 views
hi,
i created of the web page with the telerik objects. Now i tested this page with the service Markup Validation Service from this site: http://validator.w3.org/#validate_by_uri and i've the errors this page from objects telerik.

Now i posted this error:
Validation Output: 14 Errors
Line 221, Column 59: document type does not allow element "div" here; missing one of "object", "applet", "map", "iframe", "button", "ins", "del" start-tag <div id="RadWindowProfiledelete_C" style="display:none;">
✉
The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous element.
One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>").
Line 291, Column 57: document type does not allow element "div" here; missing one of "object", "applet", "map", "iframe", "button", "ins", "del" start-tag <div id="RadWindowLoadprofile_C" style="display:none;">
✉
The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous element.
One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>").
Line 295, Column 54: document type does not allow element "div" here; missing one of "object", "applet", "map", "iframe", "button", "ins", "del" start-tag <div id="RadWindowLoadcard_C" style="display:none;">
✉
The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous element.
One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>").
Line 299, Column 60: document type does not allow element "div" here; missing one of "object", "applet", "map", "iframe", "button", "ins", "del" start-tag <div id="RadWindowInsertCategory_C" style="display:none;">
✉
The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous element.
One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>").
Line 303, Column 55: document type does not allow element "div" here; missing one of "object", "applet", "map", "iframe", "button", "ins", "del" start-tag <div id="RadWindowChangepwd_C" style="display:none;">
✉
The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous element.
One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>").
Line 345, Column 62: document type does not allow element "div" here; missing one of "object", "applet", "map", "iframe", "button", "ins", "del" start-tag <div id="RadWindowAnteprimaProfile_C" style="display:none;">
✉
The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous element.
One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>").
Line 349, Column 59: document type does not allow element "div" here; missing one of "object", "applet", "map", "iframe", "button", "ins", "del" start-tag <div id="RadWindowAnteprimaCard_C" style="display:none;">
✉
The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous element.
One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>").
Line 353, Column 52: document type does not allow element "div" here; missing one of "object", "applet", "map", "iframe", "button", "ins", "del" start-tag <div id="RadWindowinvito_C" style="display:none;">
✉
The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous element.
One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>").
Line 525, Column 90: document type does not allow element "table" here; missing one of "object", "applet", "map", "iframe", "button", "ins", "del" start-tag… summary="combobox" style="border-width:0;border-collapse:collapse;width:100%">
✉
The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous element.
One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>").
Line 531, Column 49: document type does not allow element "div" here; missing one of "object", "applet", "map", "iframe", "button", "ins", "del" start-tag…class="rcbSlide" style="z-index:6000;"><div id="Categoria_DropDown" class="Rad…
✉
The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous element.
One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>").
Line 539, Column 90: document type does not allow element "table" here; missing one of "object", "applet", "map", "iframe", "button", "ins", "del" start-tag… summary="combobox" style="border-width:0;border-collapse:collapse;width:100%">
✉
The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous element.
One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>").
Line 545, Column 49: document type does not allow element "div" here; missing one of "object", "applet", "map", "iframe", "button", "ins", "del" start-tag…class="rcbSlide" style="z-index:6000;"><div id="Radclassificazione_DropDown" c…
✉
The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous element.
One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>").
Line 551, Column 90: document type does not allow element "table" here; missing one of "object", "applet", "map", "iframe", "button", "ins", "del" start-tag… summary="combobox" style="border-width:0;border-collapse:collapse;width:100%">
✉
The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous element.
One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>").
Line 557, Column 49: document type does not allow element "div" here; missing one of "object", "applet", "map", "iframe", "button", "ins", "del" start-tag…class="rcbSlide" style="z-index:6000;"><div id="Comune_DropDown" class="RadCom…
✉
The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous element.
One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>").

this is page www.trycontact.com/profile.aspx

please help me to understand and resolve these errors.

thanks
Fabio Cirillo
Top achievements
Rank 1
 answered on 15 Feb 2013
7 answers
277 views
Hi,

I'm using the DayRender event to set styles for holidays and weekends on a radDatePicker containing a calendar with autopostback = true. I've then used AjaxManager to cause the DayRender to fire when the fast-navigation 'next month' button is clicked on the calendar.

The problem I get is that the Ajax postback appear to fire but the calendar control (month view) disappears and the user has to click the calendar button on the datepicker again to bring it back. It does however display the next month which is what i needed. I need to stop the calendar hiding itself.

Any idea how I could fix or work around this?

Many Thanks
Mark
Peter
Top achievements
Rank 1
 answered on 14 Feb 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
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?