Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
84 views
Hi;

Do you have a sample that does a search & replace as a custom dialog for your editor? If I have that code then I think I can implement what we need as that would show me both how to query the editor for text and to change text in the editor.

And I need to do it by creating my own ASP.NET controls that talk to the editor as we need to keep our part separate from the editor as we intend in the future to write a more powerful editor (handling tabs, margins, page breaks, etc.)

It's fine if all of our controls use your ASP.NET controls (that is our plan). What's key is to keep a simple interface between the editor and all of our controls so we can change the editor our controls talk to. So we would prefer that we have a way to provide asynchronous communication via JavaScript between our ASP.NET app and your editor.

thanks - dave
Niko
Telerik team
 answered on 30 Apr 2013
1 answer
74 views
http://demos.telerik.com/aspnet-ajax/grid/examples/programming/listview/defaultcs.aspx

We are trying to implement this radgrid with the templated boxes. When we attempt to drag and drop a single record, the entire row gets dragged. We only want to drag one record at a time. Could you please let us know what in this sample needs to be adjust to allow the dragging and dropping of individual boxes?

Thanks!
Kostadin
Telerik team
 answered on 30 Apr 2013
3 answers
110 views
i want to control who can make edit by :

 if (Label13.Text == "Normal User")
                {
                    xxxx
                 }  

how can i make it
Elliott
Top achievements
Rank 2
 answered on 30 Apr 2013
3 answers
106 views
The site that I am working on has the following setup:

A master page is defined which contains the RadTabStrip control used by the site and one web page default.aspx that uses this master page.

Clicking on a tab will dynamically load a user control into the content place holder on the default.aspx page. The user control is loaded by using an ajax call.

This user control creates RadDocks dynamically (in the OnInit event of the user control, based off of the examples on the Telerik site) and adds them to 1 or 2 predefined RadDockZones. 

The docks are setup to AutoPostBack and I am currently handing the OnDockPositionChanged event just to display information as to what dock changed position.  Using the RadAjaxManagerProxy I have added ajax settings for both the RadDockZones (if I am no longer able to move any of the docks after the first dock has been moved).

After dropping the dock and the ajax call has completed, I see the information that is displayed in the OnDockPositionChanged event stating which dock has changed position, which RadDockZone it was moved to and its new index, but the dock still moves back to its original position.

While debugging the application the OnSaveDockLayout event fires but the OnLoadDockEvent never fires, which is the only thing that I can think of that is causing the dock to return to it's original position.

I hope this has made sense, and would appreciate any help that can be provided on the issue that I am having.

Thanks
Slav
Telerik team
 answered on 30 Apr 2013
7 answers
187 views

Hi again!

Here's the reprosteps of a bug for the example below: type sequentially letter 'a' and semicolon in intervals of 500 ms or less (approximately). I didn't measure precisely, but it is a bit slower than normal speed of touch-typing.

The error occurs: "Microsoft JScript runtime error: Unable to get value of the property 'left': object is null or undefined". The error occurs when both OnEntryAdded and OnEntryRemoved are assigned.

Default.aspx

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="TestAutocompleteSuggList._Default" %>
<%@ Register Assembly="Telerik.Web.UI, Version=2012.3.1120.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
  
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  
<head id="Head1" runat="server">
    <title></title>
    <script type="text/javascript" src="Scripts/jquery-1.8.3.min.js"></script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:ScriptManager ID="ScriptManager1" runat="server" />
        <asp:UpdatePanel runat="server">
            <ContentTemplate>
                <telerik:RadAutoCompleteBox runat="server"
                                    ID="racAutocomplete"
                                    AllowCustomEntry="true"                                  
                                    OnEntryAdded="ServerEntryAdded"
                                    OnEntryRemoved="ServerEntryAdded"
                                    InputType="Token" />
            </ContentTemplate>
        </asp:UpdatePanel>
    </div>
    </form>
</body>
</html>

Default.aspx.cs

using System;
using System.Web.UI;
using System.Collections.Generic;
using Telerik.Web.UI;
using System.Threading;
 
namespace TestAutocompleteSuggList
{
    public partial class _Default : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            const string StartupJS = @"
                                        var $input = jQuery('#{1} input[name=""{0}""]');
                                        $input.focus();
                                    ";
            ScriptManager.RegisterStartupScript(this,//restore focus on AutocompleteBox
                                                this.GetType(),
                                                "ScriptOnLoad",
                                                string.Format(StartupJS, racAutocomplete.ClientID.Replace("_", "$"), racAutocomplete.ClientID),
                                                true);
 
            const int maxcount = 10;
            racAutocomplete.DataSource = new List<string>() {
                new string('a', maxcount),
                new string('a', maxcount),
                new string('a', maxcount),
                new string('a', maxcount),
                new string('a', maxcount),
                new string('a', maxcount),
                new string('a', maxcount),
                new string('a', maxcount),
                new string('a', maxcount),
                new string('a', maxcount),
                new string('a', maxcount),
                new string('a', maxcount),
            };
            racAutocomplete.DataBind();
        }
 
        protected void ServerEntryAdded(object sender, AutoCompleteEntryEventArgs e)
        {
        }
    }
}





Bozhidar
Telerik team
 answered on 30 Apr 2013
3 answers
190 views
Hi, I have a problem that has somehow crept into my solution and I'm not sure how. I have a page where the user is allowed to make some filter selections, then click a button and view the corresponding data which sits in 3 tabs of data presented using a RadTabStrip control. A RadGrid is used to show the list of data accessible from each tab. They can then return to the selection controls, and again click on the button to select and view the resulting list in the RadGrid. The idea is that the user can also select one row in the RadGrid on the left, and on the right-hand-side of the page I show the detailed view for that record, in a formView control. I use a RadSplitter control to separate the left and right panes. I use one aspx page for all of this, and the page is reasonably complex, but not overly so.

The problem I am now experiencing is that when the user returns to the selection filters and selects a different data set, the RadTabStrip control completely disappears. The RadSplitter also fails to render properly, and the RadGrid styling is different. It's as if all the Telerik controls have somehow gone bananas. It all looks perfect the first time data is presented. It was all fine sometime ago but a lot of development has gone on since I last tested multiple select-view situations so really not sure what has caused the problem. One piece of work I did add was to add a client-side Javascript calls to size the RadGrid on first presentation and also resize when the browser window is resized, but when I remove these bits I still have the problem.

I've seen a few postings about the RabTabStrip disappearing in the forums so don't think i'm alone with this kind of problem.

Any ideas? All help very much appreciated - I need to sort this out and move on! I can post further details if that's useful.

with regards, Ian





Kate
Telerik team
 answered on 30 Apr 2013
5 answers
691 views
I am using RadComboBox in one of the project with lot of select and inputs on the page. The comboBox is picking the default vista like look making it look like an Alien.

I had tried various option by disabling css etc but none of them worked.

Here is how the current textbox and select look like in attched image.

Any help is highly appreciated.

Thanks.
Hristo Valyavicharski
Telerik team
 answered on 30 Apr 2013
5 answers
313 views
Hello,

I have a RadSlider which is hidden when the page initially loads. Later it is loaded onto the page using Ajax and that time there is some display issues with the skin. I have experienced the same issue with few other controls also. Is this a bug?

Thank you,
Merlin.
Slav
Telerik team
 answered on 30 Apr 2013
1 answer
98 views
I recently upgraded to 2013.1.403.40. Since then, a page has stopped filtering a Grid correctly.
  • The Grid has EnableViewState = False.
  • The Gird has GridBoundColumns containing RadComboBoxes that are used to filter the Grid when the RadComboBox's SelectedIndexChanged() fires.

This was working OK before the upgrade.

I've observed that once the RadComboBox is changed to filter the Grid, instead of the SelectedIndexChanged event firing and then the Grid's OnNeedDataSource event, the opposite occurs. So the RadComboBox value needed to filter the Grid isn't there.

I know from documentation that "If ViewState optimization is enabled, RadGrid will fire NeedDataSource and will bind after each post back to restore its items....RadGrid and its TableView manage the state of the following features while the EnableViewState property is set to False: ...Filter expressions(but not the filter value in the input control)..."

Note that I use a local class to store the value of the RadComboBox, which is then accessed to filter the grid in OnNeedDataSource .

I guess I'm wondering if this is a new bug, or one that was fixed and now my code is wrong.

Thanks for any info,
Robert



Kostadin
Telerik team
 answered on 30 Apr 2013
1 answer
42 views
Hello

My question is, the value of CaptchaImage.Text does not change all the way through the page life cycle from Init to PreRender, yet the value it contains is different to that rendered in the CaptchaImage when the browser loads the page. Am I right in thinking that the raw text stored in the Text must then be an 'encrypted' version of the code that the Captcha really displays and against which it will validate on postback? Presumably this means that the CaptchaImage.Text property is not of any use in trying to store or control the code programmatically?

Thankyou for the confirmation of this.

Slav
Telerik team
 answered on 30 Apr 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?