Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
478 views
Hi,

I want to disable all dates in my datepicker control except the first and the last date of the month.

I tried this code but this does not help:

protected void Calendar_OnDayRender(object sender, Telerik.Web.UI.Calendar.DayRenderEventArgs e)
        {
            DateTime dt = e.Day.Date;
            DateTime dtFirst = new DateTime(dt.Year, dt.Month, 1);
            DateTime dtLast = new DateTime(dt.Year, dt.Month, 1).AddMonths(1).AddDays(-1);

            if (e.Day.Date != dtFirst.Date)
            {
                RadCalendarDay calendarDay = new RadCalendarDay();
                calendarDay.Date = e.Day.Date;
                calendarDay.IsSelectable = false;
                rdpBeginDate.Calendar.SpecialDays.Add(calendarDay);
            }
        } 

aspx:

<telerik:RadDatePicker ID="rdpBeginDate" runat="server">
                        <Calendar UseRowHeadersAsSelectors="False" UseColumnHeadersAsSelectors="False" ViewSelectorText="x"
                            runat="server" OnDayRender="Calendar_OnDayRender">
                           
                        </Calendar>
                        <DatePopupButton ImageUrl="" HoverImageUrl=""></DatePopupButton>
                        <DateInput EnableEmbeddedSkins="false" Enabled="false">
                        </DateInput>
                    </telerik:RadDatePicker>

Please help.
Richard
Top achievements
Rank 1
 answered on 24 Jan 2012
3 answers
111 views
Hi,

I have a requirement where I have a RadDock with 2 zones.
I want to load all docks on it initially and then set for each container its own refresh time.
For example dock A will refresh in 5 minutes. Dock B will refresh in 20 minutes.
I want to do this with no postback - everything updates seamlessly. How do I do this?

Note: I have the latest 2011 telerik version.


Update: I have tried using webservice and javascript to populate the docks but found a problem.
The types controls within my docks are TagCloud, Graph and Treeview. I found that if I use webservice and javascript
I can't populate my tag cloud because I have to bind it as a RadTagCloudItem.


Thank you so much,
C
Slav
Telerik team
 answered on 24 Jan 2012
1 answer
109 views
In rad editor, if i click  cut,copy and paste image buttons it shows please click ctrl + x for cut etc.. Please help me, Suppose i click  cut image button the selected text must be cut. what i do for it?
Rumen
Telerik team
 answered on 24 Jan 2012
5 answers
125 views
I have two radrotators, a horizontal scroller with 4 images at the bottom, and a single 'main' image radrotator at the top. I have it set up to display the disappearing item in the bottom scroller to the main image section as it moves forward. Is it possible to have the main image radrotator change based on the index of the lower one while still using the 'slide show' or 'automatic advance' rotator type? Or running two rotators off the same timer would help. After a couple minutes they get out of sync. I set both rotators to have the same scrollduration and frameduration. If this is possible, can you please offer a sample. Thanks!
Slav
Telerik team
 answered on 24 Jan 2012
1 answer
54 views
How to select the today column in week view? As I can see, there isn't a class that would select it.
Peter
Telerik team
 answered on 24 Jan 2012
3 answers
92 views
Hi all,
        I am new to rad controls ,I would Like to add rad editor to SharePoint Display form (DispForm.aspx ) , Because I am using visual webpart  and saving the data using "Rad Editor" to SharePoint list to one of the list item  "Rich Text-box" .I mapped rad editor data to save in "Rich text-box" .Here the stored data of "Rich text-box"  font style and  spaces in paragraphs is getting lot of changes when saving from rad editor. 

Thanks,
MOHAMMAD SIDDIQALI
Rumen
Telerik team
 answered on 24 Jan 2012
1 answer
95 views
Currently, my RadChart's datasource receives what a method returns (a request LINQ to SQL). What i return is more precisely
a list of objects...

I would like to display underneath the X Axis a field of this objet ( a name for instance )

How is it possible to chose between the fields of an object those i want to use for my histogram

Thanks in advance for your help


PS: what i'm looking for looks a bit like this :
http://demos.telerik.com/aspnet-ajax/controls/examples/integration/chartandtooltip/defaultcs.aspx?product=chart


Evgenia
Telerik team
 answered on 24 Jan 2012
1 answer
108 views
I have noticed when using the Hyperlink Manger to create links in the RadEditor, that if you only enter 1 word in the Tooltip field, that the rendered HTML does not include either single or double quotes around the text for the title parameter in the anchor tag. However, if you enter multiple words it does include double quotes.

Likewise, it does the same thing in the target field.

Adding links produces the following HTML in the editor control for single and multiple words:

<A title=MSN href="http://www.msn.com" target=_blank>MSN</A><BR>
<A title="MSN WEB SITE" href="http://www.msn.com" target=_blank>MSN Web Site<BR></A>

The problem I am having is that when trying to render these anchors in an HtmlTextBox in the ReportViewer control, it complains about the missing quotes giving the following error message:

An error has occurred while processing HtmlTextBox 'txtBestDomainPractice': 'MSN' is an unexpected token. The expected token is '"' or '''. Line 1, position 122.

It does this for the title field if they are missing there, or for the target field if the title field has quotes.

Is there a workaround or known fix for this?
Rumen
Telerik team
 answered on 24 Jan 2012
3 answers
245 views
Hi,
       I need a checkbox for grid grouping.
Regards,
    Aditya
  
Shinu
Top achievements
Rank 2
 answered on 24 Jan 2012
1 answer
152 views
Hello,

I currently have a grid that contains a select column, then all other columns are loaded programmatically during runtime. In my grid I have a "CommandItemTemplate" section where certain buttons are located - one being "Submit". When a user selects rows, and clicks "Submit", I need to retrieve the users selections on server side. 

Using the following code, I can access the data key value, but no other row data. In the example below, "myId" is correct, but the other variables are blank strings. I'm not reloading the grid on this postback, although I tried this and the same issue occurred.  I tried reloading my grid on page_init and page_load - both times I still cannot access my row data. Any suggestions?

foreach (GridDataItem item in this.grdSummary.SelectedItems)
{
    string myID = item.GetDataKeyValue("UidInt").ToString();
    string myOplockColumn = item["opLock"].Text;
    string myOrderColumn = item["order"].Text;
}

** One more thing, the "Submit" button opens a confirmation box (RadWindow) which then causes an ajax request if the user clicks "OK". Clicking "OK" calls "SetSubmitConfirmation". The button click does not fire an "ItemCommand" event, but instead, an ajax request passing an argument - InitiateAsyncRequest 


function InitiateAsyncRequest(argument) {
    var ajaxManager = $find("<%= RadAjaxManager1.ClientID %>");
    ajaxManager.ajaxRequest(argument);
    return false;
}
 
function SetSubmitConfirmation(comment) {
    document.getElementById('<%=hdnComment.ClientID %>').value = comment;
    InitiateAsyncRequest('submit');
}


Jayesh Goyani
Top achievements
Rank 2
 answered on 24 Jan 2012
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?