Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
71 views
I would like to manually edit a listview and use the password strength checker only the checkPasswordMatch function is asking for the correct client ID

function checkPasswordMatch() {
                var text1 = $find("<%=PasswordInput1.ClientID %>").get_textBoxValue();
                var text2 = $find("<%=PasswordInput2.ClientID %>").get_textBoxValue();
 
                if (text2 == "") {
                    $get("PasswordRepeatedIndicator").innerHTML = "";
                    $get("PasswordRepeatedIndicator").className = "Base L0";
                }
                else if (text1 == text2) {
                    $get("PasswordRepeatedIndicator").innerHTML = "Match";
                    $get("PasswordRepeatedIndicator").className = "Base L5";
                }
                else {
                    $get("PasswordRepeatedIndicator").innerHTML = "No match";
                    $get("PasswordRepeatedIndicator").className = "Base L1";
                }
            }

Can I stick this is a script or code block and get it to work?

Thanks, Marty
Kostadin
Telerik team
 answered on 25 Mar 2013
3 answers
753 views
Hello all,

we recently purchased telerik controls and tried to implement the rating controls in one of the pages. I generated the new key and updated the dlls. Locally it worked fine and uploaded the pages online.The rating controls are rendered as 1, 2, 3 etc.  

In the instruction pdf it is mentioned that  Telerik.web.design.dll must be deployed in GAC. Our site is hosted in a shared hosting server. In this case, how can I deploy the dll?

please advise.
Biliana Ficheva
Telerik team
 answered on 25 Mar 2013
3 answers
268 views
Hi

Is it possible to restrict the number of decimal digits that users can enter on GridNumericColumns (on edit forms and in-place edit) and on RadNumericTextBoxes?

I know that using the DecimalDigits and DataFormatString={0:C2} will display only two decimal digits in the control, with this users can type in as many decimal digits as they want and when they tab out the control displays two decimal digits.

But what I want here is for users to not be able to type in more than 2 decimal digits when editing the field. 


Not sure if/how this can be done.

Thanks
Shinu
Top achievements
Rank 2
 answered on 25 Mar 2013
0 answers
99 views
Hi,
     In my project am using two rad calendars with id 'CalendarSelectorOne' and 'CalendarSelectorTwo'. I want to set focused date of 'CalendarSelectorTwo' when 'CalendarSelectorOne' view changes on 'OnCalendarViewChanged' event. Below is my code how am using in project

aspx code:
      <rad:RadCalendar ID="CalendarSelectorOne" EnableMultiSelect="false" runat="server"
                        Skin="Black" EnableNavigation="true" EnableMonthYearFastNavigation="true">
                        <ClientEvents OnDateSelected="OnCalendar1DateSelected"
                            OnCalendarViewChanged="OnCalendar1ViewChanged" />
      </rad:RadCalendar>

       
     <rad:RadCalendar ID="CalendarSelectorTwo" EnableMultiSelect="false" runat="server"
                        Skin="Black" EnableNavigation="false" EnableMonthYearFastNavigation="false">
                        <ClientEvents OnDateSelected="OnCalendar1DateSelected" />
       </rad:RadCalendar>


Javascript Code:
   
          var calendarone;
          var calendartwo;
          function pageLoad(sender, args) {
                calendarone = $find('<%=CalendarSelectorOne.ClientID %>');
                calendartwo = $find('<%=CalendarSelectorTwo.ClientID %>');             
            }

        function OnCalendar1ViewChanged(sender, eventArgs) {
                var dateTriplet = sender.get_focusedDate();   
                    var selectedDate = new Date(dateTriplet[0], dateTriplet[1] - 1, dateTriplet[2]);
                    var calendar2 = new Date(dateTriplet[0], dateTriplet[1], dateTriplet[2]);
                    calendartwo.set_focusedDate(calendar2);  
               
            }


    In OnCalendar1ViewChanged event am getting 'CalendarSelectorOne' focused date and add one month from that date and seeting focused date to  'CalendarSelectorTwo' calendar. But its not changing the view of the second calendar.

    Please let us know am doing any wrong in this.


Regards,
Nishanth P

Nishanth
Top achievements
Rank 1
 asked on 25 Mar 2013
2 answers
916 views
I am trying to get the count of the number of rows in the radgrid as part of the needDataSource event.  I needs to change a tab header that sits at top of page based on the number of rows it pulls, tried multiple things but nothing works.  below always returns 0

Protected Sub myRadGridList_NeedDataSource(sender As Object, e As Telerik.Web.UI.GridNeedDataSourceEventArgs) Handles myRadGridList.NeedDataSource
       Dim Count As Integer = 0
       Dim sqlwhere As String = ""
       GetSrpId()
 
       sql = "Select strssn, strFullname, strRank, strPMOS, Convert(varchar(10), strdob, 111) strDob from MnNgPersonnel.dbo.tblMNNatPersonnel Where strRECPREC = '99999999' and strRECSTAT <> 'M' AND " _
           & "(strUIC = '" & HFID.Value & "' or strAttchUIC = '" & HFID.Value & "') and (strSSN Not IN (Select strssn from tblUnitSRPPersonnelHist where intSRpId = " & HFRID.Value & "  and dtExpire > " _
           & "GETDATE() and bitActive = 1) OR strSSN Not IN (Select strssn from tblUnitSRPPersonnelHist where intSRpId = " & HFAID.Value & " and dtExpire > GETDATE() and bitActive = 1)) " & sqlwhere & ""
 
       myRadGridList.DataSource = getData(sql)
 
       Count = myRadGridList.MasterTableView.Items.Count
 
       tbAnnual.HeaderText = "Annual Reviews (" & Count & ")"
 
       pnlGrid.Visible = True
   End Sub
Shinu
Top achievements
Rank 2
 answered on 25 Mar 2013
1 answer
50 views
hi
after reading this:
http://www.telerik.com/help/aspnet-ajax/grid-inserting-values-usercontrol-formtemplate.html

i want to know if there is away of capturing the item edit from user control as shown in the section,

Setting predefined values for controls inside user control on item insertion
i tryed to do this on editcommand but the conversion returns nothing

i know i can get the item data on the databind on the usercontrol but i want to set a few things before i fill the data from the data object.

can i do this? 
thanks.

Shinu
Top achievements
Rank 2
 answered on 25 Mar 2013
3 answers
479 views
I am trying to highlight the current cell in a radGrid while mouseover is happening.   For the most part I have it figured out, except for getting the initial background cell color before changing it, so I can change it back on the mouseout event.

Here is my JS.  The row that is not giving me what I need is $LastColor = item.get_cell(cellName).style.background;  It is returning white when it should be getting the cell background color.  What is the correct property to get this?

var $LastColor
 
       function RowMouseOver(sender, eventArgs) {
           var rowIndex = eventArgs.get_itemIndexHierarchical();
           var item = sender.get_masterTableView().get_dataItems()[rowIndex];
           var cellIndex = eventArgs._domEvent.target.cellIndex;
           var cellName = $find('<%= rgProjectDetails.ClientID%>').get_masterTableView().get_columns()[cellIndex].get_uniqueName();
           $LastColor = item.get_cell(cellName).style.background;
           item.get_cell(cellName).style.background = "red";
       }
       function RowMouseOut(sender, eventArgs) {
           var rowIndex = eventArgs.get_itemIndexHierarchical();
           var item = sender.get_masterTableView().get_dataItems()[rowIndex];
           var cellIndex = eventArgs._domEvent.target.cellIndex;
           var cellName = $find('<%= rgProjectDetails.ClientID%>').get_masterTableView().get_columns()[cellIndex].get_uniqueName();
           item.get_cell(cellName).style.background = $LastColor;
       }
Jayesh Goyani
Top achievements
Rank 2
 answered on 24 Mar 2013
0 answers
53 views
I am using telerik radpanelbar and source from  a sitemap data source.When i give value to url in the sitemap,then the link is redirected to a page other that telerik radwindow manager.I tried to give the value of URl to empty and give  url value to the title attribute,It works and open in the radwindow but the title of the menu is also a link which is not good at all.
How can i open radpanel menus open in the rad window without redirection to its own page other than Radwindow manager?
yishagerew
Top achievements
Rank 1
 asked on 24 Mar 2013
2 answers
89 views
We use a an older version of telerik web DLL  which doesn't support grid.clearActiveRow() method so can you please let me know how to go about it using code. I just want to clear the active row selection. Please help.
Madhu
Top achievements
Rank 1
 answered on 23 Mar 2013
3 answers
188 views
How do I set a RadEditor that is within a RadGrid to only display vertical scroll bars and properly word wrap to the next line.

 

Thank You!
Rengo
Top achievements
Rank 1
 answered on 23 Mar 2013
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?