Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
116 views
Hello,
    I want to use captcha in my login page. I have username textbox and password textbox and loginbutton.
If the username or password was fail three times i want to show captcha image and then after tens time i want to disable user.
Any Suggestion?
Pero
Telerik team
 answered on 22 Apr 2011
1 answer
162 views
I am using RadCaptcha in a user control in an application form.  It contains many asp.net controls (ie textboxes, dropdownlists, and etc) that expanded the form from top to bottom result in a vertical scroll bar.  The RadCaptcha is placed at the bottom before the submit button.

Functionality wise, the RadCaptcha is working as expect but everytime I click the link to play the audio, the form would automatically scrolls to the top instead of staying at the bottom.  In contract, the Generate New Image would stay where it is after a new image is generated.  Is this the normal behavor of the control?  How do I prevent it from focus to the top of the form when playing the audio?

Regards,

Donny


===
This is how I added the RadCaptcha to the usercontrol:

 

protected void Page_Init(object sender, System.EventArgs e)
  
  
captcha = new Telerik.Web.UI.RadCaptcha();
  
captcha.ID = "captcha";
  
captcha.ErrorMessage = "The security code you entered did not match. Please try again.";
  
captcha.EnableRefreshImage = true;
  
captcha.CaptchaAudioLinkButtonText = "Play Audio Code";
  
captcha.CaptchaImage.EnableCaptchaAudio = true;
  
captcha.CaptchaImage.AudioFilesPath = Server.MapPath("/forms/RadCaptcha");
  
captcha.CaptchaImage.UseAudioFiles = true;
  
captcha.CaptchaTextBoxLabel = String.Empty;
  
captcha.Visible = true;
  
divCaptcha.Controls.Add(captcha);
  
}

 

 

 

 

Pero
Telerik team
 answered on 22 Apr 2011
4 answers
143 views
Hi!

I'm using a RadGrid with a manual code behind handler to save (update and insert) the data from the Grid Command.  However, I've been asked to additionally create a button at the bottom of the form which will duplicate (not replace) these functions as well to give users more confidence.  Doing it on the Command eventhandler is very easy, however I'm not sure how to perform the same functions outside of the handler.  Could you give me some advice/direction on this?

Thanks!
-P
Jayesh Goyani
Top achievements
Rank 2
 answered on 22 Apr 2011
2 answers
195 views
Hello,
In the Edit form, is there a way to change whether an item is visible in the edit form through code.  I know that you can set the property of the column to read only, but how would you do that in default.aspx.cs

Thank you.
Nguyen
Top achievements
Rank 1
 answered on 22 Apr 2011
1 answer
69 views
Hey,

I am reusing the exact example in the following telerik demo RadGrid with UC.
The one and only change I made is that I reload my Combobox from a database. Everything works fine when Editing an existing row, but when I hit the "Add new Record", the RadComboBox gets the same values twice. I tracked this in the debug mode, and the RadComboBox shows the correct items count, but when rendered in the page, it is X2.

here is the only code I changed from the above example, I am using 2010 Q3.

Private Sub Page_DataBinding(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.DataBinding
 
      Me.CmDealer.Items.Clear()
      Me.CmDealer.AppendDataBoundItems = True
      Me.CmDealer.Items.Add(New ListItem("", "0"))
 
      Me.CmDealer.DataValueField = "ID"
      Me.CmDealer.DataTextField = "Name"
      Me.CmDealer.DataSource = DataManager.GetDealers()
      Me.CmDealer.DataBind()
 
      Dim dealer As Object = DataBinder.Eval(DataItem, "IDDEALER")
 
      If dealer.Equals(DBNull.Value) Then
          CmDealer.SelectedValue = 0
          Return
      End If
 
      CmDealer.SelectedValue = CInt(dealer)
      CmDealer.DataSource = Nothing
 
      ''''''''''''''''''''''
 
      Me.CmManager.Items.Clear()
      Me.CmManager.AppendDataBoundItems = True
      Me.CmManager.Items.Add(New ListItem("", "0"))
 
      Me.CmManager.DataValueField = "ID"
      Me.CmManager.DataTextField = "Name"
      Me.CmManager.DataSource = DataManager.GetManagers()
      Me.CmManager.DataBind()
 
      Dim manager As Object = DataBinder.Eval(DataItem, "IDMANAGER")
 
      If manager.Equals(DBNull.Value) Then
          CmManager.SelectedValue = 0
          Return
      End If
 
      CmManager.SelectedValue = CInt(manager)
      CmManager.DataSource = Nothing
 
  End Sub


What is wrong with my code?

Thanks in advance!
-Mahmoud
Mahmoud
Top achievements
Rank 1
 answered on 22 Apr 2011
2 answers
83 views
HI,
I have a RadComboBox as an EditItemTemplate field within FormView. That FormView is decorated using FormDecorator. That combobox is rendered totally weird (IE, Firefox) when DecoratedControls is set to GridFormDetailsViews. But, if FormView is not decorated it renders, of course, as it should. Any help?
asimptota
Top achievements
Rank 1
 answered on 21 Apr 2011
1 answer
370 views
Greetings,

We are dynamically creating a Menu using RadTreeView control and each node is binded with .aspx page. When a node is clicked, the whole page postbacks and redirects to the assigned .aspx page and the RadTreeView control(Menu) will be recreated. As the page postbacks, the selected node losts its focus and all the nodes are getting collapsed.

As per our requirement, We need to set the focus on the selected node and its parent node to be expanded, even if the page postbacks. Please help us on this.

We tried getting the selected node value on RadTreeView_NodeClick event and this event is not firing consistantly.

FYI, we are binding the RadTreeView control using LINQ on Page_Load event and below is the code for the same.
=======================

rtvMenu.Nodes.Clear();

rtvMenu.DataTextField =

 

"MENU_NAME";

 

 

rtvMenu.DataValueField =

 

"MENU_ID";

 

 

rtvMenu.DataFieldID =

 

"MENU_ID";

 

 

rtvMenu.DataFieldParentID =

 

"PARENT_MENU_ID";

 

 

rtvMenu.DataNavigateUrlField =

 

"LANDING_PAGE";

 

 

rtvMenu.DataSource = v_Menu;

 

rtvMenu.DataBind();

=======================

Nikolay Tsenkov
Telerik team
 answered on 21 Apr 2011
1 answer
60 views
Dear Sir/Madam,

I have to add new appointment for event for all day in java script. Please provide me client side api's. Also please provide me some examples. We are using ASP.NET 3.5 framework.
Please find the attachment for reference.
Nikolay Tsenkov
Telerik team
 answered on 21 Apr 2011
2 answers
139 views
Hello,

My RadSiteMap control is in a DIV and I would like to align it to the right of the DIV:

<div id="col3" style="Width:40%">
 <telerik:RadSiteMap ID="SiteMap1" runat="server" DataTextField="Text" DataNavigateUrlField="NavigateUrl">
 <DefaultLevelSettings ListLayout-RepeatDirection="Horizontal" SeparatorText=">" Layout="Flow" />
</telerik:RadSiteMap>
</div>

So, I have tried many overrides without success:

#SiteMap1 .Header, .rsmLevel, .rsmItem, .ContentHolder, .rsmTemplate, .rsmList, .rsmFlow etc
{
    text-align: right;
}
 
So, is there a way to override text-align ?

Thanks in advance.

Pierrick
Pierick Mellerin
Top achievements
Rank 1
 answered on 21 Apr 2011
8 answers
637 views
 Hi,

I am using the timeline view for RadScheduler. By default the scheduler has a fixed height and resource headers height is the total height divided by number of resources(see screen shoots). Is it possible to have the height of the scheduler to auto increase when new resources are added, so that the resources always has a fixed height? And if so how can I accomplish that?



Thank you,
Anders
Anders
Top achievements
Rank 1
 answered on 21 Apr 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
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?