Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
103 views
Hi, 

I have ajaxified RadGrid and in CommandItemTemplate I have RadToolBar with several buttons for my custom actions for data in the grid, which I handle in RadGridResults_ItemCommand(object sender, GridCommandEventArgs e).

In that function firstly I perform some validations before I continue working with those data. But I think some of those validations can be done by javascript on client side but I don't know how to do that. Could you advice me how to implement when user clicks on RadToolBarButton firstly some javascript function will be called where some conditions will be evaluated and if everything will be correct, it will be sent to server where RadGridResults_ItemCommand function will handle them.

Thanks for any help, 

Peter



Angel Petrov
Telerik team
 answered on 15 Apr 2013
1 answer
62 views
Hi,

I want to remove an item from the RadTagcloud through JS. I am able to access all the items in JS, but my delete statement generates an exception. Please help we with a JS code to delete item.

Thanks in advance,
Needha.
Princy
Top achievements
Rank 2
 answered on 15 Apr 2013
1 answer
323 views
Hi,

My first question is does telerik has a RadioButtonList control like in ASP. Now I am using asp RadioButtionList that contain few options. On Clicking the "other", i want to display a RadTextBox. Similarly selecting other buttons, i need to hide the RadTextBox. I am not good in Client side code. So please help.

Thanks in advance,
Needha.
Princy
Top achievements
Rank 2
 answered on 15 Apr 2013
1 answer
228 views
Hi,

Using CSS, is it possible to horizontally align the Transfer and Reorder buttons of RadListbox?

Thanks,
Antony.
Princy
Top achievements
Rank 2
 answered on 15 Apr 2013
1 answer
148 views
Hi Telerik Team,

Does telerik got any inbuilt control to display slideshow of pictures?

Thank you,
Dona.
Princy
Top achievements
Rank 2
 answered on 15 Apr 2013
1 answer
95 views
Hi,

There are two listboxes in my page with transferring and reordering of items enabled. Is it possible to get the item text in javascript on dragging from the item from first listbox and droping into the second listbox?

Thanks,
Antony.
Princy
Top achievements
Rank 2
 answered on 15 Apr 2013
3 answers
247 views
Is there a way to use a RadEditor for editing a radgrid item. So for intance I only have 1 column but I need to allow the user to edit using a radgrid to add images etc in and formatting. IS there a way to do this easily? Also it's a heiarchy, 3 layers
Thanks
Princy
Top achievements
Rank 2
 answered on 15 Apr 2013
11 answers
342 views
Hi,
I have a page which will have the rad rating control.

Actually i am trying to get the selected value while user clicks on the rating item.

This is my aspx page code

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="testpage.aspx.cs" Inherits="testpage" %>

<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
     
</head>
<body>
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
    </telerik:RadScriptManager>
   
    <form id="form1" runat="server">
    <telerik:RadRating ID="ratingBar" runat="server" Orientation="Horizontal" ItemHeight="61px"
                        ItemWidth="11px" CssClass="ratingClass" OnRate="RadRating1_Rate" Precision="Exact" AutoPostBack="True">
                        <Items>
                            <telerik:RadRatingItem Value="1" HoveredImageUrl="Images/Rating/Rating1/1h.png" HoveredSelectedImageUrl="Images/Rating/Rating1/1h.png"
                                SelectedImageUrl="Images/Rating/Rating1/1s.png" ImageUrl="Images/Rating/Rating1/1.png" ToolTip="Very Low"  />
                            <telerik:RadRatingItem Value="2" HoveredImageUrl="Images/Rating/Rating1/2h.png" HoveredSelectedImageUrl="Images/Rating/Rating1/2h.png"
                                SelectedImageUrl="Images/Rating/Rating1/2s.png" ImageUrl="Images/Rating/Rating1/2.png" ToolTip="Low" />
                            <telerik:RadRatingItem Value="3" HoveredImageUrl="Images/Rating/Rating1/3h.png" HoveredSelectedImageUrl="Images/Rating/Rating1/3h.png"
                                SelectedImageUrl="Images/Rating/Rating1/3s.png" ImageUrl="Images/Rating/Rating1/3.png" ToolTip="Medium" />
                            <telerik:RadRatingItem Value="4" HoveredImageUrl="Images/Rating/Rating1/4h.png" HoveredSelectedImageUrl="Images/Rating/Rating1/4h.png"
                                SelectedImageUrl="Images/Rating/Rating1/4s.png" ImageUrl="Images/Rating/Rating1/4.png" ToolTip="Medium-High" />
                            <telerik:RadRatingItem Value="5" HoveredImageUrl="Images/Rating/Rating1/5h.png" HoveredSelectedImageUrl="Images/Rating/Rating1/5h.png"
                                SelectedImageUrl="Images/Rating/Rating1/5s.png" ImageUrl="Images/Rating/Rating1/5.png" ToolTip="High" />
                            <telerik:RadRatingItem Value="6" HoveredImageUrl="Images/Rating/Rating1/6h.png" HoveredSelectedImageUrl="Images/Rating/Rating1/6h.png"
                                SelectedImageUrl="Images/Rating/Rating1/6s.png" ImageUrl="Images/Rating/Rating1/6.png" ToolTip="Very High" />
                        </Items>
        
                    </telerik:RadRating>

    <asp:Button ID="Button1" runat="server" Text="Button" onclick="Button1_Click" /><br /><asp:Label ID="Label1" runat="server"
        Text="Label"></asp:Label>

  

    </form>
</body>
</html>

Here is my Code behind

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Collections.ObjectModel;
using System.IO;
using System.Drawing;
using Telerik.Web.UI;
public partial class testpage : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        
    }
  
    protected void Button1_Click(object sender, EventArgs e)
    {
        Label1.Text = ratingBar.Value.ToString();
    }

    protected void RadRating1_Rate(object sender, EventArgs e)
    {
        Label1.Text = ratingBar.Value.ToString();
    }
}

I can able to get the selected value on button click.

But the Onrate is not working.Even in debug mode I checked.

The OnRate event is not fired while clicking on the Rating control.

Please can any one suggest me how to proceed with this.

Thanks in Advance
Thenmozhi.R
Zura Chikhladze
Top achievements
Rank 1
 answered on 15 Apr 2013
3 answers
159 views
Hi,
I'm using RadGrid all over in my project using Telerik's Hay skin which uses black Grid Wrapper. I want to be able to hide Wrapper entirely or change Its background to some other background color. Is It possible to add custom text i.e. some header text to inform user about what data it contains ?



Please not the screen shot attached here for your reference.

Thanks
Galin
Telerik team
 answered on 15 Apr 2013
1 answer
75 views
Here's my following code:

<telerik:GridTemplateColumn UniqueName="UserName" DataField="FirstName" DataType="System.String" AllowFiltering="false" SortExpression="FirstName">
                <HeaderTemplate>
                      <asp:LinkButton id="btnName" runat="server"
                         Text="Name"
                         Title="Sort by Name"
                         CommandName='Sort'
                         CommandArgument='FirstName' />
                    </HeaderTemplate>
                    <ItemTemplate>
                                        <span class="ListTitle" style="font-size: 14px;">
                                        <%#Container.DataItem("FirstName")%> <%#Container.DataItem("LastName")%></span><br />
                                        <div class="QuestionDetails">
                                        <strong><%#Container.DataItem("EmailAddress")%></strong>
                                        </div>
                    </ItemTemplate>                
                </telerik:GridTemplateColumn>

It sorts properly and highlights the selected sorting column. I know that to do multiple sorting in a single template column you just add another link button with the new field to be sorted like similar to what this is doing here: http://demos.telerik.com/aspnet-ajax/grid/examples/generalfeatures/columntypes/defaultvb.aspx?#qsf-demo-source .The issue i see from that demo and my page is that it no longer highlights the sorted column if i add another link button in the header template. My question is how do i set it that it highlights if i select either sorting button?





Eyup
Telerik team
 answered on 15 Apr 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?