Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
135 views
I am using the default RadGrid sorting feature, but it only works in some cases. For example:

<telerik:RadGrid runat="server" ID="NumbersGrid" AllowSorting="true" OnNeedDataSource="NeedNumbers" />
protected void NeedNumbers(object sender, GridNeedDataSourceEventArgs e)
{
    ((RadGrid)sender).DataSource = Enumerable.Range(1, 10).Select(number => new { number });
}

This displays 10 numbers in a grid, as you would expect. If you click on the header, a sorting arrow appears but the grid does not actually become sorted. How come?

I am using Telerik 2012.1.
Jeff
Top achievements
Rank 1
 answered on 18 Mar 2013
3 answers
182 views
I am using the code below to show/hide a Radtextbox on item selected from  RadCombobox. For some reason the Radtextbox is disappearing on mouse over.
aspx file 
--------------------
<td class="rowcontent">
<telerik:RadComboBox ID="ddIdentifiedBy" runat="server" DataTextField="FullName" DataValueField="UserId"
  Font-Bold="False" Font-Names="Arial" Font-Overline="False" ForeColor="Black"  OnClientSelectedIndexChanged="OnClientSelectedIndexChanged">                                                                      
 </telerik:RadComboBox>                                                                     
  <telerik:RadTextBox ID="txtIdentifiedBy" runat="server" Style="margin-left:50px; visibility:hidden;">
   </telerik:RadTextBox>
    </td>
<script type="text/javascript">
    function OnClientSelectedIndexChanged(sender, args) {
        var textbox = $find("<%= txtIdentifiedBy.ClientID %>");
        if (args._item._text == "Other") {
            textbox._element.style.visibility = "visible";
        }
        else {
            textbox._element.style.visibility = "hidden";
        }
    }
</script



code behind to for the RadComboBox
-------------------------------------------------

  ddIdentifiedBy.Items.Insert(1, new RadComboBoxItem("Other"));
Ebenezer
Top achievements
Rank 1
 answered on 18 Mar 2013
5 answers
105 views
I have the seen the following error on the ajax demos page today.  FYI

Uncaught ReferenceError: DemoSearch_onClientSearch is not defined
moegal
Top achievements
Rank 1
 answered on 18 Mar 2013
2 answers
97 views
Hi,

I have a slider on one page which then gets posted to another page.  The problem with what I'm doing below is that the items collection isn't passed in client state.  

What is the correct way to get the slider value?

          
NameValueCollection nvc = Request.Form;
RadSlider rs1 = new JavaScriptSerializer().Deserialize<RadSlider>(nvc["RadSlider1_ClientState"]);
var v = rs1.Items[Convert.ToInt32(rs1.Value)];
 
Thanks,

Andy
           
andy
Top achievements
Rank 1
 answered on 18 Mar 2013
2 answers
195 views
I would like insert a RadRadialGauge in a Report.
I tried export ou convert it to Image as byte array or FileStream, this way i could insert as PictureBox.

Do you have a solution for this ?!? 
Can I export RadRadialGauge to a Image object ?!?
Can I insert RadRagial Gauge to a report ?!?

Wainting answer.

Tks
Danail Vasilev
Telerik team
 answered on 18 Mar 2013
4 answers
97 views
Hi,

I triing to use tabstrip Wizard to build one payment gateway. During the first step you adding your items in the cart, next go to payment gateway. After that i need to go outside to the external site and come back after validate the payment like paypal. If i load one new page i lost my data. It's possible to return from one external page and move to next step programatically using somelese like a service to prevent new page loading?. Others ways to go outside and come back in one defined wizard step?.

Thanks, Regards.
Nencho
Telerik team
 answered on 18 Mar 2013
1 answer
108 views
Hi,

We use the skin Webblue with de version 2012-2-607-35.  We want to use now the version 2013-1-220-40.

The WebBlue skin has changed.  I want to know the easiest way to come back to the old WebBlue skin using the new version.  Our client don't want to change it.

Thank you and have a nice day!

Steeve
Galin
Telerik team
 answered on 18 Mar 2013
4 answers
96 views
HI 


   I have two login like admin and user.my doubt is when i login as admin the grid want to show hole record in the database but when i login as user it want to show particular record for that user how it ll be done..this is my doubt if somebody give solution for this
Angel Petrov
Telerik team
 answered on 18 Mar 2013
3 answers
124 views
Scenario:
Click on the "W3C" button (XHTML Validator).

Result:
The following error:

Status: 403 ForbiddenVary: RefererContent-type: text/html

W3C Markup Validation Service

Check the markup (HTML, XHTML) of Web documents

Sorry! This document can not be checked.

No User-Agent header found!

Please identify your software properly by providing the HTTP User-Agent string. Default from an underlying library (eg Java, Ruby, Coda, libwww) is not sufficiently unique in identifying your software. A good practice is to include a URI to more information about your service or software.

Valid XHTML 1.0! The W3C Validator Team

Note:
You can check it also in the demo Rad Editor:
http://demos.telerik.com/aspnet-ajax/editor/examples/overview/defaultcs.aspx

It looks like the request format has been changed on the http://validator.w3.org/ side.

Could you please help me to resolve this problem? 

Thank you in advance.
Rumen
Telerik team
 answered on 18 Mar 2013
4 answers
203 views
Hello
this is my first post. Actually whole days i search for smilar thread on the forum but all contents are related 
editor.getSelection().getRange() gives current location of cursor! yes this gives but if press enter contentArea divided and nodes are like
Facebook
Google
innerHTML is like 'Facebook<br>Google' innerText is like 'FacebookGoogle'
so if cursor located to end of 'google'
then $find("RadEditor1").getSelection().getRange().endOffset = 6 and $find("RadEditor1").getSelection().getRange().
startContainer.data='Google'
if content is like  'Facebook Google' then $find("RadEditor1").getSelection().getRange().endOffset = 15 and $find("RadEditor1").getSelection().getRange().startContainer.data='Facebook Google'

i want cursor location gives position for whole content not for current line and if possible i d like to get current node of contentArea nodes which divided by new line or line breaks



Elvis
Top achievements
Rank 2
 answered on 18 Mar 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?