Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
504 views
When using the radbutton (see markup below) I would like to know the controls method to change the cssclass...

I figured I would have access to a method like .set_cssClass... but I don't see that... Via the documentation.. 

What is provided is the get_cssClass...   


Anyway, I know how to do this via straight javascript or jquery.. but is there a telerik way?


<telerik:RadButton ID="ImageButtonStatusLock" CssClass="UnLockIcon" runat="server" Text="Image Button" OnClientClicked="OnClientClicked" AutoPostBack="false" ButtonType="StandardButton">
         <Image EnableImageButton="true" />
     </telerik:RadButton>
Shinu
Top achievements
Rank 2
 answered on 21 Mar 2014
1 answer
233 views

Good afternoon,

I have in my aspx page RadTextBox:

 

<

 

 

 

telerik:RadTextBox ID="CFNTextBox" runat="server" Font-Bold="true" TabIndex="1" Width="150px" CssClass="textbox" >

I would like fire on clientevent OnFocus and OnBlur to change backgroundColor.

When focus gets on textbox one color and when focus leaves textbox another color.

How can I do that?

Thanks so much for your help.

 

​​​​​​​​

 

Shinu
Top achievements
Rank 2
 answered on 21 Mar 2014
1 answer
352 views
I am using Telerik AJAX UI 
V2014.1.225.40.

I am a newbie to both Telerik and Visual 2012 but I am
learning fast.

I added a RadToolBar control to my WebPage and a RadPanelBar
on the left-hand side.  I noticed that on
the RadPanelBar property list, there is a property called “Visible”.  When this is set to false, the PanelBar
disappears.  Very cool!

So next, I wanted to see if I could make the PanelBar appear
(RadPanelBar.Visible=true) when the user clicked on a RadToolBar item (a C#
method in my Default.aspx.cs called “RadToolBar1_ButtonClick”).  So, I noticed that in the list of properties
for RadToolBar, there is a property called “OnClientButtonClicked”.  When I put an “event name” on that property,
Telerik created a JAVA Script HTML function that was empty.

First, what do I put into that empty function.

Second, what do I modify inside my Default.aspx.cs program
that would connect that JAVA Script Function to the method with the code that
sets the Property RadToolBar.Visible to true. 
I looked at the examples and could not found one that matched my needs.

How do I do that?
Shinu
Top achievements
Rank 2
 answered on 21 Mar 2014
1 answer
388 views
Hi
im exporting my grid to pdf but when using DateColumn its raising error System.InvalidCastException: Unable to cast object of type error
Princy
Top achievements
Rank 2
 answered on 21 Mar 2014
14 answers
754 views
I have a user control which I am using for Edits and Inserts. The usercontrol has properties on it that need to be set when rendered or when the editcommand is issued. I am trying to find the usercontrol in the RadGrid so that I can set its properties before it is shown in the edittemplate. The properties that need to be set change the user controls appearence when it is shown and the way it processes data, so the properties have to be set before data is bound....I have tried many events (the EditCommand follows) but the uc cannot be found and is allways Nothing/null.

 

 

Private Sub rg_EditCommand(sender As Object, e As Telerik.Web.UI.GridCommandEventArgs) Handles rg.EditCommand

 

 

 

    Dim uc As UserControl = CType(e.Item.FindControl(GridEditFormItem.EditFormUserControlID), UserControl)

 

    lbl_test.Text =

 

CType(uc, uc_Steps_Party).ID 'this is where the error occurs because uc == Nothing

 

 

 

End Sub

 

I have also tried:
EditCommand

ItemDataBound

ItemCreated

ItemCommand

Always a null exception refering tot he usercontrol.

The Telerick examples seem to only show finding the usercontrol (after) it has renedered like in the UpdateCommand or InsertCommand. I need to find the user control and set its properties before it gets to those events, when the usercontrol is first shown.


reguapo
Top achievements
Rank 1
 answered on 20 Mar 2014
4 answers
136 views
Hello

I add programmaticaly Tab on my TabStrip,
but if the user Refresh the WebPage, i loose My TabStrip and Multipage.

It's possible to Save Tab and Multipage when the user press F5 ?

this sample can  help or not ? : http://demos.telerik.com/aspnet-ajax/tabstrip/examples/application-scenarios/persisting-tabstrip-settings/defaultcs.aspx

Cause the restore not work , for Multipage.

thanks for your help
Olivier,
Olivier
Top achievements
Rank 2
 answered on 20 Mar 2014
3 answers
239 views
How do I hide the control if the SqlDataSource does not have any records?

I tried to get the items.count but it does not seem to work in PreRender or DataBound.

Marty
Marin Bratanov
Telerik team
 answered on 20 Mar 2014
1 answer
177 views

We're experiencing this on our own site, but I also reproduced it in the Default Example for RadEditor.  Steps to take:

  1. Open the example.
  2. Go to the HTML tab and delete ALL the content.
  3. Go to the Preview tab.  Preview content is blank, of course.
  4. Go to the Design tab.  Click anywhere in the editor. The cursor will not appear.
  5. Type any letter and suddenly the cursor appears.  Backspace to delete that letter (so the editor content is empty again) and the cursor remains.
Ross Presser
Top achievements
Rank 1
 answered on 20 Mar 2014
2 answers
605 views
How set RadDatePicker DatePopupButton-ToolTip visible to false?
I vant to remove the tooltip text "Open the calendar popup" Se attached image....
This not work RadDatePicker DatePopupButton-ToolTip=""
Kjell
Top achievements
Rank 1
Iron
Iron
 answered on 20 Mar 2014
1 answer
397 views
Hi Folks - Apologies in advance, this may not be the best place to post.

I have an ASP.NET 3.5 app.  I have a page with a multi-select listbox, a button, a radgrid and a SQL datasource.  The datasource has one param that looks sorta like this ...

<asp:ControlParameter Name="Param1" ControlID="lstParam1" PropertyName="SelectedValue" />

so, currently, without any extra code, only the first selected value from the listbox is passed to the sql datasource.

I have code to make a comma sep list of the multi selected values, and I have a sproc for list_to_table type functionality so thats not the problem.

Problem is that Im having a hard time finding the right event to use to override the default value of this param. 

I can supply more markup/code if needed.

Any help is appreciated ... apologies agian if Im using the wrong forum.
Konstantin Dikov
Telerik team
 answered on 20 Mar 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?