Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
371 views
Hello, i have the following css class that has worked for almost every ASP.NET control i have worked with.  it is used with the HighlighCssClass of validatorcalloutextender (see below).  All it does is outline the field in red that are not valid, it does not work with the radtimepicker, and thoughts on how to get this to work??  I tried putting the same style on just the endTimeInput part, that does what i want, but when i point the requiredfieldvalidator to the DateInput of endTimeInput it errors and cant find the control, but this is the part of the control i want outlined in red.  thanks

.ValidatorCallout
{
    border:solid;
    border-color:#FF0000;
    border-width:2px;
}

<telerik:RadTimePicker ID="rad_TimeEnds" runat="server" Width="85px">
            <TimeView ID="TimeView2" runat="server" StartTime="9:0:0" EndTime="22:31:00" Interval="0:30:0" Columns="5" TimeFormat="HH:mm" Culture="en-US"></TimeView>
            <DateInput ID="endTimeInput" runat="server" DateFormat="HH:mm" Culture="en-US"></DateInput>
            <DatePopupButton Visible="False"></DatePopupButton>
        </telerik:RadTimePicker>

<asp:RequiredFieldValidator ID="req_TimeEnds" runat="server" ControlToValidate="rad_TimeEnds" Display="None" ErrorMessage="<B>End Time is required.</B>"></asp:RequiredFieldValidator>
   <ajx:validatorCalloutExtender id="vce_TimeEnds" runat="server" HighlightCssClass="ValidatorCallout" TargetControlID="req_TimeEnds"></ajx:validatorCalloutExtender>
Dimo
Telerik team
 answered on 26 Jun 2008
6 answers
171 views
Hello,
I'm trying to create a line chart using pivot data returned from SQL Server. For example. Column 1 is a Product List and columns 2 - 13 represent each month of the year with a sales figure. Can anyone point me to a demo or sample that demonstrates how to get a line chart from this data.  I haven't gotten anywhere on my own and looking over the live demos application hasn't gotten me anywhere.

I'd like the y axis to be a 1 - 100,000 range and the x axis to represent the months of the year. Then a line representing each of the products. 

I appreciate the help.

Thank you,
Vinny
Giuseppe
Telerik team
 answered on 26 Jun 2008
1 answer
165 views
I have a RadMenu that exists in a MasterPage. The master page adds a client event handler to the OnClientItemClicking event. Here's the code:

    <script type="text/javascript">  
        function PageLoad()  
        {  
            var menu = $find("<%= MasterMenuInner.ClientID %>");  
            menu.add_itemClicking(MenuItemClicking);  
        }  
    </script>      
 

The PageLoad() function is called by the body "onload" event.

The content page also needs to handle the OnClientItemClicking event. Here's the code for that:

        function MenuItemClickingConfirmDelete(sender, args)  
        {    
             var itemValue = args.get_item().get_value();  
             if (itemValue == 'Delete')  
             {  
                if (confirm('Delete this invoice?'))  
                {  
                    args.set_cancel(true);  
                }  
             }  
        }  
 
        function InvoiceListPageLoad()  
        {  
            var menu = $find("<%= Master.MasterMenu.ClientID %>");  
            if (menu)  
            {  
                menu.add_itemClicking(MenuItemClickingConfirmDelete);  
            }  
            else  
            {  
                alert("<%= Master.MasterMenu.ClientID %> not found!");  
            }  
        }      
 

The "InvoiceListPageLoad()" function is also called by the body "onload" event.

So, everything works fine on the initial page load. Both event handlers fire as expected. Great.

The problem starts when the menu (on the master page) is updated. During an AJAX postback, I enable/disable some buttons. The menu is inside an UpdatePanel. The menu updates fine, but all client event handlers are "lost". I guess they are not part of the control state or view state. Obviously the body "onload" event doesn't fire after an AJAX postback.

I tried using the following code to re-register the event handlers after an AJAX postback:

ScriptManager.RegisterStartupScript(this, this.GetType(), "startup", "InvoiceListPageLoad();", true);

Unfortunately, I always get the alert box that says "ctl00_MasterMenuInner not found!"

How do I register a client event handler after an AJAX postback?
Atanas Korchev
Telerik team
 answered on 26 Jun 2008
2 answers
123 views
Dear All,

I am now working with the demo version and checking for the feasibility of the grid in my application.

I want to know the folowing:

1. Can I suppress the filtering menu?
2. Can I implement filtering on cliking enter key in the filter text box or on key press?

Best Regards,
M. J. Jaya Chitra

Jebamalai
Top achievements
Rank 1
 answered on 26 Jun 2008
1 answer
106 views
I'm using RadControls for ASP.NET Q3 2007, and when I look at the provided examples that use icons for edit, update, cancel commands, the application always breaks.

Anyway around that?

Here's the error message:

Server Error in '/NET2' Application. 
Input string was not in a correct format. 
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 
 
Exception Details: System.FormatException: Input string was not in a correct format. 
 
Source Error: 
 
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. 
 
Stack Trace: 
 
[FormatException: Input string was not in a correct format.] 
   System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) +2755599 
   System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) +112 
   System.Web.UI.WebControls.ImageButton.LoadPostData(String postDataKey, NameValueCollection postCollection) +138 
   System.Web.UI.WebControls.ImageButton.System.Web.UI.IPostBackDataHandler.LoadPostData(String postDataKey, NameValueCollection postCollection) +12 
   System.Web.UI.Page.ProcessPostData(NameValueCollection postData, Boolean fBeforeLoad) +661 
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1194 
 
 
Version Information: Microsoft .NET Framework Version:2.0.50727.1433; ASP.NET Version:2.0.50727.1433  

Shinu
Top achievements
Rank 2
 answered on 26 Jun 2008
1 answer
124 views
I have a grid in which i have a static column like this :

<

telerik:GridButtonColumn ButtonType="ImageButton" CommandName="Delete" Text="Supprimer la donn‚e" ConfirmText="D‚sirez-vous supprimer cette donnee ?" ConfirmDialogType="RadWindow" UniqueName="DeleteColumn" ImageUrl="../RadControls/Grid/Skins/Outlook/Delete.Gif">
    <HeaderStyle Width="20px" />
    <ItemStyle HorizontalAlign="Center" />
</telerik:GridButtonColumn>

In this grid I append dynamic column. when I click Delete button, I don't have confirm dialogbox. Do you know why ?

Princy
Top achievements
Rank 2
 answered on 26 Jun 2008
1 answer
100 views
Hi there, 
I had a huge long client script for RadGrid that persists checkboxes and rowselection into HashValues on client RowSelect and RowDeselect. I got the code from a Telerik forum for the old Grid and now that I've upgraded to Prometheus the Code is obosolete. Anybody have some code on how to client side persist Checkboxes and Row Selection for the new Ajax Grid? Or just a real simple way to do this? I basically want to implement a Client Select Column that allows CheckAll UncheckAll and doesn't lose Selection while paging or using AjaxRequests.

Thanks.
Princy
Top achievements
Rank 2
 answered on 26 Jun 2008
3 answers
406 views

Hi,

I have TabStrip with three tabs. When users click on the submit button, I have java script, it will validate all the controls of each tab with in the tabstrip. If anyone of the control does not enter the value my java scrip will popup the alert message.

What I am looking here is, after the pop-up this message it should set the focus to that particular control. I have all RadtextBoxes and Radcombo boxes with in the tabs. Please send me the javascript snippet which should set focus to control (RadTextBox or Radcombo) under the specific tab

Thanks,
Sravan

Kevin Babcock
Top achievements
Rank 1
 answered on 26 Jun 2008
1 answer
127 views

I'm recreating your example on using the Radtolltip in the Scheduler, however  in a DNN module.  Has anyone succeeded with it? If you try it one to one there are 2 problems I encounter:

a) There is an error that the module couldn't load totally. However, the schedule shows.
b) Dim toolTip As AppointmentToolTip ...Will not be recognised as defined.  

Should anyone have tried this and succeeded - I'd be thankful for info's on how you did it.

Karl


andre
Top achievements
Rank 1
 answered on 26 Jun 2008
2 answers
220 views
Hi,

I am using new RadControl ASP.NET for AJAX latest build.

I am testing the RadGrid and having problem.

Here is the scenario.
I do have MasterPage. The ScriptManager is inside masterpage.
I have a page that is using MasterPage.
The page contains a RadGrid and DataSource connect to SQL Server.

The RadGrid allows user to add, modify and delete. The Add / Modify button using RadWindow when its clicked.

when the user clicked "Modify" inside the grid (from one of the row), there will be a window pop up. Once the user update the button, the RadWindow will be closed and the AjaxManager.AjaxRequest('Rebind') is called. The AjaxRequest contains "RadGrid1.Rebind()" command.
Once the AjaxRequest is called, I got the following error:
-------------------------

Value cannot be null.
Parameter name: key

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.ArgumentNullException: Value cannot be null.
Parameter name: key

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[ArgumentNullException: Value cannot be null.
Parameter name: key]
   System.ThrowHelper.ThrowArgumentNullException(ExceptionArgument argument) +41
   System.Collections.Generic.Dictionary`2.FindEntry(TKey key) +2667593
   System.Collections.Generic.Dictionary`2.ContainsKey(TKey key) +4
   Telerik.Web.UI.RadAjaxControl.CreateUpdatePanel(Control initiator, String eventName, Control updated) +582
   Telerik.Web.UI.RadAjaxControl.OnPagePreRender(Object sender, EventArgs e) +1481
   System.EventHandler.Invoke(Object sender, EventArgs e) +0
   System.Web.UI.Control.OnPreRender(EventArgs e) +2117788
   System.Web.UI.Control.PreRenderRecursiveInternal() +86
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2041


Version Information: Microsoft .NET Framework Version:2.0.50727.1433; ASP.NET Version:2.0.50727.1433
----------------------------------

I have double checked the DataKeyValues in the Grid and its there. I dont know what is going on.

I tried so many things to work around it, but unable to do so. I tried using RadAjaxPanel, RadAjaxManager, PostBack when the window closed, etc, but all failed.

In summary,
- The page contains MasterPage that have ScriptManager
- The page contains RadGrid that will popup RadWindow.
- I have followed the sample from LiveDemo but failed as well.

Anyone can help me out ?

Thanks.
Susanto
Top achievements
Rank 1
 answered on 25 Jun 2008
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?