Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
209 views
I have a signout system in my app that, based on some criteria allows a user to sign something out for 1 - n days. I was formally using a custom control that was developed by a 3rd party that I could disable days beyond the users allowed limits (ie If the user was only allowed to sign something out for 14 days max, the 15th day and beyond would be unselectable). This control however had some serious issues and now that I am the proud owner of RadControls, I would like to use Telerik's implementation.

My question is two fold:

1) Is this possible with the RadDatePicker / RadCalender?
2) If not, what is the best solution to implement to obtain the desired result.

Thanks,

Jim
James Legan
Top achievements
Rank 1
 answered on 05 Nov 2008
2 answers
178 views
1. Following Code is generated by RadTabStrip
2. When i apply CssClass "test" (see yellow highlighted rows)
3. The class is applied to <a> tag instead of <li> tag
4. How do I apply CssClass to <li class="rtsLI"> tag

<telerik:RadTab runat="server" IsSeparator="True" PostBack="False" CssClass="empty">

            </telerik:RadTab>

            <telerik:RadTab runat="server" Text="sel" CssClass="test">

            </telerik:RadTab>

            <telerik:RadTab runat="server" IsSeparator="True" PostBack="False" CssClass="seperator">

            </telerik:RadTab>

            <telerik:RadTab runat="server" SelectedCssClass="sel" Text="My Worklist">

            </telerik:RadTab>

            <telerik:RadTab runat="server" IsSeparator="True" PostBack="False" CssClass="seperator">

            </telerik:RadTab>

            <telerik:RadTab runat="server" SelectedCssClass="sel" Text="View All">

            </telerik:RadTab>


Mohammed Nadeem
Top achievements
Rank 1
 answered on 05 Nov 2008
4 answers
98 views
Hi,

I have just converted my project to 3.5 and have changed the RAD Grid reference to use the ASP.NET AJAX controls.

My RAD Grid has a master table and a details table. Whenever I try to expand the Master table to view the details table, I get an error:

"this._tableView._owner._clientKeyValues' is null or not an object"

I tried adding the ClientDataKeyNames to both the MasterTable and the DetailsTable, but that hasnt helped.

Any help/pointers on this will be very much appreciated.

Thanks

Amit
Daniel
Telerik team
 answered on 05 Nov 2008
4 answers
209 views

Hi,

Is it possible to achieve the following behavior :

I have two TreeViews, and I want to drag an item from the first treeview and drop it to the second without removing the node of the first. It will then act as a copy and not a move.

Thanks in advance.

Simon
Telerik team
 answered on 05 Nov 2008
2 answers
121 views
What is the max file size for using the image editor?  I am trying to work with a 2.3mb file and I can upload the file fine however when I go to edit it in the image editor it does not show up.
James
Top achievements
Rank 1
 answered on 05 Nov 2008
13 answers
337 views
I'm using a radcombobox with the loadondemand functionality. Here is the definition:

<telerik:RadComboBox Height="200px" EnableVirtualScrolling=True ShowMoreResultsBox=True NoWrap=True OnItemsRequested="FillDomain" ID="cboDom21" runat="server" EnableItemCaching="True" EnableLoadOnDemand="True" 
                                            Width="250px" Visible=False Sort="Ascending"> 
                                            <CollapseAnimation Duration="200" Type="OutQuint" /> 
                                        </telerik:RadComboBox> 

Here is the code for the function that is filling the combobox (This is from the FillDomain function)

Dim drs() As DataRow = dt.Select("Text like '%" & e.Text.Replace("'", "''") & "%'", "Text ASC") 
 
        Try 
            Dim itemsPerRequest As Integer = 100 
            Dim itemOffset As Integer = e.NumberOfItems 
            Dim endOffset As Integer = itemOffset + itemsPerRequest 
            If endOffset > drs.Length Then 
                endOffset = drs.Length 
            End If 
 
            If endOffset = drs.Length Then 
                e.EndOfItems = True 
            End If 
            Dim i As Integer = itemOffset 
            While i < endOffset 
                ctlCbo.Items.Add(New Telerik.Web.UI.RadComboBoxItem(drs(i)("Text").ToString(), drs(i)("Value").ToString())) 
                i = i + 1 
            End While 
 
            If drs.Length > 0 Then 
                e.Message = [String].Format("Items <b>1</b>-<b>{0}</b> out of <b>{1}</b>", endOffset.ToString(), drs.Length.ToString()) 
            Else 
                e.Message = "No matches" 
            End If 
        Catch 
            e.Message = "No matches" 
        End Try 

The problem that I'm having is that after I go through and start typing things into the combobox and removing characters (basically just messing around with it testing the functionality), I end up getting a popup that says "Stack overflow at line: 117". I was getting them on different lines, but 117 seems to be the line that is causing an issue right now. I know it isn't line 117 of the code in my page and must be something under the covers in RadComboBox. Finally, the main data source for this box has over 10,000 items in it that is being filtered.

Any idea how I can fix this, if a fix is available, or if I can get around it.

Thanks,
Adam
Rosi
Telerik team
 answered on 05 Nov 2008
4 answers
520 views
Sir,

I tried with session.But i need to save the location,position of each dock to database.

plz help me..
Thanks...
Obi-Wan Kenobi
Top achievements
Rank 1
 answered on 05 Nov 2008
1 answer
98 views
I my page I have an RadScheduler and an RadTooltipManager. When I drag my mouse over an appointment, I have an tooltip. This work great but my tooltipManager call page load event. Do you know Why ?

I don't want this, I want to display only tooltip not reload my page

thanks
Svetlina Anati
Telerik team
 answered on 05 Nov 2008
1 answer
94 views

Hi,

I am using 3 RadEditor controls in my page with IDs:

1-SummryRE: to enter news summary
2-ImagePathRE: to paste image
3-ContentRE: to paste news content

Now, I would like that when the 'Insert Image' button is clicked in the ImagePathRE editor control, the image manager (and then the image editor) receives a param, so I can do image cropping programatically in my custom FileSystemContentProvider when an image is uploaded.The reason I am passing a param is that I only want to do cropping if the parent rad editor of the Image Editor is ImagePathRE.

Can I pass this param from server side code or query string ?

Thanks in advance

Madani

Rumen
Telerik team
 answered on 05 Nov 2008
3 answers
202 views
  Hello,

I have Telerik RadControls for ASP.NET AJAX Q1 2008 (v2008.1.619.20).

I am using the RadEditor to allow users to enter comments and notes on a form on a SharePoint site.  The data is then stored in a TEXT field in a MS SQL database.  The users generally copy and paste large amounts of information from Microsoft Word, but I want the information stored in MS SQL to be just plain text (i.e., not HTML).  I am using this control because of its ability strip all formatting.  I do NOT want any formatting and I want Microsoft Words curly quotes, curly apostrophes, and big hyphens to be converted to regular quotes, regular apostrophes, and regular dashes.

When I update the TEXT field in the database, I am using the .Text property of the RadEditor instead of the .Content property.  This way, there should be no formatting to handle.  However, Words curly quotes, apostrophes, and long dashes are still present in the .Text property.  So I have code to replace these Words characters with regular characters.

This seems to work okay when I use this on an ASP.NET page.  But when I put the exact same code on a SharePoint page, RadEditor returns different values in the .Text property.

Here is the .Text property from ASP.NET:

This line has Word curly "quotes", curly ‘apostrophes’, and long—dashes.

Here is the same .Text property from SharePoint:

This line has Word curly “quotes”, curly ‘apostrophes’, and long—dashes.

As you can see, the values are different.  I captured these values using Visual Studio 2005 debug screen.

Can you tell me how why this is different and how I should use the RadEditor to enter just plain text and handle stripping out Words special characters?

Here is the RadEditor code I am using (exactly the same in the ASP.NET page and the SharePoint page):

<telerik:RadEditor ID="radEditor_Comments" runat="server" 
ContentAreaCssFile="~/Styles/vt_RadEditor_ContentArea.css"
EditModes="All"
NewLineBr="true"
StripFormattingOnPaste="MSWordRemoveAll,AllExceptNewLines" 
Width="100%" > 
<Modules> 
<telerik:EditorModule Name="RadEditorStatistics" Enabled="false" Visible="false" /> 
<telerik:EditorModule Name="RadEditorDomInspector" Enabled="false" Visible="false" /> 
<telerik:EditorModule Name="RadEditorNodeInspector" Enabled="false" Visible="false" /> 
<telerik:EditorModule Name="RadEditorHtmlInspector" Enabled="false" Visible="false" /> 
</Modules> 
<Tools> 
<telerik:EditorToolGroup /> 
</Tools> 
</telerik:RadEditor>

Thanks,

Randall Price

Thanks,Randall Price

 

Rumen
Telerik team
 answered on 05 Nov 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?