Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
162 views
I'm using the example found here (http://www.telerik.com/community/code-library/aspnet-ajax/calendar/disabling-calendar-days.aspx) which shows how to use both the server-side and client-side dayrender events to disable weekends.

Seemed easy enough, but I can't figure out why when the clientevent triggers, args.Date is null.

Here is my code....
<script type="text/javascript">  
     // necessary to disable the weekends on client-side navigation  
     function OnDayRender(calendarInstance, args) {  
          
 
         // convert the date-triplet to a javascript date  
         // we need Date.getDay() method to determine   
         // which days should be disabled (e.g. every Saturday (day = 6) and Sunday (day = 0))                  
         var jsDate = new Date(args.Date[0], args.Date[1] - 1, args.Date[2]);  
         if (jsDate.getDay() == 0 || jsDate.getDay() == 6) {  
             var otherMonthCssClass = "otherMonth_" + calendarInstance.Skin;  
             args.Cell.className = otherMonthCssClass;  
             // replace the default cell content (anchor tag) with a span element   
             // that contains the processed calendar day number -- necessary for the calendar skinning mechanism   
             args.Cell.innerHTML = "<span>" + args.Date[2] + "</span>";  
             // disable selection and hover effect for the cell  
             args.Cell.DayId = "";  
         }  
     }  
            </script> 
 
 
<telerik:RadDatePicker runat="server" ID="datepickShipDate" Skin="Vista" Width="80px">  
                <Calendar ID="calShipDate" runat="server" Skin="Vista" ShowRowHeaders="false" BorderColor="SteelBlue" 
                    BorderStyle="Solid" BorderWidth="1px" DisabledDayStyle-ForeColor="Gray" OnDayRender="calShipDate_OnDayRender">  
                    <ClientEvents OnDayRender="OnDayRender"  /> 
                    </Calendar> 
                <DateInput ID="diShipDate" runat="server" onclick="showDatePicker(this)" /> 
                <DatePopupButton Visible="false" /> 
                  
            </telerik:RadDatePicker> 
 
 
Debbie
Top achievements
Rank 1
 answered on 30 Jan 2009
3 answers
599 views
Hi

I am using  RadTextBox and a regular asp.net button with a form
decorator on the page set to use the skin 'black' .  (I did not find a
RadButton in the kit) . I need to modify the Text color to match the
website's colors, but I can't seem to achieve it.

I have tried setting via an inline style and using the button's dialog box,
separately and together, but to no effect. It is resolutely grey/white..
<asp:Button ID="WineList" runat="server" Text="Search" style="color:#A49261" ForeColor="#A49261" /> 

With this forum's help I have managed to do it for the RadMenu, RadPanel,
and RadTextBox but this one - no joy. What is the trick here?

When I have all the colors nicely tuned up, I will make an alternative black-gold
skin.

Thanks for help!

Clive
Daniel
Telerik team
 answered on 30 Jan 2009
2 answers
193 views
Hello everyone!!!!  I need some help

I'm starting in the Telerik world and i have to build a small app that will work with ActiveDirecory.

Googling i found that Telerik has a Telerik.Security.dll file that has some special classes to handle and manage AD related issues.

Where is that .dll?
I have searched and only i found that topics related to that dll are found in the Sitefinity page.

So, do i have to buy sitefinity to use Telerik.Security.dll?


Thank you for your help!


Sergio Cortez
Top achievements
Rank 2
 answered on 30 Jan 2009
1 answer
194 views
Hi,

I have opened RADWindow with specific window size now that page is longer so it is shwoing me scrollbars i.e. ok lets say this is Window1.
Now I am opening another RADWindow (name it Window2) from my already opened window i.e. Window1.
Thing is when I close Window2, scrollbars from Window1 disappeared !
I cannot even scroll down with my arrow or pagedown keys !

Help me out.

Thanks,
Divyesh
Fiko
Telerik team
 answered on 30 Jan 2009
7 answers
255 views
Hi team

I would like to do the following functionality using java script code:
1- stop rotator .
2- resume.
3- resume in another direction

for item
1- I use the the pause() or stop API function.
2- I use the resume() API function

but for the 3rd one  I do the following

change the direction using set_ScrollDirection()

then  if I call the API Resume() function , It did not change the direction but just resume the animation

if I call the API MoveNext(dir)  function or startAutoPlay() It works  fine but It resume from the next item or from the first one.

What I  need is resume the animation in the other direction without any frame shifting like any news bar.

Remarks:
  1. I'm using rad controls for asp.net ajax.
  2. .net framework 3.5
  3. IE as web browser
  4. windows vista as an operating system

thanks in advance


Georgi Tunev
Telerik team
 answered on 30 Jan 2009
1 answer
56 views
Is it possible to have two maximise/minimise commands on the Dock title bar and two expanding/contracting Dock bodies below?
Nikolay Raykov
Telerik team
 answered on 30 Jan 2009
1 answer
65 views
I have seen the demo http://demos.telerik.com/aspnet-ajax/grid/examples/programming/selectedvalue/defaultcs.aspx but I was wondering how to relate the grids so the second grid updates in the need datasource. Right now, I have tried to hook into RadGrid1.SelectedIndexChanged event to call RadGrid2.databind after I get the IDNT from grid one. But

RadGrid2.NeedDataSource never fires. Thanks for any help.

Henry Derstine
Top achievements
Rank 1
 answered on 30 Jan 2009
5 answers
82 views
Hi,

1) Taking this example : http://demos.telerik.com/aspnet-ajax/Editor/Examples/Default/DefaultCS.aspx
- Select one part of the text ('is the successor' for example)
- Apply 'Red Text' style
- Apply 'div' style

You can see that 'is the successor' is still with the 'Red Text' style (and therefore not the 'div' one).

Is it a normal behaviour ?

2) About the localisation of the word 'ApplyClass', using RadEditor.Tools.fr-FR.resx. If my translation of ApplyClass is 'Formater' the Editor behavior is ok on page load. However if you click inside the Editor, 'Formater' is replace by 'ApplyClass'.
How can I handle that ?

Thank you
arnaud
Top achievements
Rank 1
 answered on 30 Jan 2009
1 answer
129 views
http://demos.telerik.com/aspnet-ajax/Controls/Examples/Integration/GridInCombobox/DefaultCS.aspx?product=grid

I looked at the example and got a multi select combo box working really great ..But now the client was a fast find (like google search)..There are around 200 item in the grid..Now as client  are starting to type, they wanting google search feature.. Every key he/she press I don't want limit my collection on the server side..So is there a way of binding of something on the clint side...
Oh ya ..I triied the masterTableView.filter("Name",Combo.get_text(),Telerik.UI....StartWith) which I did see in the documentation, but when I use this my grid comes up blank..So please suggest me ?Please remember My grid is inside a comboBox..

Thnaks,
DIP
Sebastian
Telerik team
 answered on 30 Jan 2009
1 answer
189 views
I am relatively new to AJAX and would like to ask if there are any examples in the Telerik resources that would demonstrate how to send text to a panel on the MasterPage.

Here is how I visualize it.

The RadGrid is using a ScriptManager and UpdatePanel to AJAX'ify the grid to not page refresh when the user goes into Edit mode using a UserDefined template. (not a web control).  This works fine.

I want to at that point tap into an AJAX event to send helpful information to the MasterPage's AJAX panel to give the user feedback. 

As in example, on the site I am building the site displays Food Menu Items on a restaurant's online menu using 3 levels of GridTableViews (two nested).

The user can INSERT Food Categories using the built in EditForms type of editing, (first or grandparent band) and as they do I would for instance want to display a message stating, "The new Food Category will not display until you insert or edit an existing Food Menu Item and assign the new Food Category to that item".

Can someone offer a link on this site to get me started?

Thanks
Sebastian
Telerik team
 answered on 30 Jan 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?