Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
158 views
Hi,
i have a radcombobox with checkboxs=true. On the onselectedindexchange event i want all the checked values.
Princy
Top achievements
Rank 2
 answered on 20 Dec 2013
1 answer
87 views
Hi,

When I updated the RadGrid to new version, the display is wrong in IE 10 Compatibility View. Please see the attached images.

RadControl of 2011/09/14 has no problem with IE 10 Compatibility View.

IE 10.0.9200.16521 / Windows 7



Galin
Telerik team
 answered on 20 Dec 2013
3 answers
144 views
Enter key not behaving in normal way by opening a new window to upload a file when cursor is placed on the control  . Even binding a javascript onkeypress event on the control is also not working .... Help needed
Shah
Top achievements
Rank 1
 answered on 20 Dec 2013
1 answer
371 views
Hi,

I am using Telerik.Web.UI 2011.1.413.40 in .net framework 4.0 for Multiselect RadComboBox but it doesn't show the checkboxes. It is only displaying the text just like normal dropdown.
I am using the same code as given in demo(http://demos.telerik.com/aspnet-ajax/combobox/examples/functionality/checkboxes/defaultcs.aspx)

Please help me to understand the issue why checkboxes are not displaying in dropdown.

Thanks & Regards,
Pradeep

Shinu
Top achievements
Rank 2
 answered on 20 Dec 2013
1 answer
115 views
Hi,

We found that WebResource.axd is taking much time to load when telerik radgrid is place on aspx page. Please find attach developer tool SS, which shows time latency in milliseconds.

And also we found that Telerik.Web.UI.WebResource.axd content is about 1.5 MB. Can we reduce the size of this x-javascript?

Regards,
Kumar
Radoslav
Telerik team
 answered on 20 Dec 2013
1 answer
106 views
Hello Gurus,

     i am using RadTimePicker in my project, i have appointment date and appointment time.
Scenario : if i select date as today, then RadTimePicker time should be more than current time.
     For eg : if the current time is 10'O clock, the RadTimePicker time should be start with 11:00  
(Attached a screenshot)
 
 
<telerik:RadDatePicker runat="server" ID="RadDateAppointment" Width="200px" Skin="Metro" >
            <Calendar ID="Calendar5" runat="server" Skin="Metro" EnableKeyboardNavigation="true">
            </Calendar>
            <DateInput ID="D" runat="server" DisplayDateFormat="dd MMM yyyy" DateFormat="dd MMM yyyy"
                EmptyMessage="dd/mm/yyyy" >
            </DateInput>
        </telerik:RadDatePicker>
 
<telerik:RadTimePicker ID="RadTimePickerAppointment" Width="110px" Skin="Metro" runat="server">
            <DateInput ID="DateInput1" runat="server">
            </DateInput>
            <TimeView ID="TimeView1" runat="server" CellSpacing="-1">   
            </TimeView>  
     </telerik:RadTimePicker>

Thanks in Advance.

    Prasanth

     
Shinu
Top achievements
Rank 2
 answered on 20 Dec 2013
6 answers
438 views

I'm loading ralistbox items from db and I have all 4 buttons working but when I do a single transfer to right or left it gives a js error object reference not set to an instance of an object but it updates correctly on db, but due  to this error I have to refresh the page.

if (e.Items.Count == 1 && e.SourceListBox == RadListBox1)// if selected item count is 1 and sourcelistbox is Radlistbox1
            {
 
                SelectedItem.Append("<li> Texto : " + e.Items[0].Text + " ID : " + e.Items[0].Value + "</li>");
                BLL.Patrocinadores.Adicionar1PatrocinadorAoAtleta(id_atleta, id_patrocinador); // add one sponsor to user
                lblTransfer.Text = SelectedItem.ToString();
                ActualizarListas();
                // mensagem = lblTransfer.Text;
 
                //   logger(mensagem);
 
            }
 
// getting id with
 
 id_patrocinador = Convert.ToInt32(RadListBox2.SelectedValue.ToString());

any idea for fix?

Troika
Top achievements
Rank 1
 answered on 20 Dec 2013
5 answers
1.4K+ views
Hi all!

I've a RadGrid with a detail table collapsed by default.

I noticed that my fist click to expand the detail table doesn't works. No matter where is the first click, I just have to click in the expand one type in any row. That click doesn't works but all following clicks do work.

I debugged and notice that a postback is made in the first click, thus I don't understand why, even with a postback, the grid doesn't update showing the detail table.
Maria Ilieva
Telerik team
 answered on 20 Dec 2013
4 answers
434 views
I use this code to display different divs in RadWindows:

var wnd = window.radopen(null, "modalWindowWithContent");
wnd.set_contentElement($get(contentElement));
wnd.setSize(wndWidth, wndHeight);
wnd.center();
return wnd;

where contentElement is the names of the divs.

AT the first time all works perfect but at the second (and further) time the RadWindow opens but with a blank content. I see in the Firebug that the content of the second div is loaded in the content of the first loaded div and this content (the first) is unvisible.

How can I fix it?


Marin Bratanov
Telerik team
 answered on 20 Dec 2013
3 answers
311 views
Hi,

I have a run-time generated RadWindow that has a variety of controls in it.  The RadWindow opens correctly when triggered, but when one of the buttons in the RadWindow is pressed, it causes postback, which wipes out the RadWindow.

How can I get client side Javascript to work without posting back to server?  

Below is the EditText sub that is called when a button is pressed that should open the RadWindow with the RadEditor in it.  When either the Save or Add button is pressed, the RadWindow disappears, and it doesn't look like it hits the Javascript functions.

Below that is the html for the page including some rudimentary javascript functions at the bottom I am trying to use to test this.

Thanks so much for looking at this!

aspx.vb
Private Sub EditText(ByVal sender As Object, ByVal e As System.EventArgs)
    Dim buttonId As String
    Dim x As Integer
    Dim AN As Integer
 
    If C.UserSelectedAssessmentType = "CREATE" Then
        AN = C.UserSelectedAssessmentCount
    Else
        AN = C.UserSelectedAssessment
    End If
 
    buttonId = DirectCast(sender, RadButton).ID
    x = Mid(buttonId & "  ", 8, 2)
    EditingStatement = x
 
    w1.ContentContainer.Controls.Add(New LiteralControl("<div><table style=""width:725px""><tr><td>"))
 
    editL1.Text = "Use this editor"
    w1.ContentContainer.Controls.Add(editL1)
    w1.ContentContainer.Controls.Add(New LiteralControl("</td><td style=""text-align:right"">"))
 
    editSave.AutoPostBack = False
    editSave.CausesValidation = False
    editSave.OnClientClicked = "EditClickSave"
    editSave.ID = "editSave"
    editSave.Text = "Save"
    editSave.Width = 128
    w1.ContentContainer.Controls.Add(editSave)
    '  AddHandler editSave.Click, AddressOf Me.SaveEdit
    w1.ContentContainer.Controls.Add(New LiteralControl("</td></tr></table>"))
 
    popupEditor.ID = "Editor1"
    popupEditor.Width = 725
    popupEditor.Height = 350
    popupEditor.EditModes = EditModes.Design
    w1.ContentContainer.Controls.Add(popupEditor)
 
    editL2.Text = "Choose Item"
    w1.ContentContainer.Controls.Add(editL2)
    w1.ContentContainer.Controls.Add(New LiteralControl("<br />"))
 
    editCombo.ID = "editFindings"
    editCombo.Width = 410
    w1.ContentContainer.Controls.Add(editCombo)
 
    editAdd.AutoPostBack = False
    editAdd.CausesValidation = False
    editAdd.OnClientClicked = "EditClickAdd"
    editAdd.ID = "editAdd"
    editAdd.Text = "Add"
    editAdd.Width = 128
    w1.ContentContainer.Controls.Add(editAdd)
    '  AddHandler editAdd.Click, AddressOf Me.AddToEdit
    w1.ContentContainer.Controls.Add(New LiteralControl("<br /></div>"))
 
    w1.VisibleOnPageLoad = True
    w1.Modal = True
    w1.Height = 550
    w1.Width = 800
    '     w1.OnClientClose = "onClientClose"
 
    w1.Modal = True
 
    RadMultiPage1.PageViews(0).Controls.Add(w1)
 
    popupEditor.EnsureToolsFileLoaded()
 
 
End Sub

aspx
<%@ Page Title="" Language="VB" MasterPageFile="~/Master.master" AutoEventWireup="false" CodeFile="E14.aspx.vb" Inherits="Main" ValidateRequest="false" %>
<%@ MasterType VirtualPath="~/Master.master" %>
 
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
 
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server">
    <table id="footerTable">
        <tr>
            <td class="cl">   </td>
            <td style="text-align:center" class="cc">                              
                    <span class="style2">Edit Assessment</span> <br/>
                    <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
                    <br/>
                    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" >
                        <AjaxSettings>                           
                            <telerik:AjaxSetting AjaxControlID="cReassessIn">
                                <UpdatedControls>
                                    <telerik:AjaxUpdatedControl ControlID="Panel1" />
                                </UpdatedControls>
                            </telerik:AjaxSetting>
                            <telerik:AjaxSetting AjaxControlID="Timer1">
                                <UpdatedControls>
                                    <telerik:AjaxUpdatedControl ControlID="lRefresh" />
                                </UpdatedControls>
                            </telerik:AjaxSetting>
                        </AjaxSettings>
                    </telerik:RadAjaxManager>
                    <asp:Label ID="TopHeader" runat="server" Font-Italic="True" Width="100%"></asp:Label>
                    <br/>
                    <asp:Panel ID="Panel1" runat="server" BorderStyle="Ridge" BorderWidth="3px" Width="95%" HorizontalAlign="Left" DefaultButton="bStore">
 
                        <telerik:radtabstrip id="RadTabStrip1" runat="server" width="100%" Skin="Outlook" AutoPostBack="True">
                            <Tabs>
                                <telerik:RadTab ID="Tab1" runat="server" Text="1" Visible="False"></telerik:RadTab>
                                <telerik:RadTab ID="Tab2" runat="server" Text="2" Visible="False"></telerik:RadTab>
                            </Tabs>
                        </telerik:radtabstrip>
                        <hr/>
                        <telerik:RadMultiPage ID="RadMultiPage1" runat="server" Width="100%" SelectedIndex="0">
                            <telerik:RadPageView ID="PageView1" runat="server">
                            </telerik:RadPageView>
                            <telerik:RadPageView ID="PageView2" runat="server" Width="100%">
                            </telerik:RadPageView>  
                        </telerik:RadMultiPage>
                        <br/>
                        <hr/>
                        <table style="width:100%">
                            <tr>
                                <td style="vertical-align:top">                                      
                                    <telerik:RadComboBox  ID="cAssessmentFinal" runat="server" Width="410px">
                                            <Items>
                                                <telerik:RadComboBoxItem runat="server" Text="Exceeds" Value="0" />
                                                <telerik:RadComboBoxItem runat="server" Text="Meets" Value="1" />
 
                                        </Items>                                       
                                    </telerik:RadComboBox>
                                </td>
                            </tr>
                        </table>
                    </asp:Panel>
                    <asp:Label ID="lRefresh" runat="server" Font-Bold="True"></asp:Label>
                      
                      
                    <asp:Label ID="lTO" runat="server" Width="140px"></asp:Label> 
                      
                      
                              
                      
                    <asp:Panel ID="Panel2" runat="server">
                        <asp:Timer ID="Timer1" runat="server" Interval="120000" OnTick="Timer1_Tick"/>
                        <telerik:RadWindowManager ID="RadWindowManager1" runat="server" OnClientClose = "CommentsListPopUpRadWindow_OnClose">
                        </telerik:RadWindowManager>
                    </asp:Panel>               
            </td>
            <td class="cr">   </td>
        </tr>
    </table>
 
    <asp:PlaceHolder runat="server">
      <script type="text/javascript">
          function EditClickAdd() {
              var editor = $find("<%=popupEditor.ClientID%>");
              editor.pasteHtml("This is a test");         
          }
          function EditClickSave() {
              var editor = $find("<%=popupEditor.ClientID%>");
              editor.pasteHtml("This is a test");
              document.getElementById("Label1").value = editor.getselectionhtml + "asdf";
                         
          }
      </script>
        </asp:PlaceHolder>
</asp:Content>
Princy
Top achievements
Rank 2
 answered on 20 Dec 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?