Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
216 views

        <telerik:RadEditor ID="RadEditorRodape" runat="server" Width="100%" Height="150px"
            EditModes="Design, Html" ToolsFile="~/Controles/EditorConfigRodape.xml" EnableResize="false" Language="pt-BR">
            <Paragraphs>
                <telerik:EditorParagraph Tag="<h1>" Title="Titulo 1" />
                <telerik:EditorParagraph Tag="<h2>" Title="Titulo 2" />
                <telerik:EditorParagraph Tag="<h3>" Title="Titulo 3" />
                <telerik:EditorParagraph Tag="<h4>" Title="Titulo 4" />
                <telerik:EditorParagraph Tag="<h5>" Title="Titulo 5" />
            </Paragraphs>
            <Content>
            </Content>
        </telerik:RadEditor>

Files resx is in folder App_GlobalResources.

Language remains in english. 

Who knows what happens? Why not work?

Tks,


Yoly
Top achievements
Rank 2
 answered on 19 Aug 2009
1 answer
113 views
Hello,
I'm trying to build a page with RadScheduler and encounters issues with datatype 'date'.  Could some one give some help please?  Thank you in advance. 

Windows XP Pro
Visual Studio 2005
MS SQL 2005

Scenario:
1. Setup database structure for Appointments/Rooms/Users Tables  (Followed provided example from Telerik)
2. Build the page (Copy most of the sample code from Telerik)
3. Page loads the scheduler, enter information for a time slot, click "Save" button and get this error below:

 

Server Error in '/server' Application.

The version of SQL Server in use does not support datatype 'date'.

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.ArgumentException: The version of SQL Server in use does not support datatype 'date'.

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:

[ArgumentException: The version of SQL Server in use does not support datatype 'date'.]
   Telerik.Web.UI.Scheduling.DataSourceViewSchedulerProvider.OnDataSourceOperationComplete(Int32 count, Exception e) +16
   System.Web.UI.DataSourceView.Insert(IDictionary values, DataSourceViewOperationCallback callback) +73
   Telerik.Web.UI.Scheduling.DataSourceViewSchedulerProvider.Insert(RadScheduler owner, Appointment appointmentToInsert) +130
   Telerik.Web.UI.Scheduling.AppointmentController.InsertAppointmentThroughProvider(Appointment appointment) +32
   Telerik.Web.UI.RadScheduler.ProcessPostBackCommand(SchedulerPostBackEvent postBack) +182
   Telerik.Web.UI.RadScheduler.RaisePostBackEvent(String eventArgument) +62
   Telerik.Web.UI.RadScheduler.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10
   System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
   System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +170
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2863
Bao Tonthat
Top achievements
Rank 1
 answered on 19 Aug 2009
1 answer
308 views
I am creating a grid dynamically within the Page_Init event.  Within my grid I have a GridTemplateColumn that has a Textbox in it.  In order to do this I created a GridTemplateColumn_TextBox class.

I want to add an event handler to the TextChanged event.  I can do this from within my GridTemplateColumn_Textbox class and everything works fine (ie. AddHandler txtBox.TextChanged, AddressOf txtBox_TextChanged)

The problem is that I don't want to add it from within my class, because I want my class to be a very generic class that I can use whenever I want to add this particular GridTemplateColumn to a grid, but the particular event handler in question is very specific to one particular page.

Is there a way to get a reference to the Textbox within my GridTemplateColumn and add my event handler from within my page itself instead of the class?

Hopefully I'm clear as to what I'm trying to do.  If not, please let me know.

Thanks.

Steve
Daniel
Telerik team
 answered on 19 Aug 2009
4 answers
258 views
Hi,

What I'm trying to do is programatically create anywhere from 5-15 comboboxes on a page (number will vary based on user information).  While this part is easy enough, I also have need to make them related.  If I were dropping the control on the page, I'd be using the OnItemsRequested method, but since I'm doing this programmatically and the method is Protected, I'm stuck.

Here's what I've attempted:

 
Dim cmbo As New RadComboBox
cmbo.ID = "cmboTest"
cmbo.OnClientItemsRequested = "" 'Telerik.Web.UI.RadComboBox.Protected Overrideable Sub OnItemsRequested(...) is not accessible in this context because it is Protected.
cmbo.EnableLoadOnDemand = True  
cmbo.DataSource = GetValues("Test")
cmbo.DataBind()

 

Rajesh Meenrajan
Top achievements
Rank 1
 answered on 19 Aug 2009
0 answers
65 views
Hi,

Q2.2009.
I have problems to fire my RadTimePicker and returning the value in the Box. After each selected item over highlighted item (<a>) my page scroll and no time is returned in the box. I have used clients events and in this case my events not fire. I have tested many configurations and have this problem every time. I need to select the items between the highlighted item and the border ( only in the left or right borders). In this case the item fire and return the value but is not possible to work in this case need to push between 2 or 3px in borders. I have observed the html and styles and suspect some problem with <a>items like <a href="#">13:00</a>. Could you suggest some solution please.

regards Romi.

<div class="boxLunVen"
                <div class="boton1"><img  alt='' src="../VistaStatic/images/Submenu/configurador1/semana.png" /></div
                <div class="time"
                <telerik:RadTimePicker ID="RadTimeInLunVen" runat="server" style="vertical-align:middle;" Width="60px" 
                         StartTime="13:0:0" EndTime="22:31:00" Interval="0:30:0" Columns="2" TimeFormat="HH:mm" Culture="es-ES"    
                         DateFormat="HH:mm" OnClientTimeSelected="OnTimeSelectedSem">      
                </telerik:RadTimePicker> 
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="*" ControlToValidate="RadTimeInLunVen" ValidationGroup="group1"></asp:RequiredFieldValidator> 
                </div> 
                <div class="clear"></div>  
                
            </div> 
            <div class="boxSamedi"
                <div class="boton1"><img  alt='' src="../VistaStatic/images/Submenu/configurador1/weekend.png" /></div
                <div class="time"
                <telerik:RadTimePicker ID="RadTimeInSamedi" runat="server" style="vertical-align:middle;" Width="60px"
                        <ClientEvents OnPopupClosing="OnPopupClosing" /> 
                        <TimeView StartTime="13:0:0" EndTime="22:31:00" Interval="0:30:0" Columns="2" TimeFormat="HH:mm" Culture="en-US" OnClientTimeSelected="OnTimeSelected" runat="server">  
                        </TimeView> 
                        <DateInput DateFormat="HH:mm" Culture="en-US" runat="server"></DateInput>    
                </telerik:RadTimePicker> 
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="*" ControlToValidate="RadTimeInSamedi" ValidationGroup="group1"></asp:RequiredFieldValidator> 
           
                </div> 
                <div class="clear"></div>  
                 
            </div> 

Pierre
Top achievements
Rank 1
 asked on 19 Aug 2009
5 answers
175 views
I am using a user control as my edit form in a grid and I wanted to know if it is possible to have an update and cancel button in the edit column when an item is in edit mode.  I know this is done in the inplace edit mode, and I want to mimic this functionality.  I don't want to have to place save and cancel buttons in my user control.  Thanks.
eric
Top achievements
Rank 1
 answered on 19 Aug 2009
4 answers
276 views
I have a grid, inside one of the columns I have a tooltip that contains a radmenu. When you click an item in the radmenu I need it to call a JS method and pass the dataItem that the tooltip came from.

So lets say i have two rows in my grid with ID 1 and 2. If I hover over the second tooltip and click on my menu item it needs to pass the 2.

This is the last thing that is holding me up with this project. Please help...

    <telerik:RadScriptBlock ID="RadScriptBlock2" runat="server"
        <script type="text/javascript"
            //<![CDATA[
            function menuTools_Click(sender, eventArgs)
            {
                //I need the datakey from what ever dataitem this came from.
                //So if I hover over the first 'hover over me' box and click the item I should get ID=0
                var id = 2;
                var wnd = openRadWindow("http://www.google.com"+"?ID="+id, "600", "600");
            }
            //]]> 
        </script> 
    </telerik:RadScriptBlock> 
  
      <telerik:RadGrid ID="Grid1" runat="server" AutoGenerateColumns="false" 
        OnDetailTableDataBind="DetailTableDataBind" 
        OnNeedDataSource="NeedDataSource"
        <MasterTableView DataKeyNames="ID" HierarchyLoadMode="ServerOnDemand"
            <DetailTables> 
                <telerik:GridTableView DataKeyNames="ID" ClientDataKeyNames="ID" AutoGenerateColumns="false"
                    <Columns> 
                        <telerik:GridBoundColumn DataField="CompanyName" HeaderText="CompanyName" /> 
                    </Columns> 
                </telerik:GridTableView> 
            </DetailTables> 
            <Columns> 
                <telerik:GridBoundColumn DataField="ID" HeaderText="ID" /> 
                <telerik:GridTemplateColumn> 
                    <ItemTemplate> 
                        <asp:Button ID="buttonDetails" runat="server" OnClientClick="return false;" Text="Hover over me" /> 
                        <telerik:RadToolTip runat="server" ID="RadToolTipButtonDetails" HideEvent="ManualClose" RenderInPageRoot="true" 
                            ShowEvent="OnMouseOver" RelativeTo="Element" TargetControlID="buttonDetails" Position="Center" Title="Tools"
                                <telerik:RadMenu ID="menuTools" runat="server" Flow="Vertical" OnClientItemClicking="menuTools_Click">                                 
                                    <Items> 
                                        <telerik:RadMenuItem Width="160px" Value="Print" ToolTip="Print" /> 
                                    </Items> 
                                </telerik:RadMenu> 
                        </telerik:RadToolTip> 
                    </ItemTemplate> 
                </telerik:GridTemplateColumn> 
            </Columns> 
        </MasterTableView> 
        <ClientSettings EnableRowHoverStyle="true"
            <Selecting AllowRowSelect="true" /> 
        </ClientSettings> 
    </telerik:RadGrid> 
 


Boone
Top achievements
Rank 2
 answered on 19 Aug 2009
0 answers
121 views
I am not a user of Telerik controls but I have been asked to find the answer to the following question......

We have a combo box that is passed a name. We want to retrieve from an MSSQL database the name passed plus the next 100 names (either before or after the input name). We also want to be able to navigate forward and backward through the list of names.

For example......
Suppose the database has the 300 names with name number 100 being Allan, name number 200 being King, and name number 300 being Zion.
Suppose I pass in the name King, I would expect the list to start with the name King and end with the name Zion (100 entries after King). If I were to use the down arrow I would expect to add the next 100 names from Zion onward (assuming there are more names) to the list.

Now suppose I pass in the name King, I would expect the list to start with the name King and end with the name Zion (100 entries from King to Zion). If I were to use the up arrow I would expect to add the names from Allan to King in the list (the 100 name preceeding King).

Can anyone tell me is this possible to do with Telerik Controls. I would not ask for a code snippit but some indicaiton of how it would be done would be helpful. Please understand I do not use Telerik controls, I am just trying to gather the information.
Steve Heidel
Top achievements
Rank 1
 asked on 19 Aug 2009
7 answers
178 views
Hello
I would like to have a Radgrid which allow to add new rows as datagrid.  I would like something like that

1

Test1

TesT1

Test2

2

Test2

Test3

Test4

*

 

 

 

And if I add a new record where the * is...I would like a new line with the * appear. Is it possible to do something like that?

I don't want to set the number of row. I want the user can enter as much as he wants
Thank you

Myriam

Myriam
Top achievements
Rank 1
 answered on 19 Aug 2009
5 answers
729 views
How does one save the selected tab, so when an AJAX update occurs to rebind a control, the same tab stays selected?

Details:  I have a FormView.  Inside the FormView, I have a RadTabStrip control.  If the user clicks the third tab, for example, and then clicks the "Refresh" button, I'd like to load the third tab as the selected tab.  How can I do that?

Thanks,
Michelle
Atlas
Top achievements
Rank 1
 answered on 19 Aug 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?