Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
148 views
I've been trying to follow the example given here but i kept getting the error that AppointmentToolTip wasn't defined. I started looking on the forums and found some alternate examples and i was actually able to see the custom control pop up with this route that i took...problem is i get a "Input string was not in a correct format" error. Heres my current code or if you can tell me why the telerik example is not working that would be fine too.
    Public Sub RadCal_AppointmentCreated(ByVal sender As ObjectByVal e As Telerik.Web.UI.AppointmentCreatedEventArgs) Handles RadCal.AppointmentCreated 
        Dim clientID As String = e.Appointment.ClientID 
        Me.RadToolTipManager1.TargetControls.Add(clientID, e.Appointment.ID.ToString(), True
    End Sub 
 
    Public Sub RadToolTipManager1_AjaxUpdate(ByVal sender As ObjectByVal e As Telerik.Web.UI.ToolTipUpdateEventArgs) Handles RadToolTipManager1.AjaxUpdate 
        Dim apt As Appointment = RadCal.Appointments.FindByID(Int32.Parse(e.Value)) 
        Dim ctlTooltip As Control = LoadControl("Controls/AppointmentToolTip.ascx"
        Dim lblJobName As Label = DirectCast(ctlTooltip.FindControl("lblJobName"), Label) 
        lblJobName.Text = apt.ID.ToString 
        e.UpdatePanel.ContentTemplateContainer.Controls.Add(ctlTooltip) 
    End Sub 

                <telerik:RadToolTipManager runat="server" ID="RadToolTipManager1" Width="320" Height="170" 
                            OnAjaxUpdate="RadToolTipManager1_AjaxUpdate" AutoTooltipify = "true"  
               ShowEvent="OnRightClick" 
               ManualClose="true" 
               Modal="true" /> 

                <telerik:RadToolTipManager runat="server" ID="RadToolTipManager1" Width="320" Height="170" 
                            OnAjaxUpdate="RadToolTipManager1_AjaxUpdate" AutoTooltipify = "true"  
               ShowEvent="OnRightClick" 
               ManualClose="true" 
               Modal="true" /> 


Ben
Top achievements
Rank 1
 answered on 19 Jan 2009
2 answers
197 views
I have a prior installation of Telerik RadControls for ASP.NET Q2 2007. Recently, we upgraded to RadControls for ASPNET AJAX Q3 2008. After this, I noticed that several of my Radgrids lost the previously applied formatting. Since reapplying the formatting for each individual grid was not a viable option, I specificaly referenced the older version of the Radgrid dll and set the Specific Version required to true. The app is running perfectly fine on  my local machine. But when I build and deploy it to the dev server I get the following Compilation error:
Could someone please help me with this?

Compilation Error

Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

Compiler Error Message: CS0012: The type 'System.Web.UI.ScriptManager' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.

Source Error:

Line 282:        
Line 283:        [System.Diagnostics.DebuggerNonUserCodeAttribute()]
Line 284: private global::Telerik.Web.UI.RadScriptManager @__BuildControlrsmSKU() {Line 285:            global::Telerik.Web.UI.RadScriptManager @__ctrl;
Line 286:            


Thanks,
Sreejath
drinell
Top achievements
Rank 1
 answered on 19 Jan 2009
3 answers
87 views
Hi Telerik,
                I am in timeline view.

                Each timeslot duration is of fifteen minutes. I want to show column header time for complete hours and not for every timeslot.     
                So, four timeslots making a complete hour will have one column header, denoting the hour.

                Furthermore, what is the function of timelabelspan? How do i set it?
Peter
Telerik team
 answered on 19 Jan 2009
1 answer
236 views
I want to use paging in my radGrid but at the same time resize the grid to 100% height in my browser or div.
A bit like this example: http://demos.telerik.com/aspnet-ajax/Grid/Examples/Programming/CustomizingPager/DefaultCS.aspx but I want the page size to be variable and be based on the containers height and how many objects it can fit in the grid when maximized.
For example if the height is big then the grid would hold 100 objects per page and if I resize it smaller it could only hold 10 objects. And all this is controlled automatically and programatically.
How can I solve this?

Dimo
Telerik team
 answered on 19 Jan 2009
1 answer
175 views
Hi All,

Is it possible using RadGrid control to create it dynamically along with GridColumn or atleast to create the GridColumn dynamically at runtime in the client side and then do the databind?

Thanks and regards
Sundar
Sebastian
Telerik team
 answered on 19 Jan 2009
3 answers
177 views

OK.  I'm using a MasterPage setup, where I have a RFD in the masterpage applied to the div that contains my content placeholder...

Materpage snippet:

<telerik:RadFormDecorator ID="RFDContent" runat="server" DecorationZoneID="content">  
    </telerik:RadFormDecorator> 
 
<div id="content">  
        <asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server">  
        </asp:ContentPlaceHolder> 
    </div> 


Nothing out of the ordinary there as far as I know.  However, in my content pages, I'm using CSSClasses to format text on the pages.  Everything works fine and the RFD does its job on the controls, however, I need to be able to control the color of the text on controls the RFD is decorating: radiobuttons and checkboxes in particular. 

From what I've read, I thought that the RFD was supposed to let you specify a CSSClass on a decorated object?  Is this true?  Currently, the behavior I'm getting is that the controls in question, with a CSSClass set, load initially correctly, but once the page completes loading, their text values (which is all that the CSSClass changes) default back to the color of that RFD's selected skin.  Yes, I'm using themes to specify skins on all telerik controls that I'm using for consistency across the app, RFD included.

So, I guess the question is, is it possible to use the default skins for RFD, but still control the text colors through CSS on decorated controls in a masterpage scenario?

I hope this makes sense.  Any reply or insight would be appreciate, as I need to get this functioning properly ASAP.  Thanks.

Marty
Georgi Tunev
Telerik team
 answered on 19 Jan 2009
1 answer
227 views
Hello,

I have one page suppose Test.aspx  in which I have used 6 Iframe.in each IFrame I have one Page (each page is showing either Chart or Radgrid).
       See One Of IFrame has page(Suppose Home.aspx) through which RadGrid is Binded,I have one of column of RadGrid is LinkButton,In LinnkButton Click I am opening one RadWindow, Everything is fine till this point,My Popup has one button Update on Update Button I have called Javascript in script I called  above function.

GetRadWindow().BrowserWindow.CallBackDisFunctionDept(status);
      Due to this function This opened Radwindow is closed Automatically and Called CallBackDisFunctionDept function  which is written under Test.aspx   page On that function I am calling Button Click button due to call that Button Click function that Text.aspx page is refreshed and all the IFrame in that page is also refreshed .

 But I don't want that It should work like that,I want to Refresh only that IFrame through whose Linkbutton Radwindow was opened.
But At this Time Whole Page is going to refresh.I am not able to postback  to only that page Home.aspx from Radwindow..It does not working.

Hope I'll get Solutions soon.

Thanks

Georgi Tunev
Telerik team
 answered on 19 Jan 2009
2 answers
221 views
Hello,
I'm trying export data from grid to excel. It works but a field "bank account" (eg. 12345678901234567890123456) in excel: 1.23E....
So, I don't see account number.
How can I resolve this problem?
My code:
        radgrid.CurrentPageIndex = 0; 
        radgrid.ExportSettings.ExportOnlyData = true
        radgrid.ExportSettings.IgnorePaging = true
        radgrid.ExportSettings.OpenInNewWindow = true
        radgrid.ExportSettings.FileName = "Export"
Grid's columns are declarative from xml.
Bob
Top achievements
Rank 1
 answered on 19 Jan 2009
1 answer
110 views
Hi,
I get the following error after having updated the scripts and dll's some 3 days back. (q2 2008), which was upgraded from q2 2006 .
This would happen of course a few days prior to delivery to client,..so it is kinda urgent.

Initially I had upgraded q2 2006 to q2 2008, and it was running. I then updated the website with the latest scripts and dll's, as i needed to use the new ExportToPDF functionality.
And, Error:..................

"Cannot find a string resource with key 'ClearClass' in App_GlobalResources/RadEditor.Main.resx. Please, make sure that your custom localization has all needed resource strings,".....+ copy all from original etc

Well,
1)   I never had anything called "ClearClass"...???
2)  I copied all  the original localization resources from my installation folder to App_GlobalResources, in the website.
3)  This site has the updated Telerik.Web.Ui.dll, in the bin folder along with all the old dll's per each and every used control in the site.
No Luck, still same error.
and
I recreated the same screen in a stand alone web site project, ..only referencing  the new Telerik.Web.Ui.dll, no RadControls folder, no toolsfile or versions of it, Has the App_GlobalResources of course, and this ran successfully.
I tried removing Editor folder etc from the Rad_Controls folder and removing the Editor.dll from the bin...still no success.

The stack trace ..
[InvalidOperationException: Cannot find a string resource with key 'ClearClass' in App_GlobalResources/RadEditor.Main.resx. Please, make sure that your custom localization has all needed resource strings, or copy the original localization resources from your installation folder to App_GlobalResources.]
   Telerik.Web.LocalizationStrings.GetString(String key) +349
   Telerik.Web.UI.Editor.MainStrings.get_ClearClass() +30
   Telerik.Web.UI.RadEditor.DescribeComponent(ScriptComponentDescriptor descriptor) +1227
   Telerik.Web.UI.RadWebControl.Telerik.Web.IControl.DescribeComponent(ScriptComponentDescriptor descriptor) +31
   Telerik.Web.UI.ScriptRegistrar.GetScriptDescriptors(Control control) +162
   Telerik.Web.UI.ScriptRegistrar.GetScriptDescriptors(WebControl control) +25
   Telerik.Web.UI.RadWebControl.GetScriptDescriptors() +24

IS it a GAC caching issue possibly or old references to the editor dll,(it has no refresh),..I did replace the controls n the form from the new tools in the toolbox, (used the zip file to get q2 2008 as opposed to the self reg exe),  or a control mixing issue (only the Page with The Editor in it has issues, rest of the site is fine.)

Thanks
Neal




Rumen
Telerik team
 answered on 19 Jan 2009
1 answer
460 views
I have two RadDatePickers on a page. They look like this:

<rad:RadDatePicker ID="RadDatePicker1" runat="server" SkinID="sknRadDatePicker">
  <ClientEvents OnDateSelected="OnDateSelected"></ClientEvents>
</rad:RadDatePicker>

<rad:RadDatePicker ID="RadDatePicker2" runat="server" SkinID="sknRadDatePicker">
</rad:RadDatePicker>


Their skin is this:

<rad:RadDatePicker SkinId="sknRadDatePicker" Calendar-Skin="Web20" DateInput-Skin="WebBlue" DateInput-ForeColor="#666666" DateInput-Font-Names="Arial" DateInput-Font-Size="9" DatePopupButton-CssClass="RadDatePicker_padding" Width="101px" runat="server" />

As you can see the Calendar-Skin is set to "Web20" skin...

Now i have a Client Side script that executes when a date is selected on the first RadDatePicker. Here it is:

<rad:RadCodeBlock ID="RadCodeBlock1" runat="server">
    <script language="JavaScript" type="text/javascript">
        function OnDateSelected(sender, e)
        {      
            var RadDatePicker1 = $find("<%= RadDatePicker1.ClientID %>");   
            var RadDatePicker2 = $find("<%= RadDatePicker2.ClientID%>");
            
            var SelectedDate = RadDatePicker1.get_selectedDate();
            if (RadDatePicker1.isEmpty())
                SelectedDate = new Date();        

            SelectedDate.setDate(SelectedDate.getDate() + 1);
            
            var SelectedDate2 = RadDatePicker2.get_selectedDate();
            SelectedDate2.setDate(SelectedDate2.getDate());
            
            RadDatePicker2.set_minDate(SelectedDate);            
            
            if (SelectedDate2 <= SelectedDate)
            {
                RadDatePicker2.set_selectedDate(SelectedDate);
            }                
            
            RadDatePicker2.togglePopup();
            
        }
    </script>
</rad:RadCodeBlock>

What i would like to do is "highlight" the day on the calendar with the Web20 rcToday css class. The idea being that i want RadDatePicker2 to show RadDatePicker1's selected date in orange on the calendar... I would like to do this via Client Side Script...

Two things i can not figure out that is stopping me for making this happen:

1) I can not figure out how to fire the onDayRender ClientSide event for the RadDatePicker (Not RadCalendar)... I have been reading this article: http://www.telerik.com/help/aspnet-ajax/calendar_clientsideondayrender.html but it pertains to the Calendar control and not the date picker.

2) I am using SiteFinity and i do not have access to the CSS files for the Web20 skin... I can not figure out how to set a day tot he rcToday css class.... I have tried the foloowing and it does nto work:

                                <rad:RadDatePicker ID="RadDatePicker1" runat="server" SkinID="sknRadDatePicker">
                                    <ClientEvents OnDateSelected="OnDateSelected"></ClientEvents>
                                    <Calendar runat="server">
                                        <SpecialDays>
                                            <rad:RadCalendarDay Date="1/16/2009"  ItemStyle-CssClass="rcToday" />
                                        </SpecialDays>
                                    </Calendar>
                                </rad:RadDatePicker>

This however does work:

                                <rad:RadDatePicker ID="RadDatePicker1" runat="server" SkinID="sknRadDatePicker">
                                    <ClientEvents OnDateSelected="OnDateSelected"></ClientEvents>
                                    <Calendar runat="server">
                                        <SpecialDays>
                                            <rad:RadCalendarDay Date="1/16/2009" ItemStyle-BackColor="Aqua" />
                                        </SpecialDays>
                                        <ClientEvents OnDayRender="RenderADay" />
                                    </Calendar>
                                </rad:RadDatePicker>

So i am not access the skins style correctly for some reason although this is how every example i have found says to do this....

In any case. I do not want to use the <Calendar runat="server"><SpecialDays> block and want to rather fire a clientside event to do the highlighting of the day.

Additionally i will need to Rerender the calendar days each time a date in RadDatePicker1 is selected as my OnDateSelected event will fire and change the date on the calendar i want highlighted...

So please excuse my frustration but i have spent the entire day wasted on this and i am annoyed that there is not much info on this that pertains specifically to the RadDatePicker - not just the RadCalendar... Ontop of if all i refuse to fire off any server side events to do this as this control, combined with the RadAjaxPanel has been causing server exceptions (for whihc i have another post about on this forum) so i have resorted to doing all this ClientSide...

Please..... Please someone help me get this done, some example code would be very much appreciated and i would be eternally grateful!

Duncan






Dimo
Telerik team
 answered on 19 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?