Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
162 views
hi friends,
 i doing a validation on client side to insert a values.
the javascript script validation code are
function validate() {
 if (document.getElementById("<%=rcmbcurrencycode.ClientID%>").value == "Select") {
                alert("Currency Code can not be blank");
                return false;
            }
if (document.getElementById("<%=rtxtinteresttype.ClientID%>").value == "") {
           alert("Interest Type can not be blank");
           return false;
}
}
 
but my problem is , i can not validated length of the string  and to check numeric or alphabetic for currency and name and age

i used following snippets of code check the data are characters are not
var alphaExp = /^[a-zA-Z]+$/;
       if (document.getElementById("<%=rtxtinteresttype.ClientID%>").value == "") {
           alert("Interest Type can not be blank");
           return false;
           if (rtxtinteresttype.value.match(alphaExp)) {
               return true;
           }
           else {
               alert("pls enter only numbers");
               return false;
           }
       }

but its not working for me.
can anyone tell me what mistake i have done in this code.
thanks in advance
S.Rajkumar
Raj
Top achievements
Rank 1
 asked on 09 Feb 2012
2 answers
63 views
I Have an error with RadWindows... in FireFox I see like that




But in IE I see that



How I can fix this?
July
Top achievements
Rank 2
 answered on 09 Feb 2012
4 answers
99 views
Hi All

I currenly have a Row click event that recognized if a certain cell has been clicked, the Javascript then opens a window and passes certain values to the window from the row.
I want to pass some values from Hidden columns however i cannot get the value unless the column is either visible or display = false,
If i set the display to False this then completely confuses the Row Click event, So i have set the columns to zero width to overcome the problem.

However i would really like to hide these columns, so my question: is there "Any" way using java to get the cell value if the associated column is hidden?

Many Thanks

Regards

Darren
Pavlina
Telerik team
 answered on 09 Feb 2012
4 answers
200 views
Hello,

I have to create a custom menu in sitefinity that must match & respect my design 100%. Unfortunately, I couldn't find any tutorial that shows step by step what i have to do. As far as i've seen there is a Navigation control that allows you to customize your menu by giving a css file or a template. In traditional html/css sites i would crop my buttons from the design and would integrate them in the design with an <a href=""><img src=""></a>.
How should i do it?
Another problem i am dealing with is that i have to create a multi language website. So i would use the Language Selector control. Can i use it and have different content in the pages? For instance in the English Language page, i would have 4 columns in a widget, and in the German Language page i would have only 3 columns, and different pictures, content, etc?
Please give me some hints, tutorials or anything that could put me on track.
Thanks.

Edit: I am not interested in drop-down menus, i want a simple linear menu. I tryed the navigator control and it generated me only one button, because i am working on the home page template. Should i create the whole structure of the website and then create the menu? This way sitefinity will generate all the buttons for all the pages?
Thanks
Jen Peleva
Telerik team
 answered on 09 Feb 2012
2 answers
308 views
How to remove the tooltip from RadCaptch Refresh Button as it is showing the Path of the image. Attached screenshot.
Also let us know if we need any custom tooltip how to set for Captch Refresh Button.
Slav
Telerik team
 answered on 09 Feb 2012
2 answers
228 views
When entering a value in the numeric textbox with a large decimal value such as 0.000013, the value turns into scientific notation, 1E-03 or something to that effect on postback. I have tried removing the DecimalDigits property as well as setting KeepNotRoundedValue to true or false and AllowRounding to true or false without any luck. Any decimal less than the initial four zero's for the precision are handled correctly. I see this error may already have been resolved in the latest Q1 2012 BETA release but I am instructed not to use BETA versions for any development since this will be incorporated into production code. Is there any workaround to allow me to use a six digit decimal value with 4-5 zero's in the precision without having to do away with the numeric textbox until the final Q1 release comes out? Maybe an override or something for this hover effect turning into scientific notation?

Thanks,
Brandon
Mira
Telerik team
 answered on 09 Feb 2012
10 answers
144 views
Anyone have any ideas what would cause the images for the expand/collapse not to render.  See the attached screenshot.
I am not doing anything out of the ordinary.  And haven't modified the styles at all.

The treelist is on a UserControl.

Hopefully someone can point me in the right direction.

Thanks,
Kenneth
Tsvetina
Telerik team
 answered on 09 Feb 2012
2 answers
91 views
Hi

Below is my Code:
<FONT color="#0000ff" size="2" face="Consolas"><FONT color="#0000ff" size="2"
face="Consolas"><FONT color="#0000ff" size="2"
face="Consolas"><telerik:RadPanelItem Text="Content Details" Expanded="True"
PostBack="false"
Selected="true"><BR>
<Items><BR>
<telerik:RadPanelItem Text="Description" Value="DESCRIPTION"
></telerik:RadPanelItem><BR>
<telerik:RadPanelItem Text="Objectives/Requirements"
Value="Requirements"></telerik:RadPanelItem><BR>
<telerik:RadPanelItem Text="Scenario Details"
Value="ScenarioDetails"></telerik:RadPanelItem>
<BR>
<telerik:RadPanelItem Text="Categorization"
Value="TrainingDiscipline"></telerik:RadPanelItem><BR>
<telerik:RadPanelItem Text="Simulator Details"
Value="SimulatorDetails"></telerik:RadPanelItem>
<BR>
<BR>
</Items><BR>
</telerik:RadPanelItem><BR></FONT></FONT></FONT>

Now I want to maintain the Selected Item even if click the Root Item(Here : "DESCRIPTION").

if click any item under "DESCRIPTION" then the selected item is highlighted
and Now if click the root item i.e."DESCRIPTION" then the "DESCRIPTION" is Highlighted, but i want to hhighlight the child Item i.e "Categorization", because i'm still on the same page.

I attached the screen shots also. I want to maintain the Highlighted selected Item based on the current page.
Thanks in Advance
karthik

Karthik
Top achievements
Rank 1
 answered on 09 Feb 2012
4 answers
214 views
Hi,

I have implemented stylesheetManager for my application.
I am trying to set different theme on postback i.e. by adding css files dynamically.

here is sample code:

private void AddStyleSheets(RadStyleSheetManager styleSheetManager)
        {
            styleSheetManager.StyleSheets.Clear();
  
            if (SessionManager.CurrentSessionManager.PageTheme.ToLower().Equals("tone"))
            {
                styleSheetManager.StyleSheets.Add(new Telerik.Web.UI.StyleSheetReference("SNet.RTO.Skins.TOne.ComboBox.css", "SNet.RTO.Skins.TOne"));
            }
            else
            {
                styleSheetManager.StyleSheets.Add(new Telerik.Web.UI.StyleSheetReference("CustomSkins.ComboBox.css", "CustomSkins"));
            }
  
            styleSheetManager.ApplyStyleSheetSkin(Page);
        }

I am calling above method on Page's Init event.

Style is set on first time load only and never works after postback. I have read following post but of no use.
http://www.telerik.com/community/forums/aspnet-ajax/scriptmanager-and-stylesheetmanager/stylesheetmanager-does-not-update-head-section-after-ajax-postback.aspx

Any help? Thanks in anticipation.
Simon
Telerik team
 answered on 09 Feb 2012
7 answers
180 views
I have a couple of RadListBox controls on a page configured to use the Listbox\ Transfer functionality as outlined in this Demo.

I have bound an "onkeypress" event to both listboxes in the code behind. Thus

lstFirstListBox.Attributes.Add("onkeypress", "filterListBox('" + lstFirstListBox.ClientID + "', event);");
lstSecondListBox.Attributes.Add("onkeypress", "filterListBox('" + lstSecondListBox.ClientID + "', event);");

similar to this Forum Thread and the attached example.

The problem I have encountered is that the 'onkeypress" event does not fire in Firefox. It fires in IE without any problems.

However, it will fire in Firefox after I transfer an item from one listbox to the other. In this case it does not metter which listbox has focus the event is fired on 'FirstListBox" every time. That is, I transfer an item from First to Second and then perform a key press, it fires on First. I tranfer an item from Second to First and then perform a keypress, it fires on First.

For testing I have limited the "filterListBox" function to pop up an alert with the first parameter which, apart from in IE, is always the FirstListBox clientID.

I also tried binding the event using jQuery and got the exact same behaviour.

The event does seem to fire at all in Chrome or Safari no matter what combination of clicks or trickery I attempt.

Any ideas would be greatly appreciated.
Bozhidar
Telerik team
 answered on 09 Feb 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?