Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
157 views
Hi,

I have a asp button placed on a content page. The content page has a RadAjaxManager present on it (This handles the RadGrid at the moment.)

My button has a server side event where it does some processing and then a client script is executed to show the results in a radwindow.

Issue: I want to ajaxify the button so that the "PostBack" appearance of the screen goes away.

How can this be accomplished? I have already tried adding the button to the AjaxControlID but this does not seem to have any effect.
Pavlina
Telerik team
 answered on 08 Sep 2009
2 answers
156 views
The SharePoint\ASP.NET menu provides the ability to restrict the number of dynamic levels rendered in the control regardless of what is returned back by the datasource by setting the MaximumDynamicDisplayLevels property of the menu . This is especially important in SharePoint when you can have lots and lots of sub-sites and sub-sub-sites etc and you don't want your menu to be a crazy mess.

My question is are there any alternatives to this property that seems to be missing from the telerik rad menu control for SharePoint.  Any thoughts? Suggestions?

Thanks.

Josh
Josh
Top achievements
Rank 1
 answered on 08 Sep 2009
2 answers
78 views

Hello Telerik Team,

 I want to localize the  FastNavigationSettings(Today,OK,Cancel) buttons of 'SelectedDateCalendar' present in the RadScheduler1. I have used the following code to do so inside my Page_Load event everytime:

 

 

 

 

RadCalendar popupCalendar = RadScheduler1.FindControl("SelectedDateCalendar") as RadCalendar;

 

 

 

// Set the RadCalendar properties

 

 

 

 

popupCalendar.CultureInfo = System.Threading.Thread.CurrentThread.CurrentUICulture;

 

popupCalendar.FastNavigationSettings.CancelButtonCaption = GetResourceString(

 

"Global_Confirm_CancelText");

 

popupCalendar.FastNavigationSettings.TodayButtonCaption = GetResourceString(

 

"Schedule_CalendarView_Today");

 

popupCalendar.FastNavigationSettings.OkButtonCaption = GetResourceString(

 

"Global_Confirm_OkText");

 

 

 

This works the first time user visits the FastNavigationkeys. But when user selects any other date, and again visits the 'SelectedDateCalendar' the FastNavigationkeys are not localized - they appear in English.

Please let me know how to fix this.

Also, to localize the entire RadScheduler, I have used the following code:

 

RadScheduler1.Culture = System.Threading.

 

Thread.CurrentThread.CurrentUICulture;

Regards,
Abhishek

 

Abhishek Dixit
Top achievements
Rank 1
 answered on 08 Sep 2009
3 answers
45 views
We have just updated to use the 2009 Q2 version of the Telerik.Web.UI and found the when the control in rendered on the page that an extra "</input>" tag outputted as well. Can you confirm.
Vesko
Top achievements
Rank 2
 answered on 08 Sep 2009
1 answer
81 views

Hi!
I have a problem in IE7 when adding new items on client. After i add the item from client, i am not able to select it in IE7 by hovering mouse over it and clicking. It is not even highlighted. It can be selected only when mouse hovers the text of the item, but not the full item. In Firefox, Opera, IE8 everything works fine. Please, give me some advice to solve the problem.
My code is very easy:

 

 

 

 

<telerik:RadComboBox ID="testCombo" runat="server">  
    </telerik:RadComboBox> 
    <button onclick="addItem();return false;">Add item</button> 
    <script type="text/javascript">  
        function addItem()  
        {  
            var combo = $find('<%= testCombo.ClientID %>');  
            var comboItem = new Telerik.Web.UI.RadComboBoxItem();  
            comboItem.set_value("Test");  
            comboItem.set_text("Test");  
            combo.get_items().add(comboItem);   
        }  
    </script> 

 

 

Vesko
Top achievements
Rank 2
 answered on 08 Sep 2009
1 answer
145 views
hi

How do i remove Month and Timeline view?

I want to display only Day and Week on the scheduler only. Thanks
Datamex
Top achievements
Rank 2
 answered on 08 Sep 2009
4 answers
201 views
hi

I have this aspx code: and i received an Error On Page: DataBinding: Telerik.Web.Ui.Appoint Does not contain a property with a name 'Remark'

I have checked on my store proc for insert and update and select and they are working fine. Where did i go wrong? Thanks

 

<telerik:RadScheduler ID="RadScheduler1" runat="server"

 

 

 

DataEndField="EDateTime" DataKeyField="Appt_ID"

 

 

 

DataSourceID="sdsAppointment" DataStartField="SDateTime" DayEndTime="21:00:00"

 

 

 

DataSubjectField="Remark" HoursPanelTimeFormat="htt" Skin="Outlook"

 

 

 

ValidationGroup="RadScheduler1">

 

 

 

<InlineInsertTemplate>

 

 

 

<asp:TextBox runat="server" ID="RemarkTextBox" Text='<%# Bind("Remark") %>' Width="99%"></asp:TextBox>

 

 

 

User:

&nbsp;

 

 

 

<asp:TextBox runat="server" ID="LNameTextBox" Text='<%# Bind("LName") %>' Width="99%"></asp:TextBox>

 

 

&nbsp;

 

<asp:LinkButton runat="server" ID="InsertLinkButton" CommandName="Insert" Text="Insert"></asp:LinkButton>&nbsp;

 

 

 

<asp:LinkButton runat="server" ID="CancelLinkButton" CommandName="Cancel" Text="Cancel"></asp:LinkButton>

 

 

 

 

</InlineInsertTemplate>

 

 

 

<InlineEditTemplate>

 

 

 

<asp:TextBox runat="server" ID="RemarkTextBox" Text='<%# Bind("Remark") %>' Width="99%"></asp:TextBox>

 

 

 

User:

&nbsp;

 

 

 

<asp:TextBox runat="server" ID="LNameTextBox" Text='<%# Bind("LName") %>' Width="99%"></asp:TextBox>&nbsp;

 

 

 

<asp:LinkButton runat="server" ID="UpdateLinkButton" CommandName="Update" Text="Update"></asp:LinkButton>&nbsp;

 

 

 

<asp:LinkButton runat="server" ID="CancelLinkButton" CommandName="Cancel" Text="Cancel"></asp:LinkButton>

 

 

 

 

</InlineEditTemplate>

 

 

 

</telerik:RadScheduler>


 

<

asp:SqlDataSource ID="sdsAppointment" runat="server"

 

 

 

ConnectionString="<%$ ConnectionStrings:ClinicMgmtConnectionString %>"

 

 

 

DeleteCommand="spAppointment_Delete" DeleteCommandType="StoredProcedure"

 

 

 

InsertCommand="spAppointment_Insert" InsertCommandType="StoredProcedure"

 

 

 

SelectCommand="spAppointment_Select" SelectCommandType="StoredProcedure"

 

 

 

UpdateCommand="spAppointment_Update" UpdateCommandType="StoredProcedure">

 

 

 

 

 

 

<DeleteParameters>

 

 

 

 

 

 

<asp:Parameter Name="Appt_ID" Type="Int32" />

 

 

 

 

 

 

</DeleteParameters>

 

 

 

 

 

 

<UpdateParameters>

 

 

 

 

 

 

<asp:Parameter Name="Appt_ID" Type="Int32" />

 

 

 

 

 

 

<asp:Parameter Name="SDateTime" Type="DateTime" />

 

 

 

 

 

 

<asp:Parameter Name="EDateTime" Type="DateTime" />

 

 

 

 

 

 

<asp:Parameter Name="Remark" Type="String" />

 

 

 

 

 

 

<asp:Parameter Name="LName" Type="String" />

 

 

 

 

 

 

</UpdateParameters>

 

 

 

 

 

 

<InsertParameters>

 

 

 

 

 

 

<asp:Parameter Name="SDateTime" Type="DateTime"/>

 

 

 

 

 

 

<asp:Parameter Name="EDateTime" Type="DateTime" />

 

 

 

 

 

 

<asp:Parameter Name="Remark" Type="String" />

 

 

 

 

 

 

<asp:Parameter Name="LName" Type="String" />

 

 

 

 

 

 

</InsertParameters>

 

 

 

 

 

 

</asp:SqlDataSource>

 

 

 

 

 

L
Top achievements
Rank 1
 answered on 08 Sep 2009
1 answer
143 views
Hi, 
     I am making a simple entry from using radtexbox,radcombobox,radmaskedtextbox and raddateinput. Now for each control there is asp.net requiredfield validator. I am also using validator Callout extender for the required field validator. Now in validator callout there is a property named as HighlighCssClass which is used to set the backcolor of the focused control. If am use simple asp.net testbox then the background-color is works fine but it's not working for any of the radinput.
I need help and complete clientside code for this.
Please help.

<

 

telerik:RadTextBox ID="txtEstbName" runat="server" MaxLength="150" Skin="Office2007" ></telerik:RadTextBox>

 

 

 

 

 

<ajaxToolkit:ValidatorCalloutExtender ID="vc1" runat="server" TargetControlID="rfv1" Width="200px" HighlightCssClass="validatorCalloutHighlight" WarningIconImageUrl="~/images/warning.png" CloseImageUrl="~/images/close.png">

 

 

</ajaxToolkit:ValidatorCalloutExtender>

 

 

<asp:RequiredFieldValidator ID="rfv1" runat="server" ErrorMessage="Please enter establishment name" ControlToValidate="txtEstbName" Visible="true" Display="None"></asp:RequiredFieldValidator>

 

 

 

css class........................

.validatorCalloutHighlight

{

background-color:#FF9999;

}

 



Pronay

Dimo
Telerik team
 answered on 08 Sep 2009
5 answers
190 views
Hi,

Ive a radeditor  in my form. My scenario is I need to insert text in the position exactly where my caret is(or cursor is)?? 
 
Eg:: if my content in radeditor is : hi, how are you?? and i ned to insert  'John' after 'how' ??
how do i do this ???

so, once inserted, it should be hi john, how are you?? how do you insert text in radeditor using the caret position.

Pls help me with code samples.

Also, when i use radeditor and use the toolbr in radedito, it gives me an error telling need to configure in web.config? how do i resolve this???


Thanks,
ZR
Rumen
Telerik team
 answered on 08 Sep 2009
1 answer
67 views

I'm having trouble with the controlparameter of a ListBox which points to same RadGrid where the Listbox is used.

I want to populate the Listbox depending on the selected value of the Grid, so I've set a controlparameter in the datasource of the ListBox which points to the selectedItem of the Grid. However, the controlparameter always gets the default value. If I set the controlparameter to another grid (not the grid which is the parent of the ListBox) it works fine.

<GRID id=g1 Datasource = DS1>     
    <VIEW> 
    <EDIT>    
        <LISTBOX Datasource=DS2></LISTBOX>    
    </EDIT>    
</GRID>    
    
<DS1>    
    ...     
</DS1>    
    
<DS2>    
    <selectparameters>    
        <asp:ControlParameter ControlID="g1" DefaultValue="0" Name="id" PropertyName="SelectedValue" Type="Int32" />      
    </selectparameters>    
</DS2> 
Vlad
Telerik team
 answered on 08 Sep 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?