Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
109 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
105 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
185 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
685 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
305 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
95 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
39 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
1 answer
415 views
I know there are a number of threads with this issue, I just wanted to post my specific implementation and see if there is a solution to the corner I seem to be in.

Here is my combobox declaration:
<telerik:RadComboBox runat="server" ID="rcbAssetAssoc" ZIndex="100100" Enabled="false" AllowCustomText="false" MarkFirstMatch="true" Width="100%" Height="190px" EnableLoadOnDemand="true" HighlightTemplatedItems="true" OnItemDataBound="rcbAssetAssoc_ItemDataBound">
<HeaderTemplate>
<ul>
<li class="multiColBoxItem">Serial #</li>
<li class="multiColBoxItem">Asset #</li>
<li class="multiColBoxItem">Machine Name</li>
</ul>
</HeaderTemplate>
<ItemTemplate>
<ul>
<li class="multiColBoxItem"><%# Eval("SerialNumber") %></li>
<li class="multiColBoxItem"><%# Eval("AssetNumber") %></li>
<li class="multiColBoxItem"><%# Eval("MachineName") %></li>
</ul>
</ItemTemplate>
<FooterTemplate>
<asp:Panel runat="server" CssClass="multiColBoxFooter">
<asp:Label runat="server" ID="lblAssetAssocCount" SkinID="atBlueForm" />
</asp:Panel>
</FooterTemplate>
</telerik:RadComboBox>

I have read the solution to clear the selection as:

rcbAssetAssoc.Text = "";
rcbAssetAssoc.ClearSelection();

and that if the combobox is read-only the AllowCustomText="true" must be set to enable the clear to work.

However, if I set the AllowCustomText="true" that creates a bug in my code because I don't want the user typing in their own values.

Am I missing something?

At the end of the day I want a templated dropdown that forces the user to select one of the options with auto-complete style functionality AND have the box clear ready for the next selection.
Plamen
Telerik team
 answered on 30 Apr 2013
1 answer
119 views
After upgrade library to 2013.1.417.40 I noticed problem with data binding in RadGrid for column with properties Visible="false".

<MasterTableView DataKeyNames="UserAuthorizationID"><br>            <Columns><br>                <telerik:GridBoundColumn DataField="UserAuthorizationID" <br>                    HeaderText="UserAuthorizationID" SortExpression="UserAuthorizationID"<br>                    UniqueName="UserAuthorizationID" Visible="False"><br>                </telerik:GridBoundColumn>

When I'm trying to read on postback (when event occured) the text properites is equal to nbsp;

The interesting thing is that when I bind the data in OnItemDataBound event or column has property Visible="true", it works correctly.

In previous control release it worked correctly.
Shinu
Top achievements
Rank 2
 answered on 30 Apr 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?