Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
166 views
Hi,
I have a Radnumerictextbox and i want to enter values with 2 decimal places. Also how to access these values with decimal place in code behind?
Thank you,
Merlin.
Princy
Top achievements
Rank 2
 answered on 26 Feb 2013
2 answers
334 views
Hi,

I'm trying to use this:
<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>" SelectCommand="SELECT [ProductID], [ProductName], [ProductPrice], [PicName], [ModifiedDate] FROM [Products] WHERE ([UserID] = @UserID)">
<SelectParameters>
<asp:SessionParameter Name="UserID" SessionField="LoginID" Type="Int32" DefaultValue="1" />
</SelectParameters>
</asp:SqlDataSource>

My stored cookie name is: LoginID and the content is: UserGUID=c2a89926-868b-41a2-bad2-9a67fe9c140a&UserID=2

How can I get the UserID session value from my session?
Shinu
Top achievements
Rank 2
 answered on 26 Feb 2013
114 answers
6.5K+ views
I know that the Rad Controls are built ontop of ASPNet Ajax controls.  However, I downloaded the a new version of the Ajax toolkit and I get the following JS error:
 AjaxControlToolkit requires ASP.NET Ajax 4.0 scripts. Ensure the correct version of the scripts are referenced. If you are using an ASP.NET ScriptManager, switch to the AjaxScriptManager in System.Web.Ajax.dll, or use the ToolkitScriptManager in AjaxControlToolkit.dll.

What version of ASP.NET Ajax is RadControls using?  Thanks,

-Hector
Radoslav
Telerik team
 answered on 26 Feb 2013
1 answer
84 views
I want to display an ASPX page in a PageView which I am currently doing with the ContenURL.
Page displays fine but I don't want to open that page in a new window on tab click. Is there any way to disable that?
Should I be doing this another way?
Nencho
Telerik team
 answered on 26 Feb 2013
3 answers
125 views
I am curious if there is a possibility of converting content posted using Radeditor in a wss3 environment to the standard content editor web part. For instance in preperation for migration to foundation 2010. so that the site retains the posted content but leverages the out of box editor in the new environment.
Rumen
Telerik team
 answered on 26 Feb 2013
3 answers
162 views
I have two RadComboBox controls on a page and both of them are being fed from the same XML Data Source. When I select an item from the list and then click on the next ComboBox or anywhere else on the page, the selection goes back to the original selection which is always just the first item in the list. The selected item never holds. This is true for both ComboBox controls and I cannot figure out why.

I did just find out that if I tab through each control and use my arrow keys to select the items, then the selections will hold, but not if I use my mouse.
Dimitar Terziev
Telerik team
 answered on 26 Feb 2013
3 answers
229 views

I have a RadGrid binded to a SessionDataSource .

and I want to fire RadGrid PerformInsert Command, I don't want to use the SessionDataSource
Insert() Function
 because the values has to be sent into an IDictionary Type. anyway I want to fire the insert command from the Grid itself by assigning the DefaultValues of the SessionDataSource<InsertParameters>.

OR ,

If I just knew how convert a DataTable or DataSet into IDictionary Type with a For Loop through Table Rows , It will acheive the Goal.

Shinu
Top achievements
Rank 2
 answered on 26 Feb 2013
9 answers
308 views
Hello

I have a custom skin for RadGrid. What should i change in css to have my page size dropdown rendered correctly.
See the attached image.
Eyup
Telerik team
 answered on 26 Feb 2013
0 answers
459 views
These issues are fixed in Q1 2013 SP1.

In Q1 2013 the Server-side OnClick event handler is not called and Client-side validation is not performed when ValidationGroup is set for a RadButton. The scenarios are as follows:

  • The Server-side OnClick event is not triggered by a RadButton when it is used on a master page and the button's ValidationGroup property is set. This behaviour is observed under Internet Explorer, Chrome and Safari, but not in FireFox and Opera. If, however, the RadAjaxManager is used in the master page the issue is observed in all browsers. (Link to feedback portal)
  • Client-side ASP.NET validation is not executed when it is initiated by a RadButton and its ValidationGroup property is set. The unexpected behaviour is observed under FireFox and Opera. (Link to feedback portal).

These issues have already been fixed in the 2013.1.227 internal build and the fixes will also be present in the upcoming Q1 2013 SP1. The internal build can be used for development and it can be downloaded from this page. For the time being the following workaround can be used in both scenarios.

This is a common setup that will cause the problems described above:

<asp:TextBox runat="server" ID="TextBox1" />
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="TextBox1"
    ValidationGroup="TextBoxValidation" Text="*" />
<telerik:RadButton runat="server" ID="RadButton1" ValidationGroup="TextBoxValidation"
    Text="Submit" />

This function override should be placed at the end of the page to fix the issues:
<script type="text/javascript">
    Telerik.Web.UI.RadButton.prototype._buildPostBackOptions = function() {             
        var options = this._getPostBackOptions() || {
            eventTarget: this.get_uniqueID(),
            eventArgument: this.get_enableSplitButton() ? 'RadButtonEventArguments': '',
            validation: this._validationGroup ? true: false,
            validationGroup: this._validationGroup,
            actionUrl: this._navigateUrl || '',
            trackFocus: false,
            clientSubmit: !this.IsInputTypeSubmit() || this.get_singleClick() || this.get_buttonType() != Telerik.Web.UI.RadButtonType.StandardButton || this.IsImageButton(),
        };                   
        return "new WebForm_PostBackOptions('" + options.eventTarget + "', '"
            + options.eventArgument + "', "
            + options.validation + ", '"
            + options.validationGroup + "', '"
            + options.actionUrl + "', "
            + options.trackFocus + ", "
            + options.clientSubmit + ")";
    }
</script>
Telerik Admin
Top achievements
Rank 1
Iron
 asked on 26 Feb 2013
2 answers
166 views
Hi,

I am using the new Search component to search for nodes in a RadTreeView. (Is there a way to do this directly?)

I'm using an ArrayList to capture all my node names, and during Page_load, I am populating this ArrayList and then setting the datasource of my search box to this list.

// this line is in a for loop, adding elements to my arrayList
measureSearchNodesList.Add(m.ToString());

RadMeasuresSearchBox.DataSource = measureSearchNodesList;

This seems like it should work based off the documentation, but any letter I type into the box returns a client side error of "Datasource not sets."

I haven't done much with my onSearch event handler just yet, because I wanted to first ensure the search box was getting bound. Any ideas?

Thanks,

Ajit
Bozhidar
Telerik team
 answered on 26 Feb 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?