Telerik Forums
UI for ASP.NET AJAX Forum
6 answers
571 views
Hi there, title says it all I'm calling the OnDateSelected(sender,e) and trying to use the e.get_newDate() just like your demo and it doesn't return anything. I need to get the date selected or being selected is there something I'm missing? Thanks.
Rory
Top achievements
Rank 1
 answered on 16 Mar 2011
3 answers
125 views
Hi

I am Using 6 Releated Combo boxes 
 
Loading Message
all  these comboxes are showing loading message with previous valus and im able to select previos value when loading message is shown
even in the demo in the below link its  showing both loading message and Previos select values
http://demos.telerik.com/aspnet-ajax/combobox/examples/functionality/multiplecomboboxes/defaultcs.aspx

 while showing Loading message i should not show Previous values

Performance
Ifi select the value in first combo box and click search button its taking 10 secs  to fire
if i select 5or6 drop down combo box and click search button its taking 2 secs
Why such a huge difference in preformance

Please help me fixing these two issues ASAP

Thanks
Harin




Dimitar Terziev
Telerik team
 answered on 16 Mar 2011
2 answers
172 views
Hi,

I am currently using the Q3 2010 NET40 version of the ajax controls, and I am trying ot have a multi column combobox with checkboxes fire off an ajax request to refresh a grid on the same page.  But no matter what I do, when I click on the checkbox, a full page refresh is fired, making it impossible for the user to click on multiple checkboxes.  I already did everything that was recommended by the below support link - although am not sure if its still applicable to this version.

http://www.telerik.com/help/aspnet-ajax/troubleshooting-ajaxified-control-item-template-full-postback.html


I built a separate page with almost no code behind just to simulate the issue, with a datasource that brings data from my database.  The code is as below

I am currently developing for one of your clients, and I can get the support details if need be.  Please advise how I can ajaxify the checkbox, multi column combobox.  Your early response would be highly appreciated.

Thank you.

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ManageData.aspx.cs" Inherits="MasterDataManagementSystem.ManageData" %>
  
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  
<head runat="server">
    <title></title>
    <style type="text/css">
        .rcbHeader ul,  
        .rcbFooter ul,  
        .rcbItem ul, .rcbHovered ul, .rcbDisabled ul  
        {  
            width: 100%;  
            display: inline-block;  
            margin: 1;
        
            padding: 0;  
            list-style-type: none;  
            font-family : Verdana;
            font-size:8pt;
      
        }  
  
        .rcbColumn
        {  
            font-family:Verdana;
            font-size:8pt;
            float: left;  
            margin: 1;  
            line-height: 14px;  
            padding: 2px 5px 2px 0;  
        } 
  
        .rcbColumn li
        {
            vertical-align:middle;
      
        }
    </style>
  
      
</head>
<body>
    <telerik:RadScriptBlock ID="RadScriptBlock1" runat="server">
    <script type="text/javascript">
        <!--
        function stopPropogation(e) {
            e.cancelBubble = true;
  
            if (e.stopPropagation) {
                e.stopPropagation();
            }
        }
  
        function callAttachDropDown() {
            var combo = $find("<%= rcbSourceElement.ClientID %>");
            combo.attachDropDown();
  
        }
        -->
    </script>
  
    </telerik:RadScriptBlock>
    <form id="form1" runat="server">
    <div>
      
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
      
        <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
            <AjaxSettings>
                <telerik:AjaxSetting AjaxControlID="RadComboBox1">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="RadGrid1" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
            </AjaxSettings>
        </telerik:RadAjaxManager>
        <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" Runat="server" 
            Skin="Default">
        </telerik:RadAjaxLoadingPanel>
        <telerik:RadComboBox ID="rcbSourceElement" runat="server" 
                    HighlightTemplatedItems="True" DataTextField="PrimaryFieldValue" AutoPostBack="true"
                    Width="400px" Height="200px" DataValueField="ELEMENT_VALUE_KEY" DataSourceID="odsSourceElement" 
                    AllowCustomText="True" EmptyMessage="Choose an option here...">                                
                    <ItemTemplate>     
                        <div onclick="stopPropagation(event)">                  
                                <asp:CheckBox ID="chkSourceElementValue" runat="server" AutoPostBack="true" onclick="callAttachDropDown()" Text='<%# Eval("PrimaryFieldValue") %>'
                                    oncheckedchanged="chkSourceElementValue_CheckedChanged"/>
                        </div>
                    </ItemTemplate>
                </telerik:RadComboBox>
        <asp:ObjectDataSource ID="odsSourceElement" runat="server" 
                    SelectMethod="GetSourceElementValuesForDisplayInSubjectTab" 
                    TypeName="MasterDataMgmt.BL.Helper">
                    <SelectParameters>
                        <asp:Parameter Name="TargetSubjectKey" DefaultValue="1" Type="Int32" />
                    </SelectParameters>
                </asp:ObjectDataSource>
        <telerik:RadGrid ID="RadGrid1" runat="server">
        </telerik:RadGrid>
      
    </div>
    </form>
</body>
</html>

 Thank you.
Dimitar Terziev
Telerik team
 answered on 16 Mar 2011
2 answers
132 views
Hi @

I am using Rad Grid with Auto Generate Columns to true.

I am getting the following error when I select a Numeric field to be displayed. I have set the Allow Filter option to true.

Since I am getting this JS error my UI disrupts completely.

Microsoft JScript runtime error: Sys.ArgumentException: Value must not be null for Controls and Behaviors.

If I set this Allow Filter option to false then I don't get this error.

Please let me know how to get rid of this error.
Maria Ilieva
Telerik team
 answered on 16 Mar 2011
1 answer
239 views

I have the following RadPanelBar in my page with individual the items bound programatically server-side to their respective datasources.

<telerik:RadPanelBar ID="rpbHomePanel" runat="server" ExpandMode="MultipleExpandedItems" 
       Height="100%" PersistStateInCookie="true">
       <items>
       <telerik:RadPanelItem runat="server" Text="My People" Expanded="true" ChildGroupHeight="250px" Value="MyPeople"
           PostBack="true">
           <ContentTemplate>
               <asp:UpdatePanel ID="updMyPeople" UpdateMode="Conditional"  runat="server">
                   <ContentTemplate>
                       <uc1:ucMyPeople ID="ucMyPeople" runat="server" />
                   </ContentTemplate>
               </asp:UpdatePanel>
           </ContentTemplate>
       </telerik:RadPanelItem>
       <telerik:RadPanelItem  runat="server" Text="My Dealers" ChildGroupHeight="250px" Value="MyDealers">
           <ContentTemplate>
               <asp:UpdatePanel ID="updMyDealers" UpdateMode="Conditional" runat="server">
                   <ContentTemplate>
                       <uc2:ucMyDealers ID="ucMyDealers" runat="server" />
                   </ContentTemplate>
               </asp:UpdatePanel>
           </ContentTemplate>
       </telerik:RadPanelItem>
       <telerik:RadPanelItem runat="server" Text="My Alerts" ChildGroupHeight="250px" Value="MyAlerts">
           <ContentTemplate>
               <asp:UpdatePanel ID="UpdatePanel2" UpdateMode="Conditional" runat="server">
                   <ContentTemplate>
                       <uc1:ucMyAlerts ID="ucMyAlerts" runat="server" />
                   </ContentTemplate>
               </asp:UpdatePanel>
           </ContentTemplate>
       </telerik:RadPanelItem>
   </items>
   </telerik:RadPanelBar>


 

I also have the following code in an event handler to iterate through the items to expand/collapse the items based on certain conditions

protected void ucMyPeople_OnDataChanged(String name)
   {
       foreach (RadPanelItem rpi in rpbHomePanel.Items)
       {
           if (name == "D")
           {
               if (rpi.Value == "MyPeople")
               {
                   rpi.Expanded = false;
               }
               if (rpi.Value == "MyDealers")
               {
                   rpi.Expanded = true;
               }
               if (rpi.Value == "MyAlerts")
               {
                   rpi.Expanded = false;
               }
           }
           if (name == "P")
           {
               if (rpi.Value == "MyPeople")
               {
                   rpi.Expanded = true;
               }
               if (rpi.Value == "MyDealers")
               {
                   rpi.Expanded = false;
               }
               if (rpi.Value == "MyAlerts")
               {
                   rpi.Expanded = false;
               }
           }
           if (name == "A")
           {
               if (rpi.Value == "MyPeople")
               {
                   rpi.Expanded = false;
               }
               if (rpi.Value == "MyDealers")
               {
                   rpi.Expanded = false;
               }
               if (rpi.Value == "MyAlerts")
               {
                   rpi.Expanded = true;
               }
           }
       }

None of this is working. Only the top item is ever expanded – the others remain collapsed no matter whether I set expand to true or not. I have even tried setting the second item up with Expanded=”true” in the page declaration. Still no joy.

 

Can you suggest what I might be dong wrong please?

David
Top achievements
Rank 1
 answered on 16 Mar 2011
0 answers
69 views
I want to edit the series of appointment on drag drop....

I want if i want to drag the one appoint then automatically edit the series of whole that appointment ( automatically update the recurrence rule)


AppointmentsBL objAppointmentNew = new AppointmentsBL();
                            objAppointmentNew.ClinicId = -1;
                            objAppointmentNew.InstructorId = intInstructorId;
                            objAppointmentNew.Start = e.ModifiedAppointment.Start;
                            objAppointmentNew.End = e.ModifiedAppointment.End;
                            objAppointmentNew.RecurrenceParentID = Convert.ToInt32(e.Appointment.RecurrenceParentID);
                            objAppointmentNew.RecurrenceRule = e.ModifiedAppointment.RecurrenceRule;
 
                            objAppointmentNew.Annotations = string.Empty;
                            objAppointmentNew.Reminder = string.Empty;
                            objAppointmentNew.Subject = e.ModifiedAppointment.Subject;
                            objAppointmentNew.Description = e.ModifiedAppointment.Description;
                            objAppointmentNew.UserId = intInstructorId;
                            objAppointmentNew.Save();


the above code is used. It's updated start date and end date proper but not update recurrence rule.. ?

how to do this. Please help it's urgent. Please reply me within 24 hour





thanks
Rahul
Top achievements
Rank 1
 asked on 16 Mar 2011
5 answers
249 views
So I followed the instructions from this forum to remove the borders from the window. 
.rwCorner,
.rwTopResize,
.rwFooterCenter,
.rwTitebar
{
display: none !important;
}
.rwTitlebar
{
background-attachment:fixed;
background-position: 0 -6px !important;
}

In the I set the opacity property for the window to 90
<telerik:RadWindow ID="xxx" runat="server" NavigateUrl="xxx" Opacity="90" Behaviors="Close" Modal="true" Height="200px" Width="245px" OnClientClose="pBakc"/>
 

Everything works fine in firefox and Chrome. The window displays with no borders and it's background is see-through. In ie, the borders are gone, but the background is white.

What am I doing wrong? Why is the background white for ie?

Help please.


Marin Bratanov
Telerik team
 answered on 16 Mar 2011
3 answers
159 views
I have a tool tip that I want to show after a form submit to say record inserted. I created the tool tip and then tried to show it in the server code but it's not working what am I missing. Here is the tool tip code

        <telerik:RadToolTip runat="server" ID="success" Height="60px" Width="250px"
                                    Position="Center" RelativeTo="BrowserWindow" AutoCloseDelay="5000">
                                </telerik:RadToolTip>

Here is what i tried in my vb code behind
        success.Text = "The customer was added"
        success.Visible = True
Marin Bratanov
Telerik team
 answered on 16 Mar 2011
4 answers
149 views
I am working on a project whereby we need keyboard command accessibility with the RadGrid for a rapid data review process. Unfortunately I appear to be running into an unexplained variation between row selection behaviours on the client side. I have currently extended the default behaviour of the RadGrid using external classes and supporting javascript to perform the following features (all using AJAX where necessary):

  1. To ensure the RadGrid retains the keyboard focus after a postback that performs an insert/update, so that the user may continue to navigate along the rows using the cursor keys
  2. To ensure that the last edited row index is added to the server side grid instance's SelectedIndexes property before prerender, so that the user can continue to navigate along the rows using the cursor keys from the last row that they edited
  3. To ensure the first editor control contained within a cell of an edited row acquires the keyboard focus on an initinsert / edit, initiated by pressing the enter key
  4. To ensure that the editor control within a cell captures the keyboard focus when that cell is double clicked on by the user

Implementing all of this has been thus far pretty painless. I would first of all like to express that I couldn't be happier with the server-side documentation and examples for the control, however the the client side API documentation is severely lacking and I see that in some circumstances other users are left with little choice other than to come to the forums for help (although I can sympathise with the documentation challenges that Javascript development represents). Hence why I am here. Sad face.

I would like to draw your attention to your following RadGrid keyboard support example, where the problem I am about to describe manifests itself: http://demos.telerik.com/aspnet-ajax/grid/examples/client/keyboardnavigation/defaultcs.aspx

I would recommend switching to the Office2007 skin which makes the unexplained variation in selection behaviour more apparent.

The problem is thus:

  1. Select a row using the mouse. The selected row turns orange.
  2. Select another row using the mouse. The previous row is deselected, the newly selected row now turns orange. Lets call this behaviour "A".
  3. Using the up or down cursor arrow on the keyboard, the selection behaviour changes. The appearance of the selected row is now light blue.
  4. Navigate across as many rows as you like with the cursor keys, the selected row remains light blue. Lets call this behaviour "B".
  5. Now using the mouse, repeat steps 1 and 2. The selection behaviour has transitioned permanently from behaviour "A" to behaviour "B".

On the pre-render behaviour described for 2nd implemented feature, I perform the following:

_grid.SelectedIndexes.Add(_editedItem.ItemIndex) 

When the grid appears in the browser, the row is selected with the appearance of selection behaviour "A". When the grid is in this mode, the Enter key does not initiate editing as I would expect. However, transitioning to behaviour "B" as described above, and Enter will initiate editing.

What is the difference between behaviours "A" and "B"? Why is the selection behaviour transition permanent? How would I initialise the grid after an AJAX response into behaviour "B" by default?


Many thanks

TLK
Daniel
Telerik team
 answered on 16 Mar 2011
1 answer
99 views
I am currently displaying a derived column to show true/false if one date field in my data source is greater than the other using rad grid control. Is it possible to sort that field? If yes, what should be given in the sort expression?

Thanks in advance,
Karthi.
Iana Tsolova
Telerik team
 answered on 16 Mar 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?