Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
932 views
Hi,
I'm using latest version Q2 2011 telerik controls. I'm getting an exception on grid  ItemDataBound event only on edit command. Initial databound and paging, sorting are good.

In my database both fields are datetime.

StartTime                                    EndTime                                            
2011-09-30 00:00:00.000            2011-09-30 15:34:33.203

In the radGrid
Start Time                                     End Time
9/30/2011 12:00:00 AM                9/30/2011 3:34:33 PM

EditMode

="InPlace"

OnNeedDataSource="grdTime_NeedDataSource" (binding the data on server side using EntityFramework)
<Columns>

 <telerik:GridDateTimeColumn DataField="StartTime" HeaderButtonType="TextButton" HeaderText="Start Time" ItemStyle-HorizontalAlign="Left" UniqueName="StartTime" ItemStyle-Width="100px" HeaderStyle-Width="100px" ReadOnly="true" DataType="System.DateTime">

 </telerik:GridDateTimeColumn>

 <telerik:GridDateTimeColumn DataField="EndTime" HeaderButtonType="TextButton" HeaderText="End Time" ItemStyle-HorizontalAlign="Left" UniqueName="EndTime" ItemStyle-Width="100px" HeaderStyle-Width="100px" PickerType="DateTimePicker" DataType="System.DateTime">

 </telerik:GridDateTimeColumn>

</Columns>

Getting the "String was not recognized as a valid DateTime." exception on hitting edit button.

Thanks!

 

Marin
Telerik team
 answered on 04 Nov 2016
1 answer
115 views
How do I get all the items server side in the ListBox as a comma-delimited string without selecting any?
The visitor will sort the items and then save them sorted ....
Eyup
Telerik team
 answered on 04 Nov 2016
5 answers
98 views

Hi,

I have a web service bound scheduler in which click  of a navigation button (previous/next/today) does not update   Scheduler's popup calendar. 

Scheduler shows 10/31/2016 as selected date and on click of next button it navigates to 11/1/2016 .

Scheduler  shows 11/1/2016 7:30 AM - 1/2/2016 5:00 PM, however pop up calendar does not highlight 11/1/2016 as selected date.

How can I match scheduler's selected date with highlighted date  in scheduler's pop up calendar?

Regards,

Prava

 

Anton
Telerik team
 answered on 04 Nov 2016
1 answer
363 views
I came across a performance issue with the RadGrid. I dynamically create buttons for every row in the grid when they are expanded. Every buttons opens up a modal and it doesn't use any information from the grid. My issue is that postback happens and the whole grid is reloaded, even though I add the buttons to RadAjax manager programatically on ItemDataBound and assign them to only update the modal Panel. Has anyone encountered something similar to this? This is hindering my applications performance greatly. Any advice?
Viktor Tachev
Telerik team
 answered on 04 Nov 2016
2 answers
613 views

Has anyone else experienced any issues with using the dialog windows (RadAlert, RadConfirm and RadPrompt).  I have a project that I have been working on where I am using these dialog windows, and even though I have a RadWindowManager on the page in question I keep getting a "d is undefined" error when the following code gets called from Telerik.Web.UI.Window.RadWindowManager.js.

 

window.radalert=

function(e,c,a,b){var d=GetRadWindowManager();

 

 

return d.radalert(e,c,a,b);

 

};

Thanks,
Eric

Alfredo
Top achievements
Rank 1
 answered on 03 Nov 2016
10 answers
865 views
We have a very strange problem, our site is working perfectly fine with RadConfirm/RadAlerts on one server, running Windows 7 and IIS7.5, but when we move the entire site to a Windows Server 2008 with IIS7, and run the site again (in the same webbrowser on the same computer), it will give as a javascript error "radconfirm is not defined" and then simply continue running without getting any confirm.

Any idea why this would be happening? It is the exactly same site moved to a different server, so naturally, the Telerik DLLs etc should be the same.

Here is the code we use:

    function OnClientClicking_confirm(sender, args)
    {
        debugger;
        var callBackFunction = Function.createDelegate(sender, function (argument)
        {
            if (argument)
            {
                this.click();
            }
        });
        var text = "Are you sure?";
        radconfirm(text, callBackFunction, 300, 100, null, "");
        args.set_cancel(true);
    }
Alfredo
Top achievements
Rank 1
 answered on 03 Nov 2016
14 answers
256 views
I have the following RadSlider which is in a UserControl:
        <telerik:RadSlider runat="server" ID="rsVery" EnableViewState="false" Orientation="Horizontal" Width="500" Height="50" TrackPosition="TopLeft" Skin="Inox" ItemType="Item" MinimumValue="-10" MaximumValue="10" SmallChange="1" ShowDecreaseHandle="true" ShowIncreaseHandle="true" Visible="true" AnimationDuration="250">
            <Items>
                <telerik:RadSliderItem Text="Very Slow" Value="-3" ToolTip="Very Slow" runat="server"></telerik:RadSliderItem>
                <telerik:RadSliderItem Text="Slow" Value="-2" runat="server"></telerik:RadSliderItem>
                <telerik:RadSliderItem Text="Normal" Value="0" runat="server"></telerik:RadSliderItem>
                <telerik:RadSliderItem Text="Fast" Value="2" runat="server"></telerik:RadSliderItem>
                <telerik:RadSliderItem Text="Very Fast" Value="3" runat="server"></telerik:RadSliderItem>
            </Items>
        </telerik:RadSlider>        


The .Value just returns the position index.

can you tell me what I'm doing wrong..

thanks



Josh
Top achievements
Rank 1
Veteran
 answered on 03 Nov 2016
1 answer
103 views

Hi,
the project, in which I’m working, have a performance issue in IE, when the page is loading in IE11, it takes between 2.5-4.5 seconds, while in chrome it takes less than a second to load (firefox/Edge load in less than 2 seconds);  Resize is also a problem, but my main concern is Loading the pages… the master page has multiple nested splitters (rad panes), I debug it and server’s time is less than a second, using dynatrace, fiddler, and dev tools, I find that the time is related to the Resizing of panes…
(See images  https://screenshot.net/7o1dgcn  ,   https://screenshot.net/jd9qgud )
I’ve looked at multiple forums (both telerik’s and otanother sources) for similar problems, and optimizing tricks… I tried some of them, but the resizing is still the main issue...
I include a link to a video showing the problem http://screencast.com/t/LQNCaVFD (ie vs chrome) with a simple project, one with one single radsplitter (RadPanelSingleSplitter.aspx) the other one with multiple nested radsplitters (RadPanelNesting.aspx, which is similar to my project), the nesting page takes at least double the time to load, and also the more html I include, the more time it takes to render (resize)…

Has anyone else have similar issues?

Best Regards,
JC 

Vessy
Telerik team
 answered on 03 Nov 2016
1 answer
187 views

Hi,
the project, in which I’m working, have a performance issue in IE, when the page is loading in IE11, it takes between 2.5-4.5 seconds, while in chrome it takes less than a second to load (firefox/Edge load in less than 2 seconds);  Resize is also a problem, but my main concern is Loading the pages… the master page has multiple nested splitters (rad panes), I debug it and server’s time is less than a second, using dynatrace, fiddler, and dev tools, I find that the time is related to the Resizing of panes…
(See images  https://screenshot.net/7o1dgcn  ,   https://screenshot.net/jd9qgud )
I’ve looked at multiple forums (both telerik’s and otanother sources) for similar problems, and optimizing tricks… I tried some of them, but the resizing is still the main issue...
I include a link to a video showing the problem http://screencast.com/t/LQNCaVFD (ie vs chrome) with a simple project, one with one single radsplitter (RadPanelSingleSplitter.aspx) the other one with multiple nested radsplitters (RadPanelNesting.aspx, which is similar to my project), the nesting page takes at least double the time to load, and also the more html I include, the more time it takes to render (resize)…

Has anyone else have similar issues?

Best Regards,
JC 

Vessy
Telerik team
 answered on 03 Nov 2016
6 answers
614 views
Hello,
I have a form that has a radcombobox and a textarea. When the user selects an item from the radcombobox, I want to insert the selected text into the textarea at the cursor position in the textarea. Here is what I have.

 function insertText(sender, eventArgs) { 
         
        var txtPlainText = document.getElementById("<%= txtPlainText.ClientID %>"); 
        var DropDownList1 = $find("<%= ddlMergeFields.ClientID %>"); 
             
        if (document.selection) { 
                          
            txtPlainText.focus(); 
            sel = document.selection.createRange(); 
            sel.text = DropDownList1.get_value(); 
        } 
        //MOZILLA/NETSCAPE support 
        else if (txtPlainText.selectionStart || txtPlainText.selectionStart == '0') { 
         
            var startPos = txtPlainText.selectionStart; 
            var endPos = txtPlainText.selectionEnd; 
            txtPlainTexttxtPlainText.value = txtPlainText.value.substring(0, startPos) + DropDownList1.get_value() +  
            txtPlainText.value.substring(endPos, txtPlainText.value.length); 
        }  
        else  
        { 
          txtPlainText.value += DropDownList1.get_value(); 
        } 
        DropDownList1.set_value();         
    } 
     

and the combobox is defined as:
<telerik:RadComboBox runat="Server" OnClientSelectedIndexChanged="insertText" ID="ddlMergeFields" Skin="Office2007"
    <Items> 
         <telerik:RadComboBoxItem Text="Merge Fields" Value="test2" /> 
         <telerik:RadComboBoxItem Text="test1" Value="test1" /> 
    </Items> 
</telerik:RadComboBox> 

The javascript works with a normal dropdownlist, but when i switch it to a radcombobox, it always inserts the text at the top of the textarea, not at the cursor position. Am I doing something wrong?

Also, after inserting the text, i need the combobox selected item to be reset to the first item in the box. How do I do that? I have tried set_value and clearSelection, but neither work.

Please Help.

Patrick
Peter Milchev
Telerik team
 answered on 03 Nov 2016
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?