This is a migrated thread and some comments may be shown as answers.

change CSS for IndicatorElementBaseStyle

8 Answers 48 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
sho
Top achievements
Rank 1
sho asked on 20 Oct 2011, 02:23 PM
Hi,

I want to change the background color for Indicator in InputPasswordStrengthSettings.  What all I should specify in the CSS file?

Thanks,

8 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 21 Oct 2011, 06:20 AM
Hello Sho,

By default you change CSS for IndicatorElementBaseStyle by overriding the following CSSes .riStrengthBarL0,.riStrengthBarL1,.riStrengthBarL2,.riStrengthBarL3,.riStrengthBarL4,.riStrengthBarL5
As an example you can change the VeryWeak CSS as shown below similarly you can use the other CSS classes to change its own background color.
CSS:
<style type="text/css">
.riStrengthBarL1
{
 background:Yellow !important;
}
</style>

Thanks,
Shinu.
0
Gayathri
Top achievements
Rank 1
answered on 20 Aug 2015, 01:19 PM

Hi Shinu,

 

I just want to have only these levels. "Weak,Medium,Strong"
and i am giving the value as "50;15;15;20"  . please advise what value to specify to have only weak,Medium and strong.

0
Viktor Tachev
Telerik team
answered on 24 Aug 2015, 11:25 AM
Hello Gayathri,

In order to specify the strength descriptions manually you should add them to the TextStrengthDescriptions property.

<telerik:RadTextBox ID="RadTextBox1" runat="server" TextMode="Password">
    <PasswordStrengthSettings ShowIndicator="true" TextStrengthDescriptions="Weak;Medium;Strong" />
</telerik:RadTextBox>


Regards,
Viktor Tachev
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Gayathri
Top achievements
Rank 1
answered on 08 Sep 2015, 08:24 AM

Hi,

 

Thanks for your reply. Meanwhile i need one more help. Since i am not able to add a new thread adding hereitself.

   function ProcesHierarchyClick(sender, args)
    {    


        var ajaxManager = $find("<%="ajmMaster"%>");                 
               
        
        if(args.get_node().get_enabled())    
        {
            gAjaxRequestArgs = "HierNode:" + args.get_node().get_value();
            ajaxManager.ajaxRequest( gAjaxRequestArgs);  
            return true;
        }
        else
            return false;
    } this function works fine with IE. but in Google chrome always ajaxManager returned null because of which what ever i select the selected value will not appear in place. appreciate your instant response.

 

-Thanks

Gayathri

0
Viktor Tachev
Telerik team
answered on 11 Sep 2015, 07:14 AM
Hi Gayathri,

When using the $find method to access controls on the client you should use the ClientID of the control. The code will look similar to the following:

var ajaxManager = $find("<%= ajmMaster.ClientID %>");



Regards,
Viktor Tachev
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Gayathri
Top achievements
Rank 1
answered on 11 Sep 2015, 09:10 AM

Thanks for your reply Viktor. But unfortunately that does not work. so i have moved the script in client side to server side (in the node clik of the control) and implemented my requirement.

 

Thank you very much for your reply.

 

0
Gayathri
Top achievements
Rank 1
answered on 11 Sep 2015, 04:27 PM
I am using a telerik radgrid in my project. 
I am trying to display " No records to display" message whenever there is no record in the form. 
The problem is the code works fine in IE,firefox and chrome. but not in safari.

i have tried the below settings also 
setting padding-right:800px which when verified using inspect element makes the label aligned to left side. 
but in code hm..... it eats up my head.

Appreciate immediate help.!!


-Thanks
Gayathri
0
Viktor Tachev
Telerik team
answered on 14 Sep 2015, 11:24 AM
Hello Gayathri,

Note that the No Records text should be displayed out of the box when there are no records in the data source. If you would like to customize the message you can add a NoRecordsTemlate to the GridTableView.

However, there is no need to implement any additional logic to display the NoRecordsTemplate. Would you share your markup and code behind so we can examine it?

Also, please describe the behavior you are observing in more detail. Disable AJAX on the page by setting EnableAjax property of RadAjaxManager to false and see if there are any errors thrown.

Regards,
Viktor Tachev
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
General Discussions
Asked by
sho
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Gayathri
Top achievements
Rank 1
Viktor Tachev
Telerik team
Share this question
or