Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
156 views
Hi all,

I would like to know how I can style the edit & the delete buttons and still use the auto generate columns option.
I can get both columns add the beginning of the grid, with text Edit & Delete,  I would like to know how I can get both columns add the end of the grid, and use an image for the edit and delete buttons.

thanks.
Shinu
Top achievements
Rank 2
 answered on 22 Nov 2011
1 answer
172 views
Hello,

I'm using a RadGrid that is bound to a list of objects which gets set on page load (not postback). 
        RadGrid1.DataSource = myList;  
        RadGrid1.DataBind();

I've added columns that cause post backs such as imagebuttons and regular telerik button controls. When I click one of these buttons, the application throws an error in "RadGrid1_ItemCreated". The error occurs when attempting to access the grid data item and cast as my business object (Schedule). It seems the grid is no longer bound to my datasource since I'm no longer able to access this.

protected void RadGrid1_ItemCreated(object sender, GridItemEventArgs e)
if (e.Item is GridDataItem) {
  Schedule tempSchedule = (Schedule)e.Item.DataItem;

I thought it may need to be reloaded on page load, but when I put a break point on page load it doesn't hit. When clicking a button in the grid it seems to go straight to "RadGrid1_ItemCreated". Could you please give me some suggestions for correcting this issue? Do I need to cache my business object list "myList"? 
Jayesh Goyani
Top achievements
Rank 2
 answered on 22 Nov 2011
4 answers
147 views
I have a radgrid in my application in which i am openig a window in button click(server side)to show a pop up. But whenever the page refreshes the window is loading again.How can i resolve this?
Shinu
Top achievements
Rank 2
 answered on 22 Nov 2011
1 answer
79 views

Hi

I have parent grid called  rgParentGrid,

In this I am using some NestedViewTemplate
In this NestedViewTemplate I am using other Radgrid called Chidgrid ,

I am using some item templates in Childgird , I would like bound these itemtemplates in OnItemdatabound (object sender, GridItemEventArgs e)

.

Could anyone please help me on accessing  these item Templates in code behind


Regards
Kiran

Princy
Top achievements
Rank 2
 answered on 22 Nov 2011
2 answers
648 views
I have a text field which I attach a required field validator.  I have a button that initiates a clear() method but this is causing validation to fire.  Any idea of what might be wrong here?  I can change this to an asp textbox and set the value to the asp textbox without validation firing as usual.

<telerik:RadTextBox Save="Text" ID="txtCode" onblur="UcaseTextbox(this, event)" runat="server" MaxLength="4" Width="50px" TabIndex="1"
                     CssClass="textUpper"
                      ToolTip="Vendor Code" CausesValidation="False">
                    </telerik:RadTextBox>
                    <asp:RequiredFieldValidator ID="reqCode" runat="server" ControlToValidate="txtCode"
                      Display="Dynamic" ErrorMessage="<br>Vendor Code required" 
                      SetFocusOnError="True" ForeColor="Red"></asp:RequiredFieldValidator>

<asp:Button ID="btnClear" runat="server" Text="Clear" CausesValidation="false" UseSubmitBehavior="false" OnClientClick="ResetScreen(); return false;"
                                      ToolTip="Clear" TabIndex="3" />


function ResetScreen() {
   $find("txtCode").clear();
}
Shinu
Top achievements
Rank 2
 answered on 22 Nov 2011
1 answer
130 views
Where can I find RadTimePicker demo and documentation?
There is nothing about RadTimePicker here http://demos.telerik.com/aspnet-ajax/input/examples/overview/defaultcs.aspx and http://www.telerik.com/help/aspnet-ajax/input-dateinput-basics.html
Shinu
Top achievements
Rank 2
 answered on 22 Nov 2011
1 answer
80 views
I have a combobox with some items(like Name field).In which client event can I access the selected item text from client side?
Princy
Top achievements
Rank 2
 answered on 22 Nov 2011
1 answer
42 views
I am using RadGrid with paging enable.I don't want to display the combobox.Tried with many CSS.Not working
Shinu
Top achievements
Rank 2
 answered on 22 Nov 2011
1 answer
110 views
How can I remove today link in radscheduler?
Shinu
Top achievements
Rank 2
 answered on 22 Nov 2011
4 answers
157 views
Hi,

I'm trying to set the CSS class of a particular item in the rotator from code behind based on a value I obtain from the database. The following code does set the class but it sets it for a nested div and that's too deep. I need to set it on the <li> generated by the RadRotator for this item.
Private Sub RadRotator1_ItemDataBound(sender As Object, e As Telerik.Web.UI.RadRotatorEventArgs) Handles RadRotator1.ItemDataBound
If IsFeatured Then
e.Item.Attributes.Add("class", "featured")
End If
End Sub

The generated HTML looks like this:
<div class="rrRelativeWrapper">
    <div class="rrClipRegion">
        <ul class="rrItemsList">
            <li class="rrItem">
                <div id="ctl00_..._RadRotator1_i0" class="featured">

I need my "featured" class to be injected in the <li> just above. How can I accomplish this? (Or am I going about it the wrong way?). Thanks!
KDL
Top achievements
Rank 1
 answered on 22 Nov 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?