Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
204 views

I use Rad Navigation in a Control and MasterPage.
When i use Silk skin, font in sub menu is lost.

Se attached image

Ivan Danchev
Telerik team
 answered on 24 Nov 2016
1 answer
140 views

I am using the following to override the hover color of my radgrid.  Would like to also override the hover color of my pager control (buttons and page size dropdown...)  to match current color.  Which CSS rule should be overridden.  Thanks.

.RadGrid_Simple .rgHoveredRow td

    backgroud-color: #812323

Eyup
Telerik team
 answered on 24 Nov 2016
8 answers
298 views
Hello,

I have a List<string> collection and I was wondering if it was possible to bind the rad rotator to this list collectiong? What I have currently does not work; I can't get any data to show up.

Here is what I have for the aspx page:

            <telerik:RadRotator ID="catholicFactRotator" runat="server" RotatorType="AutomaticAdvance"  
            FrameDuration="3000" ScrollDirection="Up" > 
            </telerik:RadRotator>  

Here is what I have for my code behind:

    protected void Page_Load(object sender, EventArgs e) 
    { 
        Data data = new Data(); 
 
        this.radrotator1.DataSource = data.GetListofStrings(); 
        this.radrotator1.DataBind(); 
    } 

I don't receive any errors on the page, but nothing shows up. I appreciate any help!

Thanks,
Flea#
RJ
Top achievements
Rank 1
 answered on 24 Nov 2016
29 answers
692 views
We are using the 2008 SP1 version of the Toolbar. For some reason we are getting the message "Only items of type Telerik.Web.UI.IRadToolBarButton can initiate postbacks" when you click on an item in the toolbar that starts a long running operation on the server and then you click the button again after waiting a second or two. The page has not completed its previous postback and for some reason throws this exception if it hasn't finished.

Any ideas?

Thanks,
Adam
Ivan Danchev
Telerik team
 answered on 24 Nov 2016
12 answers
365 views
Hi,

Thanks for the new control.

I am having following problem with RadNavigation.

1) If we click in the body anywhere in the page highlighted menu is unselected.
How to keep selected Item highlighted?

2) Theme is also different. We are using Metrotouch it seems different in RadNavigation and RadMenu.
 How can we change style of RadNavigation to be same as RadMenu?

3) How to add default text when the window of browser is reduce to the minimal/Mobile size?

Best Regards,
Damodar
Magdalena
Telerik team
 answered on 24 Nov 2016
8 answers
616 views
hai all,

     how do i call onclick or onnodeclick event in dropdowntree.?  bz there is no click event available in this control. i have to load some other control based on dropdowntree clicked node. 
Nencho
Telerik team
 answered on 24 Nov 2016
5 answers
274 views

How can I use RadUpload or RadAsyncUpload control in RadGrid batch edit mode?

I tried following code but RadAsyncUpload shows 0 files in UploadedFile enumerator.

 

01.protected void RadGrid1_BatchEditCommand(object sender, GridBatchEditingEventArgs e)
02.    {
03.        foreach (GridBatchEditingCommand command in e.Commands)
04.        {
05.            if ((command.Type == GridBatchEditingCommandType.Update))
06.            {
07.                Hashtable newValues = command.NewValues;
08. 
09.                if (newValues != null)
10.                {
11.                    var CTRL = RadGrid1.FindControl(RadGrid1.MasterTableView.ClientID + "_AttachmentColumn");
12.                    RadAsyncUpload asyncUpload = RadGrid1.FindControl(RadGrid1.MasterTableView.ClientID + "_AttachmentColumn").Controls[0] as RadAsyncUpload;
13.                     
14.                }
15.            }
16.        }
17.    }

<telerik:GridAttachmentColumn UploadControlType="RadUpload" EditFormHeaderTextFormat="Upload File:" HeaderText="Attachment Column" UniqueName="AttachmentColumn">
</telerik:GridAttachmentColumn>

Angel Petrov
Telerik team
 answered on 24 Nov 2016
1 answer
111 views

I  have several ClientDataSources on a page. How do i cancel a long running one if I want to.

Marty

Konstantin Dikov
Telerik team
 answered on 24 Nov 2016
8 answers
188 views

Hi:

I have placed RadDockZone and RadDoc inside of FormView EditItemTemplate.  The FormView's ItemUpdating event cannot seem to find the Bind values in the form.  If I remove the RadDockZone and RadDoc, it works as expected.

Phil

Ianko
Telerik team
 answered on 24 Nov 2016
1 answer
173 views

Hello, I have an old project I am upgrading to the most recent Telerik Release and I'm running into issues while redirecting from a login page.

 

The code is pretty straight forwards,. the Default.aspx page looks something like this:

protected void Page_Load(object sender, EventArgs e)
        {           
            if (Context.Session != null)
            {
                if (Session.IsNewSession)
                {
                    string szCookieHeader = Request.Headers["Cookie"];
                    if ((null != szCookieHeader) && (szCookieHeader.IndexOf("ASP.NET_SessionId") >= 0))
                    {
                        Response.Redirect("/Login.aspx");
                    }
                }
            }
             
            if (!Convert.ToBoolean(Session["UserIsAdmin"]))
            {
                //Acquire appropriate redirect path from database
                 
                Response.Redirect(redirectPath);
 
            }
            else
            {
                Response.Redirect("/Modules/Admin/UserSetup.aspx");
            }           
        }

 

and the login page has a username and password field with a log in button that looks like so:

 

protected void bLogin_Click(object sender, EventArgs e)
        {
            try
            {
                if (allowLogin)
                {
                    UserClass userAuthenticationClass = new UserClass(eUsername.Text, ePassword.Text);
                    if (userAuthenticationClass.IsValidUser)
                    {
                        string s = FormsAuthentication.DefaultUrl;
                        Session["User"] = userAuthenticationClass;
                        Session["UserID"] = userAuthenticationClass.UserID;
                        Session["Username"] = userAuthenticationClass.Username;
                        Session["UserMasterID"] = userAuthenticationClass.UserMasterID;
                        Session["UserIsAdmin"] = (eUsername.Text.ToUpper() == "ADMINISTRATOR") ? "True" : "False"
                        Session["UserType"] = userAuthenticationClass.UserType;
                        Session["EmailAddress"] = userAuthenticationClass.EmailAddress;
                        Session["SessionID"] = Guid.NewGuid().ToString();
 
                        Session.Timeout = 1440;
 
                        AppCode.SessionStatistics.InsertStatistic(Session["SessionID"].ToString(), Session["UserID"].ToString());
 
                        RadAjaxPanel1.Redirect("/Default.aspx");
                        //FormsAuthentication.RedirectFromLoginPage(eUsername.Text, false);
                        //Response.Redirect("/Default.aspx", false);
                        //Server.Transfer("/Default.aspx", false);
                        //Server.Execute("/Default.aspx", true);
                         
                    }
                    else
                    {
                        LabelMessage.Text = "Could Not Authenticate User";
                    }
                }
            }
            catch (Exception ex)
            {
                LabelMessage.Text = ex.Message;
            }           
        }

 

So Here's where it gets odd. When debugging from Visual Studio, this works correctly. when running on my local web server (set up on my development machine) this also works correctly. but when deployed to a test server, the login button just does not redirect. (it clicks, authenticates the user, then returns to the login page)

 

I was wondering if it's possible that there is something happening that would cause the Session variables to be lost when using RadAjaxPanel.Redirect?

 

Keep in mind, this method works perfectly fine on the development environment. Is there anything I need to install/set up on the test environment for this to work?

Patrick | Technical Support Engineer, Senior
Telerik team
 answered on 23 Nov 2016
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?