Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
105 views
Hi Telerik community, does someone know how to bind RadComboBox to linq with codebehind when the radcombobox is within grid editform? Thanks, Bernhard
Shinu
Top achievements
Rank 2
 answered on 29 Dec 2011
2 answers
128 views
what is the best way to implement a Previous and Next button for a Load on demand treeview?  bascially I have a treeview on the left hand side of the screen that when a node is clicked it loads on the right hand side of the tree.  basically the way you do in your documentation.  http://www.telerik.com/help/aspnet/treeview/tree_loadondemand.html

they just want a forward and previous button on the right hand side to move up and down the tree that way. 
chau minh tuan
Top achievements
Rank 1
 answered on 29 Dec 2011
1 answer
92 views
Hello,
    I was wondering is their away to get the sender grid information in the usercontrol, when I have two grid using the same usercontrol.

GridA   --  GridB   -- Using usercontrol.ascx - Need to know if it's GridA or GridB when it's a GridInsertionObject?  Base on this demo with exceptions of two grids.

Thank you for your help.
Shinu
Top achievements
Rank 2
 answered on 29 Dec 2011
1 answer
112 views
Hi,
 I have custom user controls dynamically added to a RadListView.
 The user controls themselves govern their sub controls user access (hidden, readonly, etc...)
 Although X Controls are Created, X - Y controls remain after the ItemDataBound event is done firing based on the user's access. (where Y is between 0 and X).

The problem is, on Postback the User Controls lose their viewstate... why is this happening?

I can do Everything in the ItemCreated Event and it functions as intended; however, since that is fired on every single Postback it is doing unnecessary calculations going through and figuring out which fields are visible, readonly, and which controls are even part of the List,

Am I stuck doing everything in the ItemCreated Event?

Or is their a way to Just Do my Processing and DataBinding in the ItemDataBound Event? <--(This would work now, if the controls retained their viewstate on postback)

Thanks,
~Patrick
Patrick
Top achievements
Rank 1
 answered on 28 Dec 2011
1 answer
293 views
I am using the RadTextBox with MultiLine enabled.  The issue i am having is that i need to determine whether or not there have been changes from what is being held in the database, and if there has been changes then display a warning message.  Chrome, Safari, Firefox all work fine; however, in Internet Explorer and Opera new lines are changed from  Line Feeds (\n) to a Carriage Return followed by a Line Feed (\r\n). Therefore, even if a person doesn't make changes to the RadTextBox, Internet Explorer/Opera will see the string coming from the database (the string with just \n's) different from what's in the RadTextBox (the string with \r\n's).  

I have attached images of what is being displayed, along with what is being seen in the RadTextBox (ContentEditor.Text) and what is being seen in the database (CurrentContent).  Also, below should be a snippet of the aspx code for my RadTextBox:

<telerik:RadTextBox runat="server" ID="ContentEditor" Height="200px" Width="580px" TextMode="MultiLine"
Wrap="true" ></telerik:RadTextBox>

Is there anyway to fix this, or is there a reason why this is happening?

Thanks again for the help,

- Pat
Pat
Top achievements
Rank 1
 answered on 28 Dec 2011
3 answers
82 views
hello,
Recently i have been working on radrecurrenece editor, i wanted to customize end by datepicker calendar how to do that , iam attaching image of the calendar to be customized ,please respond thanks.

regards,
madhukar
Peter
Telerik team
 answered on 28 Dec 2011
1 answer
183 views
Hello,
I am working on radcombobox and according to my requirement i have to aplly css to radcombobox so that it should look like the images  i attached below ,when notclicked and when clicked,is there any way to do that ,please reply soon thanks.

Regards,
madhukar.
Ivana
Telerik team
 answered on 28 Dec 2011
18 answers
290 views
Hello,

I have a page with a datepicker control as well as a textbox.  When the date changes in the datepicker, I would like to change the text in the textbox.  I do not want to postback during this process so I have ajaxified the datepicker control with the ajaxmanager.  The problem is that when I select a date, the page stops responding and I get the IE message "A script on this page is causing Internet Explorer to run slowly.  If it continues to run, your computer may become unresponsive.  Do you want to abort the script?"  How can this problem be resolved?  My code is below:

---------------------------------------------------------------------------

<

rad:RadAjaxManager ID="RadAjaxManager1" runat="server">

<AjaxSettings>

<rad:AjaxSetting AjaxControlID="dateWeekStartDate">

<UpdatedControls>

<rad:AjaxUpdatedControl ControlID="dateWeekStartDate" />

<rad:AjaxUpdatedControl ControlID="txtWeekEndDate" />

</UpdatedControls>

</rad:AjaxSetting>

</AjaxSettings>

</rad:RadAjaxManager>

<

div class="row">

<div class="titleColumn">

Date:

</div>

<div class="column">

<rad:RadDatePicker ID="dateWeekStartDate" runat="server" Skin="None" OnSelectedDateChanged="dateWeekStartDate_SelectedDateChanged">

<DateInput Skin="None" CssClass="calInput" AutoPostBack="true"></DateInput>

<PopupButton CssClass="calButton" ToolTip="" />

<Calendar runat="server" ID="calStart" CssClass="calendar" EnableNavigation="true" >

<TitleStyle CssClass="calTitle" />

<DayStyle CssClass="calDay" />

<CalendarTableStyle CssClass="calTable" />

</Calendar>

</rad:RadDatePicker>

</div>

</div>

<div class="row">

<div class="titleColumn">

Date:

</div>

<div class="column">

<asp:TextBox runat="server" ID="txtWeekEndDate" ReadOnly="true"></asp:TextBox>

</div>

</div>

-----------------------------------------------------------------------------------------------------------------------

protected

void dateWeekStartDate_SelectedDateChanged(object sender, Telerik.WebControls.SelectedDateChangedEventArgs e)

{

txtWeekEndDate.Text = dateWeekStartDate.SelectedDate.ToString();

}

------------------------------------------------------------------------------------------------------------------------

Any help would be greatly appreciated.

Thank you,

Jennifer

Richard
Top achievements
Rank 1
 answered on 28 Dec 2011
1 answer
100 views
Hi Support,

I have two Question: 
Q. 1 =>  I have a situation where I need only two way sorting that is Ascending OR Descending... 
In my grid if I click on column header it works like:

First Click : Ascending Order
Second Click: Descending Order
Third Click: Sorting Removed

I want on third click it should sort it again Ascending order and so on....
An example will be great help.

Q.2. =>  I saw  an example where you are handling 300,000 records in a grid that works at great speed. In that example you are binding data from some web service. 
http://demos.telerik.com/aspnet-ajax/grid/examples/client/caching/defaultcs.aspx

I have 700,000 records for a report and SQL Server 2008 as back-end. I am binding from code behind using DataSet. It is working but it is very slow... it took almost 45 seconds to retrieve data for one screen.

Can you suggest me how can I speed it up like your demo example.

Thanks
Milena
Telerik team
 answered on 28 Dec 2011
4 answers
96 views
Hi,
I have a radpanelbar with PersistStateInCookie="True". It's is populated dynamically in code behind. I want to write a javascript code to check if there is no level 0 item expanded then it expands the last level 0 item. I have written the following code:
function ExpandFirst() {
    var panelBar = $find("<%= _radpnlbarMenu.ClientID %>");
    if (panelBar) {
        var item = panelBar.get_expandedItem();
        if (panelBar.get_expandedItem() == null) {
            var items = panelBar.get_items();
            if (items.get_count() > 0)
                items.getItem(items.get_count() - 1).expand();
        }
    }
}
 
$(document).ready(function() {
    ExpandFirst();
});



<telerik:RadPanelBar OnItemDataBound="RadpnlbarMenuOnItemDataBound" runat="server" ID="_radpnlbarMenu" ExpandAnimation-Type="InQuart" ExpandAnimation-Duration="500" CollapseAnimation-Duration="500" CollapseAnimation-Type="InQuart" Height="250px" ExpandMode="FullExpandedItem" PersistStateInCookie="True">
    <DataBindings>
        <telerik:RadPanelItemBinding Depth="0" Expanded="true" />
    </DataBindings>
</telerik:RadPanelBar>

It works fine in Firefox but in IE the panelBar object is always null.
Is this the best way to do the trick?
Can you please help me?
Kate
Telerik team
 answered on 28 Dec 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?