Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
64 views
I am using UpdateValues to get value when adding or updating record. what's the best way to automatically remove heading or trailing space from the user input? 

Thanks.
Henry
Top achievements
Rank 1
 asked on 04 Apr 2012
2 answers
116 views
Hello Teleirk team.
I have a trouble about manipulating RadTimePicker and RadDateTimePicker.
when i set the set_enabled(false) property in javascript code, screen's width and height sizes are borken in IE9.
FF and chrome are fine.

i'm using lastest telerik control 2012 Q1 and HOTFIX patch.


<%@ Page Language="VB" AutoEventWireup="false" CodeBehind="Default.aspx.vb" Inherits="RadControlsWebApp4._Default" %>
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<head runat="server">
    <title></title>
    <telerik:RadStyleSheetManager ID="RadStyleSheetManager1" runat="server" />
</head>
<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
        <Scripts>
            <%--Needed for JavaScript IntelliSense in VS2010--%>
            <%--For VS2008 replace RadScriptManager with ScriptManager--%>
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" />
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js" />
        </Scripts>
    </telerik:RadScriptManager>
    <script type="text/javascript">
        //Put your JavaScript code here.
        function Enable(control) {
            var timePicker = $find("<%= RadTimePickerStartTime.ClientID %>");
            if (control.checked) {
                timePicker.set_enabled(true);
            }
            else {
                timePicker.set_enabled(false);
            }
        }
 
        function EnableDateTime(control) {
            var timePicker = $find("<%= RadDatePickerStartTimeDate.ClientID %>");
            if (control.checked) {
                timePicker.set_enabled(true);
            }
            else {
                timePicker.set_enabled(false);
            }
        }
    </script>
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
    </telerik:RadAjaxManager>
    <telerik:RadTimePicker ID="RadTimePickerStartTime" runat="server">
        <TimeView ID="TimeView1" runat="server" ShowHeader="true" StartTime="08:00:00" Interval="00:30:00"
            EndTime="18:30:00" Columns="4">
        </TimeView>
        <DateInput ID="DateInputStartTime" runat="server" DisplayDateFormat="hh:mm tt" SelectionOnFocus="SelectAll">
        </DateInput>
    </telerik:RadTimePicker>
    <asp:CheckBox runat="server" ID="Enabled" Checked="true" Text="RadTimePicker Enabled"
        onclick="Enable(this);" />
 
    <telerik:RadDatePicker ID="RadDatePickerStartTimeDate" runat="server" EnableEmbeddedSkins="false"
        Calendar-FastNavigationStep="12" Calendar-ShowRowHeaders="false" Width="100%">
        <DateInput ID="DateInputStartTimeDate" runat="server" DateFormat="MM/dd/yyyy" SelectionOnFocus="SelectAll"
            Width="100%" />
    </telerik:RadDatePicker>
 
        <asp:CheckBox runat="server" ID="CheckBox2" Checked="true" Text="RadDateTimePicker Enabled"
        onclick="EnableDateTime(this);" />
    </form>
</body>
</html>
shunman
Top achievements
Rank 1
 answered on 04 Apr 2012
2 answers
64 views
when I click "Add a new record" button in the top left corner to add a new record, the grid automatically jump to last page... could not figure out.

not sure what could be wrong?
Henry
Top achievements
Rank 1
 answered on 04 Apr 2012
1 answer
75 views
Hi,

I'm using a grid object from which I want to drag rows onto a dock panel. So far nothing too complex, thanks to the telerik team support, but I'd like to be able to have my own custom helper as in the ListView example here : http://demos.telerik.com/aspnet-ajax/listview/examples/itemdragdrop/defaultcs.aspx 

I can't find any info on this. I've found some classes like '.rgDrag' or '.rgDragCol' but no success so far.

Does anyone know how to achieve this ? That would be awesome.

Thank in advance guys ;)

Chris
Christophe
Top achievements
Rank 1
 answered on 04 Apr 2012
1 answer
104 views
Hello, I have the screen as per the below example and I would like to handle an event when Child RadTab clicked.
http://mono.telerik.com/TabStrip/Examples/ServerSide/ServerEvents/DefaultCS.aspx

I tried in all the ways, finally found the above link with an example but the above example also not resolved my issue.
Please let me know, if any have idea about how to deal with Child RadTab.Click Event.

Requirement: We are implementing multiple charts loading at page load, due to some charts performance issues. we decided to load the each chart based on respective tab.click event.

But Childradtab.click not allowing me to write an event.

Thanks In Advance,
Rish.    
Rishi
Top achievements
Rank 1
 answered on 03 Apr 2012
0 answers
78 views
Hello,

i have added multiple link buttons in each calendar cell. As we know we can't create click events for the added link button while rendering calendar.i have written code like below:

 foreach (var lstCurrentDayWorkOrder in lstCurrentDayWorkOrders)
            {
                var trOfInnerTable = new TableRow();
                innerTableOfWorkOrderRow.Rows.Add(trOfInnerTable);
                var tdForInnerRow = new TableCell();
                trOfInnerTable.Cells.Add(tdForInnerRow);

                var workOrderLink = new LinkButton { Text = "#" + lstCurrentDayWorkOrder.pm_strWorkOrderNum };
                workOrderLink.Attributes.Add("href", "javascript:void(0);");
                workOrderLink.Style["color"] = "blue";

                tdForInnerRow.Controls.Add(workOrderLink);
            }

Regards,
Kapil Garg
Software Engg.
Kapil
Top achievements
Rank 1
 asked on 03 Apr 2012
16 answers
285 views
Hi,

I've just upgraded to the Q1 2011 release of ASP.NEt Ajax and installed IE9. When the editor loads up it generates the following error in a dialogue box on the screen:

"Error while executing filter MakeURLsAbsolute - TypeError: Unable to get value of the property 'InnerHTML': object is null or undefined."

I do not get this issue with IE8. It looks like a problem specific to IE9.

Any ideas?

Thanks

Tim 
Dobromir
Telerik team
 answered on 03 Apr 2012
0 answers
116 views
I am trying to build master detail grid. This is the sample I checked: http://demos.telerik.com/aspnet-ajax/grid/examples/programming/selectedvalue/defaultcs.aspx 

I am not using sqlserver and would need to do the bindings in the c# code behind, is there any sample/demo for this? say I need to get the select row from the master grid, get the detail records for that row and bind to the detail grid. 

Thanks.
Henry
Top achievements
Rank 1
 asked on 03 Apr 2012
4 answers
99 views
I am just started trying RadControl AJAX. I have questions for the Grid.

1)I am able to use the default add/edit form, now how can I customize the add/edit record form? For example, use dropboxlist? (which need to be populated from a list of value and then the current value is selected), use checkbox?(which should bind to current true/false value for bool type data).

2)how to align filter cell? I am expecting "FilterStyle" property, but not found.

Thanks.
Henry
Top achievements
Rank 1
 answered on 03 Apr 2012
9 answers
525 views
Hi,
I am having problem with RadDatePicker when user manual (types into built in Dateinput box) enter date.

Here is details.

I have RadDatepicker control inside RadGrid EditItemTemplate and uses Shared Calendar:

Design :

 <radG:GridTemplateColumn UniqueName="TemplateColumn" EditFormColumnIndex="1" HeaderText="Date"
                                                                                        DataField="TransactionDate" SortExpression="TransactionDate">
                                                                                        <HeaderStyle Width="110px" HorizontalAlign="Center" />
                                                                                        <ItemTemplate>
                                                                                            <asp:Label runat="server" ID="lbldate" Text='<%# Bind("TransactionDates") %>'></asp:Label>
                                                                                        </ItemTemplate>
                                                                                        <EditItemTemplate>
                                                                                            <radCln:RadDatePicker ID="rdTransactionDate" runat="server" Width="110px" MinDate="1960/1/1"
                                                                                                MaxDate="2099/1/1" Calendar-Skin="Default2006" UseEmbeddedScripts="false">
                                                                                           <DateInput ></DateInput>
                                                                                            </radCln:RadDatePicker>
                                                                                            <asp:CustomValidator ID="cvTransactionDate" runat="server" ClientValidationFunction="CheckDate"
                                                                                                ControlToValidate="rdTransactionDate"></asp:CustomValidator>
                                                                                        </EditItemTemplate>
                                                                                    </radG:GridTemplateColumn>

Code:

Inside Grid ItemCreated event Calendar is assigned to Datepicker.
It works fine when date is change using Calendar but does not work when user type into dateinput box to change the date.
Initially I thought it might be due to Ajax setting ( I might have missed of the related settings) but I have also checked by removing all Ajax Manager setting and tested the situation but it still it did not work.

During my testing I found out following details:

OndateSeleted does not fire when User types the date to change it.
Please let me know if I am missing any settings here because it should fire when
1) User chooses as date from Pop Calendar
2) User types the date to change

I would highly appreciate if you could provide any details to solve this problem.

Thanks





Pavlina
Telerik team
 answered on 03 Apr 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?