Telerik Forums
UI for ASP.NET AJAX Forum
8 answers
288 views
I have an odd problem and I don't know if it's Telerik-related or something more basic.  For the most part everything is working perfectly, with this one exception.

In my Asp.Net web app (Dot Net 4.0/C#) I have a page with a master page.  

The master page's main purpose is to provide a variety of navigational links across the top of the page.  This includes a bound Asp:Repeater control that contains a set of LinkButtons, defined as follows:
<asp:Repeater ID="MyRepeater" runat="server" >
   <HeaderTemplate>                                      
      <asp:LinkButton ID="btn1" runat="server" OnClick="btn_Click" Tooltip='-1' Text='Display All Teams' CausesValidation="false" Visible="false" ></asp:LinkButton> 
   </HeaderTemplate>
   <ItemTemplate >
      <asp:LinkButton ID="btn1" runat="server" OnClick="btn_Click" Tooltip='<%# Bind("Id") %>' Text='<%# Bind("Desc") %>' CausesValidation="false" ></asp:LinkButton>
   </ItemTemplate>
</asp:Repeater>


Most of the page itself is contained in a RadAjaxPanel.  Within it is a RadComboBox set up to do postbacks.  The combox box always triggers the page_load event in the Master Page.

The problem is this:  After the RadComboBox is used at least once, the btn_Click event of the repeater buttons is disabled.  It does not seem to matter whether or not the repeater is refreshed.  The buttons are always disabled.  The only way to reactivate them is to hit the browser refresh button and completely reload the page.

Suggestions?   Am I missing something basic?
Viktor Tachev
Telerik team
 answered on 19 Aug 2014
9 answers
559 views
In the FilterExpression, I noticed Telerik is using ")||(" instead of ")OR(".  Evidently this works, but I believe the recommendation is "OR".  I only bring this up because in many situations, the RadGrid1.MasterTableView.FilterExpression can be used directly as the WHERE clause is in a SQL Query.  SQL understands "OR", but not "||".

I'm using it for my where clause in my project to retrieve related data, so you might consider changing it just for me. :-)

In the meantime RadGrid1.MasterTableView.FilterExpression.Replace("||", "OR") is working well.

Thanks!
Viktor Tachev
Telerik team
 answered on 19 Aug 2014
5 answers
285 views
I have a rad date time picker in my website which shows time from 12:00 AM to 11:00 PM
When user selects date, the time is set to 12:00 AM automatically.
I want this time to be 7:00 AM instead of 12:00 AM.
Also i want to show complete 24 hr time like it was showing it before (12:00 AM to 11:00 PM).
Kindly provide some solution.
Kavita
Top achievements
Rank 1
 answered on 19 Aug 2014
1 answer
163 views
Hi,
I have two RadComboBoxes controls on my page. The first RadComboBox items is loaded via Server-side code. But the second RadComboBox items is always reflected once user change the first RadComboBox and this RadComboBox has multiple selection with checkbox inside each items. I want to achieve that the second RadComboBox items is loaded via Javascript query against a variable without any request to server. Once the user submit the form, the multiple selections on the second RadComboBox can be recognized in the server. How can I achieve that way?
Any help would be greatly appreciated.
Thank you.

Regards,
Darius
Darius
Top achievements
Rank 1
 answered on 19 Aug 2014
2 answers
136 views
Hi,

I am using telerik version 2013.3.1324.35. I used scheduler with multiple resources. I use OnClientAppointmentMoveEnd to get the resource when they moved the slot. Below is the function I am using. It seems like function is calling twice. When first time fires, I can get the correct tutor. But on second time , it seems like it is getting the original tutor before moving. Is there anything I can do?  Thanks in advance.

function OnClientAppointmentMoveEnd(sender, eventArgs) {
               debugger;
               var appointment = eventArgs.get_appointment();
               var recurrState = appointment.get_recurrenceState();
               var slotElement = $telerik.$(eventArgs.get_targetSlot().get_domElement());
 
               $get('<%= hid_oldstart.ClientID %>').value = formatDate(appointment.get_start());
               $get('<%= hid_oldend.ClientID %>').value = formatDate(appointment.get_end());
 
               if (slotElement.is(".Disabled") || slotElement.parent().is(".Disabled")) {
                   eventArgs.set_cancel(true);
               }
 
             
               // Calculate the duration of the appointment
               var appointmentDuration = appointment.get_end() - appointment.get_start();
 
               // The new start time is provided in the event arguments              
               var newStartTime = eventArgs.get_newStartTime();
 
               // Add the duration of the appointment to the new start time to get the new end time
               var newEndTime = new Date(newStartTime.getTime() + appointmentDuration);
               var editSeries = eventArgs.get_editingRecurringSeries();
 
              
               if (slotElement.is(".Disabled") || slotElement.parent().is(".Disabled") || slotElement.is(".ReasonDisabled") || slotElement.parent().is(".ReasonDisabled")) {
                   eventArgs.set_cancel(true);
                   radalert('Moving appointment to this slot is not allowed'
                       , 330, 180, 'Warning!', alertCallBackFn, imgUrl); return false;
               }
               else {
 
                   var list = appointment.get_attributes();
                   var attr = list.getAttribute('TutorID');
 
                   //debugger;
                   var targetResource = eventArgs.get_targetSlot().get_resource();
                   var newTutor = targetResource.get_key();
                   attr = newTutor;
                   var aptAttributes = appointment.get_attributes();
                   aptAttributes.removeAttribute("TutorID");
                   aptAttributes.setAttribute("TutorID", newTutor);
                   appointment.set_start(newStartTime);
                   appointment.set_end(newEndTime);
 
                   var state = appointment.get_recurrenceState();
 
                   $get('<%= hid_movedendStd.ClientID %>').value = formatDate(newStartTime);
                   $get('<%= hid_moveendEtd.ClientID %>').value = formatDate(newEndTime);
                   $get('<%= hid_moveendTutor.ClientID %>').value = newTutor;
                   //alert(newTutor);
 
                   var myarr = new Array();
                   myarr[0] = "movedend";
                   myarr[1] = formatDate(newStartTime);
                   myarr[2] = formatDate(newEndTime);
                   myarr[3] = newTutor;
                alert(newTutor);
 
 
                   $find("<%=RadAjaxManager1.ClientID %>").ajaxRequest(myarr);
 
 
 
 
 
                  
               }
             
           }

Best regards,
Ei
Ei Wai
Top achievements
Rank 1
 answered on 19 Aug 2014
1 answer
105 views
Upon using a Radformdecorator custom Metrotouch skin, we noticed radio’s and checkboxes don’t show  on chrome browser.
      
Using Chrome
36.0.1985.143 m
    
Downloaded latest
Telerik_UI_for_ASP.NET_AJAX_2014_2_724_Dev_hotfix.zip

We have found some ‘errors’ in css
    
Missing ‘!important’ declarations     

After this radio’s and checkboxes work again.
@media screen and (-webkit-min-device-pixel-ratio:0) {
 
.RadForm_MetroTouchNeutral.rfdCheckbox input[type="checkbox"] {
    background-repeat: no-repeat;
    background-position: 0 3px!important;
}
.RadForm_MetroTouchNeutral.rfdCheckbox input[type="checkbox"]:hover {
    background-position: -40px 3px!important;
}
.RadForm_MetroTouchNeutral.rfdCheckbox input[type="checkbox"]:checked {
    background-position: 0 -37px!important;
}
.RadForm_MetroTouchNeutral.rfdCheckbox input[type="checkbox"]:hover:checked {
    background-position: -40px -37px!important;
}
.RadForm_MetroTouchNeutral.rfdCheckbox input[type="checkbox"][disabled], .RadForm_MetroTouchNeutral.rfdCheckbox input[type="checkbox"][disabled]:hover {
    background-position: 0 -117px!important;
}
.RadForm_MetroTouchNeutral.rfdCheckbox input[type="checkbox"][disabled]:checked, .RadForm_MetroTouchNeutral.rfdCheckbox input[type="checkbox"][disabled]:checked:hover {
    background-position: 0 -157px!important;
}
.RadForm_MetroTouchNeutral.rfdRadio input[type="radio"] {
    background-repeat: no-repeat;
    background-position: -80px 3px!important;
}
.RadForm_MetroTouchNeutral.rfdRadio input[type="radio"]:hover {
    background-position: -120px 3px!important;
}
.RadForm_MetroTouchNeutral.rfdRadio input[type="radio"]:checked {
    background-position: -80px -37px!important;
}
.RadForm_MetroTouchNeutral.rfdRadio input[type="radio"]:hover:checked {
    background-position: -120px -37px!important;
}
.RadForm_MetroTouchNeutral.rfdCheckbox input[type="radio"][disabled], .RadForm_MetroTouchNeutral.rfdCheckbox input[type="radio"][disabled]:hover {
    background-position: -80px -117px!important;
}
.RadForm_MetroTouchNeutral.rfdCheckbox input[type="radio"][disabled]:checked, .RadForm_MetroTouchNeutral.rfdCheckbox input[type="radio"][disabled]:checked:hover {
    background-position: -80px -157px!important;
}
}

Marc
Misho
Telerik team
 answered on 19 Aug 2014
2 answers
67 views
There is a Telerik Rad Combobox which has three events.
OnClientItemRequesting,OnClientItemRequested,OnClientKeyPressing. All the above three events is calling a JS function.

In case of Chrome and Firefox all the three events gets fired on key press and autocomplete opens
In case of all IE only OnClientKeyPressing fire and autcomplete doesn't open

The page doctype is HTML5

Please provide a solution to the above problem

Thanks.
Shinu
Top achievements
Rank 2
 answered on 19 Aug 2014
5 answers
165 views
Is there a method to have the toolbar wrap similar to the menu ?
Ivan Zhekov
Telerik team
 answered on 19 Aug 2014
1 answer
145 views
Hi

I'm using Radgrid to build a tree structure with source of objects with parent and child relationship.
I'm also have a ddl in my page.
Each time I change my selection in the ddl I need to load differnet data to my radgrid.
The problem is the when I change the ddl and one of the node is expanded to more that 1 level I got error:

Specified argument was out of the range of valid values.
Parameter
name: ItemHierarchicalIndex Description:
An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details:
System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values.
Parameter name: ItemHierarchicalIndex

Source
Error: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the
exception can be identified using the exception stack trace below.

I guess the problem is- the grid is trying to restore the expanded items on the new data source (which has been changed and the expanded levels in client data may not be valid anymore).

Can u help me with solution?
thanks




Angel Petrov
Telerik team
 answered on 19 Aug 2014
1 answer
171 views
Hello,
I want to catch the clicked menu to know de url user has clicked and validate before send this,

protected void RadMenu1_ItemClick(object sender, Telerik.Web.UI.RadMenuEventArgs e)
    {
       string myitme = RadMenu1.SelectedItem.ToString();

        if (e.Item.Text == "Autorizar")
        {
  
            Response.Write("You has selected Autorizar, You will be redirected to Autorizar.html");
            Response.Redirect("Autorizar.html");
        }
}

Anyone knows how can I do this?
Shinu
Top achievements
Rank 2
 answered on 19 Aug 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?