Telerik Forums
UI for ASP.NET AJAX Forum
16 answers
520 views
Hi I'm trying to extract data from the first column of my radgrid. Is it possible to do this without using a selected method? I want it to be done automatically on page load 
Shinu
Top achievements
Rank 2
 answered on 21 Feb 2014
8 answers
480 views
Hello,

We currently offer our users to download some pdf's from a radGrid thus, we need to disable ajax so we can "push" the file directly to the client without opening a new window.

So on the event "OnRequestStart" of our RadAjaxManager we have this script that disable ajax and it works great. But after the file is pushed, we need to re-enable ajax so crontrols like "RadCombobox" start working again.

function onRequestStart(ajaxManager, eventArgs) 
  if(eventArgs.EventTarget.indexOf("lnkbtnUpload") != -1) 
  { 
     eventArgs.EnableAjax = false
  } 

We tried OnRequestEnd, but didn't work. This event is not event fired, which is probably due to the fact that "ajax" is disabled.

How could this be achieved?

Thanks!
Silvio Silva Junior
Top achievements
Rank 2
 answered on 21 Feb 2014
1 answer
92 views
Hello friends,
In  ASP.NET GridViews we have a property called SelectedRow, this property allows selected a item or colum value, for example:

Grid with columns:

Name   Surname
Jhon      Hills
Patrick  Miller


When I selec the first column I want get the selected surname

for do this we need do follow:

string Surname = GridView1.SelectedRow.Cells[1].Text;
Response.Write(Surname);
//Ouput:
Hills
But In radGrid we don't have this property, anyone knows how can I do this????
Thanks and regards,
Luis


Princy
Top achievements
Rank 2
 answered on 21 Feb 2014
1 answer
281 views
Is it possible to close the light box, when the active image is clicked?

And if so, how would I do that?

regards Kim Hjort
Shinu
Top achievements
Rank 2
 answered on 21 Feb 2014
0 answers
52 views
I have a rad editor on an aspx page.  <telerik:RadEditor ID="txtarFeedback" runat="server" CssClass="textareaRTE" EditModes="Design" Width="631px" Height="118px" StripFormattingOnPaste="MSWord" StripFormattingOptions="MSWord" AllowScripts="false" ContentFilters="RemoveScripts" >

but when I put in <script>alert("hello");</script> it is still in both the Content and in Text when it is submitted to the server.
Admitted Content it is much more harmless but shouldn't it be removing the whole thing from content?
Chrys
Top achievements
Rank 1
 asked on 20 Feb 2014
8 answers
173 views
Is there any way to avoid that the windows content becomes white (E.J: radwindow manager example on teleriks page),  when you have more than one window on the screen and you move it from it's original position while you are moving it?
New Roc web-development
Top achievements
Rank 1
 answered on 20 Feb 2014
4 answers
432 views
Hello
I am trying to grab the SelectedValue of a RadComboBox unsuccessfully on button click.

protected void smsBtn_Click(System.Object sender, System.EventArgs e)
{
        MyClass MC= new MyClass (_FID, emTxBx.Text);
{
if (!MC.IsError)
{

string _carrier = carrierRcb.SelectedValue;

MC.SMSMessage(_FID, _carrier, cellTxBx.Text);

statusLbl.ForeColor = System.Drawing.Color.Red;
statusLbl.Text = "Your Code Key has been sent.";
statusPnl.Visible = true;
}
else
{
statusLbl.ForeColor = System.Drawing.Color.Red;
statusLbl.Text = "There was an error sending your request.";
statusPnl.Visible = true;
}
}

}


Seems like a simple thing to do. Am I missing something here?
ADAPT
Top achievements
Rank 2
 answered on 20 Feb 2014
0 answers
59 views
Hi, 

How can i access to parameters in server side in Telerik Reporting?

Thanks, Bruno F.
Bruno
Top achievements
Rank 1
 asked on 20 Feb 2014
3 answers
205 views
I am developing the RadFileExplorer Custom Provider in order to show network files. My problem is that tree view on the left side is refreshing but on the right panel folders are not updating. I can see only the main root folders but not inside in that.

Kindly Help
Vessy
Telerik team
 answered on 20 Feb 2014
4 answers
210 views
        The root is loading fine but I get just the last child item
Can anyone help me, please

         public void Page_Init(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                // Do something resource-intensive that you only want to do on GETs
                DataTable dtMenu = SplendidCache.TabMenu();                // Hide the tab menu if there is no menu to display.
                // This should only occur during login.
                if (dtMenu.Rows.Count == 0)
                {
                    this.Visible = false;
                    return;
                }
                for (int nRow = 0, nDisplayedTabs = 0; nRow < dtMenu.Rows.Count; nRow++)
                {
                    DataRow row = dtMenu.Rows[nRow];
                    string strModuleName = Sql.ToString(row["MODULE_NAME"]);
                    string strRelativePath = Sql.ToString(row["RELATIVE_PATH"]);
                    string strDisplayName = Server.HtmlEncode(L10n.Term(Sql.ToString(row["DISPLAY_NAME"])));                    RadMenuItem child = new RadMenuItem();
                    child.Text = strDisplayName;
                    child.Value = strModuleName;
                    child.NavigateUrl = strRelativePath;                    SMGMenu.Items.Add(child);                    if (!String.IsNullOrEmpty(strModuleName))
                    {
                        ChildMenu(strModuleName, child);
                    }
                }
                SMGMenu.DataBind();
            }
        }        public void ChildMenu(string parent, RadMenuItem menuItem)
        {
            DataTable dtShortcuts = SplendidCache.Shortcuts(parent);
            RadMenuItem subChild = new RadMenuItem();            string strSubRelatedPath = String.Empty;
            string strSubDisplayName = String.Empty;
            string strSubModuleName = String.Empty;            if (dtShortcuts.Rows.Count > 0)
            {
                foreach (DataRow rowShortcuts in dtShortcuts.Rows)
                {
                    strSubRelatedPath = Sql.ToString(rowShortcuts["RELATIVE_PATH"]);
                    strSubDisplayName = Server.HtmlEncode(L10n.Term(Sql.ToString(rowShortcuts["DISPLAY_NAME"])));
                    strSubModuleName = Sql.ToString(rowShortcuts["MODULE_NAME"]);                    subChild.Text = strSubDisplayName;
                    subChild.Value = strSubModuleName;
                    subChild.NavigateUrl = strSubRelatedPath;                    if ((!String.IsNullOrEmpty(parent)) && (!String.IsNullOrEmpty(strSubModuleName)))
                    {
                        if (parent.ToLower() != strSubModuleName.ToLower())
                        {
                            ChildMenu(strSubModuleName, subChild);
                        }
                    }
                    menuItem.Items.Add(subChild);
                }
                SMGMenu.Items.Add(menuItem);
            }
        }
Boyan Dimitrov
Telerik team
 answered on 20 Feb 2014
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?