Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
105 views
I have defined a ClientItemTemplate on my RadComboBox for using during LoadOnDemand, so far, this seems to be working great. However I have a value attached to the return objects as an Attribute that is sometimes empty/null. When this happens, the record in the dropdown shows "null" or "undefined" (if I don't attach the data).

I need to set up the template so that when this happens, it just shows a blank cell instead, but I can't seem to figure out how to do this.

My template looks like this:

<table>
  <tr><td>#=Attributes.DOB#</td></tr>
</table>

My Code looks like:

var dobValue = string.Empty;
item.Attributes.Add("DOB", dobValue);
Fergal
Top achievements
Rank 1
 answered on 10 Dec 2013
2 answers
150 views
I have a radsyncupload to upload my file, after upload i need to bind the filename to a grid. 
Inside grid, i have a edit button, when i click edit button, i need to put back the filename to radsyncupload for user to edit.
Is it possible to do that?

Hristo Valyavicharski
Telerik team
 answered on 10 Dec 2013
1 answer
121 views
How to group the data in RadHtmlChart ?? It can be easily done in RadChart by setting the DataGroupColumn property of the chart.
Does the RadHtmlChart has this property in the latest release ?
Please help with this.


Thanks in advance.
Shinu
Top achievements
Rank 2
 answered on 10 Dec 2013
1 answer
91 views
Hi
On filtering is to possible to check whats being entered into the filter textbox? For one column i want to get whar the user enters if its any special characters then remove it.how to achieve this?
Princy
Top achievements
Rank 2
 answered on 10 Dec 2013
3 answers
380 views
First off I love these charts, they are fantastic and are really impressing our clients with how awesome they look.

Right now, I have a stacked column series and I am trying to add some additional functionality where the user can click on the column and it brings them to another page on the website. I added a function to the OnClientSeriesClicked property of the chart and clicking on a series fires the corresponding function as it should.

I'd like to change the cursor to a pointer so the user knows they can click on it, "cursor: pointer;" in css, but that's not working on the path element.  Is there a way to pull this off?
Vessy
Telerik team
 answered on 10 Dec 2013
4 answers
51 views

I want the grid to have Edit,Add,Delete button or selection but it wont let me ...

Here is the ascx



<%@ Control language="C#" Inherits="DotNetNuke.Modules.Maintenance_bitaddresses.View" AutoEventWireup="false" Codebehind="View.ascx.cs" %>

<%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %>

<telerik:RadGrid ID="RadGrid1" runat="server" CellSpacing="0"

DataSourceID="SqlDataSourceAddresses" GridLines="None"

AutoGenerateColumns="False" AllowAutomaticDeletes="True"

AllowAutomaticInserts="True" AllowAutomaticUpdates="True"

AutoGenerateDeleteColumn="True" AutoGenerateEditColumn="True">

<mastertableview datasourceid="SqlDataSourceAddresses"

datakeynames="CryptoAddress,UserID">

<EditItemTemplate>

<telerik:RadTextBox ID="RadTextBox1" Runat="server" LabelWidth="64px"

Resize="None" Text='<%# Bind("CryptoAddress") %>' Width="160px">

</telerik:RadTextBox>

</EditItemTemplate>

<CommandItemSettings AddNewRecordText="Add" CancelChangesText="Cancel"

SaveChangesText="Save" ShowCancelChangesButton="True"

ShowExportToCsvButton="True" ShowSaveChangesButton="True" />

<Columns><telerik:GridBoundColumn DataField="CryptoAddress"

FilterControlAltText="Filter CryptoAddress column" HeaderText="Address"

ReadOnly="True" SortExpression="CryptoAddress" UniqueName="CryptoAddress"></telerik:GridBoundColumn><telerik:GridBoundColumn

DataField="AddressDescription"

FilterControlAltText="Filter AddressDescription column"

HeaderText="Description" SortExpression="AddressDescription"

UniqueName="AddressDescription"></telerik:GridBoundColumn><telerik:GridBoundColumn

DataField="UserID" DataType="System.Int32" Display="False"

FilterControlAltText="Filter UserID column" HeaderText="UserID" ReadOnly="True"

SortExpression="UserID" UniqueName="UserID"></telerik:GridBoundColumn></Columns></mastertableview>

</telerik:RadGrid>

<asp:SqlDataSource ID="SqlDataSourceAddresses" runat="server"

ConnectionString="<%$ ConnectionStrings:bitratemeConnectionString %>"

SelectCommand="SELECT [CryptoAddress], [AddressDescription], [UserID] FROM [user_cryptoaddresses] WHERE ([UserID] = @UserID)"

ConflictDetection="CompareAllValues"

DeleteCommand="DELETE FROM [user_cryptoaddresses] WHERE [CryptoAddress] = @original_CryptoAddress AND [UserID] = @original_UserID AND (([AddressDescription] = @original_AddressDescription) OR ([AddressDescription] IS NULL AND @original_AddressDescription IS NULL))"

InsertCommand="INSERT INTO [user_cryptoaddresses] ([CryptoAddress], [AddressDescription], [UserID]) VALUES (@CryptoAddress, @AddressDescription, @UserID)"

OldValuesParameterFormatString="original_{0}"

UpdateCommand="UPDATE [user_cryptoaddresses] SET [AddressDescription] = @AddressDescription WHERE [CryptoAddress] = @original_CryptoAddress AND [UserID] = @original_UserID AND (([AddressDescription] = @original_AddressDescription) OR ([AddressDescription] IS NULL AND @original_AddressDescription IS NULL))">

<DeleteParameters>

<asp:Parameter Name="original_CryptoAddress" Type="String" />

<asp:Parameter Name="original_UserID" Type="Int32" />

<asp:Parameter Name="original_AddressDescription" Type="String" />

</DeleteParameters>

<InsertParameters>

<asp:Parameter Name="CryptoAddress" Type="String" />

<asp:Parameter Name="AddressDescription" Type="String" />

<asp:Parameter Name="UserID" Type="Int32" />

</InsertParameters>

<SelectParameters>

<asp:Parameter Name="UserID" Type="Int32" />

</SelectParameters>

<UpdateParameters>

<asp:Parameter Name="AddressDescription" Type="String" />

<asp:Parameter Name="original_CryptoAddress" Type="String" />

<asp:Parameter Name="original_UserID" Type="Int32" />

<asp:Parameter Name="original_AddressDescription" Type="String" />

</UpdateParameters>

</asp:SqlDataSource>

 


Stoyan
Top achievements
Rank 1
 answered on 10 Dec 2013
1 answer
104 views
Hi,

When I use the RadEditor in radwindow I am not getting toggle button functionality correctly. Any help regarding this will be helpful.

Thank you. 
Shinu
Top achievements
Rank 2
 answered on 10 Dec 2013
0 answers
94 views
Hi, i'm trying to set only the position of pager text. What i'm trying to do is this: i want the page navigation in the bottom of the page, and the pager text in the top of the page. Is that possible?
Silvio Silva Junior
Top achievements
Rank 2
 asked on 10 Dec 2013
2 answers
664 views
Hello,

Can anyone help me how to add items to RadDropDownList control from server side?

I tried, but it is not working
RadDropDownList1.Items.Add(ID + 1);

Thanks,
Sam
Sam
Top achievements
Rank 1
 answered on 10 Dec 2013
1 answer
93 views

We are using Telerik RadControls for ASP.NET Ajax version 2013.1.403.40 in an ASP.NET 4.0 web application being viewed in IE8 browsers.

The Document Mode of the browser gets set (via X-UA-Compatible) to IE8 Standards, but since we are on an intranet that we don't control, the Browser Mode is stuck on IE8 Compatibility View, meaning that the userAgent string and other navigator properties report the browser as IE7.

We get a Javascript crash in RadEditor when hitting Enter in a blank list item (which should remove the list item and take the editor back to normal text). We've tried to isolate the code that is interacting badly, but there's a lot of CSS and Javascript so we've had no luck with that. However, if I set the Browser Mode to IE8 in the Developer Tools, there's no crash.

RadEditor's Javascript code seems to be using navigator object properties to determine the browser version, so we've constructed a kludge in which we spoof the navigator object globally to report as IE8. This also fixes the crash, but it isn't a very future-proof solution.

Is there any way around this situation? For example, is there some way to force RadEditor to a particular browser version, or can a custom build be made that does this? We are also going to experiment with newer versions of RadControls, but I'm not confident that this won't introduce different issues related to the browser version confusion, so I'm hoping for a more definitive solution.

Thank you for your time,
Bre

Slav
Telerik team
 answered on 10 Dec 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?