Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
147 views
There are a lot of posts on the UpdateCommand function, but I couldn't find a solution to my problem in any of them.

I'm hooking into UpdateCommand and performing my own data update functions. Using the examples and suggestions from the site I was able to get everything working beautifully, with one exception. After performing the actual update, the grid remains in what appeard to be the edit mode. (This behaves the same if I don't hook into UpdateCommand and there is no data source defined).

I looked for solutions to this, and there seem to be a couple suggested that work well if the EditMode is EditForms, but I'm using InPlace. When I try to use the solutions from the other posts, I get an exception: Only items with IsInEditMode set to true can be updated. This happens if I try to call MasterTableView.ClearEditItems() or if I try to set e.Item.Edit to false

I looked at the samples in the Help section, and none of them show any hint there's something more to be done, so I'm not sure what I'm doing wrong. Can anyone suggest a way to get back to 'normal' selection mode with no editing controls visible?

TIA.  
Dave Hayward
Top achievements
Rank 1
 answered on 20 Jan 2010
13 answers
191 views
Hi
I just use RadCombo with dir="rtl" attribute but the items division opens in wrong position
Like this

and my aspx code is:
<table width="200px"
    <tr> 
        <td style="width:35%"
            <asp:TextBox runat="server" ID="txtCode" Width="100%" onchange="setDescriptionCombo();"/> 
        </td> 
        <td style="width:60%" dir="ltr"
            <telerik:RadComboBox runat="server" EnableLoadOnDemand="true" ID="rcmbDescription" 
                Width="120" HighlightTemplatedItems="true" MarkFirstMatch="true" 
                dir="rtl" ShowMoreResultsBox="true" EnableVirtualScrolling="true" Filter="Contains"
            </telerik:RadComboBox> 
        </td > 
        <td style="width:5%" align="center"
             
        </td> 
    </tr> 
</table> 
Thanks in advance
Majid Darab
Top achievements
Rank 1
 answered on 20 Jan 2010
2 answers
148 views
Forgive me if this is something I should know.

I've just used the VSX for the first time to create a page and I note that the markup generated includes this ...
<telerik:RadScriptManager ID="RadScriptManager1" runat="server"
  <Scripts> 
    <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" /> 
    <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" /> 
  </Scripts> 
</telerik:RadScriptManager> 
 

Now, I've created more than a few pages with telerik controls on and have always done so just adding an empty RadScriptManager to the page. What are the advantages of adding the 2 script references (or the disadvantages of not doing so)?

--
Stuart



Stuart Hemming
Top achievements
Rank 2
 answered on 20 Jan 2010
3 answers
139 views
By default, when you hover over an appointment, a "red x" close button appears on the appointment.  Can I make a modification to add another button when hovering over an appointment?  And if so, where would I handle the click event on this button?
Peter
Telerik team
 answered on 20 Jan 2010
1 answer
95 views
How to display YouTube vedio in Telerik Control?
Daniel
Telerik team
 answered on 20 Jan 2010
1 answer
142 views
How to display YouTube vedio in RdoListView?

Please provide code.
Daniel
Telerik team
 answered on 20 Jan 2010
1 answer
89 views
When we switch to the timeline view of our calendar the view shows up with scrollbars and you cannot see the pop out calendar.  I attached a screen shot.


Sorry I posted this in the wrong forum, I re-posted it in the Scheduler forum where it belongs..... :)
Peter
Telerik team
 answered on 20 Jan 2010
2 answers
74 views
Version:
Q2 2009 NET35
Senario:
If user click "Add New Record" in midst of editing a row, how to close the preview editform (Edit Mode, cancel all edit transcation) and open a new editform (Insert Mode) instead of allow 2 editforms appear together in the grid?

 

BUbu Chan
Top achievements
Rank 1
 answered on 20 Jan 2010
2 answers
220 views
My intent is to update the second RadComboBox from the xmldatasource but I foudn the Databind() call wasnt working. I commented out that code and tried a simpler population approach (in case theres a problem with my Xpath to the xmldatasource) but its still not working. I have seen references in the forum to needing to set these properties in the RadComboBox
RegisterWithScriptManager="false"
        EnableClientScriptEvaluation="true"
but it hasnt succeeded. What mistake am I making? 

Also, why isnt the source code for the webservices files provided with the examples on using webservice with RadXmlHttpPanel? 

I couldnt find an example which showed the webservice method required to populate a RadComboBox using RadXmlHttpPanel.

Thanks for any assistance


<%@ Page Language="C#" AutoEventWireup="true" CodeFile="AjaxCombo.aspx.cs" Inherits="AjaxCombo" %>

<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>Untitled Page</title>
    <telerik:RadScriptBlock ID="RadScriptBlock1" runat="server">

        <script type="text/javascript">
            function SetValue(combo, args)
            {
                var value = combo.get_value();
                var panel = $find("<%=RadXmlHttpPanel1.ClientID %>");

                panel.set_value(value);
            }
        </script>

    </telerik:RadScriptBlock>
    <style type="text/css">
        .combobox-panel
        {
            width: 750px;
            height: 64px;
            background: transparent url( 'Images/backgrounds/div_rounded.png' ) no-repeat 0 0;
            margin-bottom: 30px;
            text-align: center;
        }
        .combobox-panel .RadComboBox
        {
            margin-top: 20px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
    </telerik:RadScriptManager>
    <div class="combobox-panel">
        <telerik:RadComboBox ID="RadComboBox1" runat="server" Width="289px" Height="200px"
            DataSourceID="XmlDataSource1" DataValueField="ID" DataTextField="name" EmptyMessage="Choose a council..."
            OnClientSelectedIndexChanged="SetValue">
        </telerik:RadComboBox>
    </div>
    <telerik:RadXmlHttpPanel ID="RadXmlHttpPanel1" runat="server" OnServiceRequest="RadXmlHttpPanel1_ServiceRequest">
        <div class="combobox-panel">
            <telerik:RadComboBox ID="RadComboBox2" runat="server" Width="289px" Height="200px"
                EmptyMessage="Choose a plan..." Visible="False">
            </telerik:RadComboBox>
        </div>
    </telerik:RadXmlHttpPanel>
    <asp:XmlDataSource ID="XmlDataSource1" runat="server" DataFile="App_Data/ClientData.xml"
        XPath="clients/client/documents/document" />
    <asp:XmlDataSource ID="XmlDataSource2" runat="server" DataFile="App_Data/ClientData.xml" />
    </form>
</body>
</html>

    protected void RadXmlHttpPanel1_ServiceRequest(object sender, Telerik.Web.UI.RadXmlHttpPanelEventArgs e)
    {
        //XmlDataSource2.XPath = "clients/client[@ID='" + e.Value + "']/documents/document";
        //RadComboBox2.DataSourceID = XmlDataSource2.ID; 
        //RadComboBox2.DataBind();
        //RadComboBox2.Visible = true;

        ArrayList itemsList = new ArrayList();
        itemsList.Add("Beverages");
        itemsList.Add("Condiments");
        itemsList.Add("Confections");
        RadComboBox2.DataSource = itemsList;
        RadComboBox2.DataBind();
        RadComboBox2.Visible = true;
    }
Pero
Telerik team
 answered on 20 Jan 2010
7 answers
182 views
hi
i have radtooltip manager placed in my master pages which i want to use to tooltipify only the form elements throughout my application. All of my forms are enclosed within a DIV for css formatting purposes so the tooltipzoneid seemed like an ideal way of setting this up. i placed the following tooltip manager in the master page:

                        <telerik:RadToolTipManager runat="server" ID="RadToolTipManager2" Width="200px" Height="75px"
                            ContentScrolling="None" OffsetX="0" OffsetY="-8" RelativeTo="Element" Position="TopCenter"
                            Animation="None" Skin="Sitefinity" ShowEvent="OnMouseOver" ShowCallout="true"
                            HideEvent="LeaveTargetAndToolTip" HideDelay="3000" AutoTooltipify="true" ToolTipZoneID="edForm">
                        </telerik:RadToolTipManager>

... and in the detail pages that required tooltipifying, i typically have something like this:

                    <div id="edForm">
                        <fieldset>
                            <legend>Link Details</legend>
                            <div class="fm-req">
                                <label for="wtl_name">
                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" Text="*"
                                        ErrorMessage="The Name field is required." ControlToValidate="wtl_name"></asp:RequiredFieldValidator>Name:</label>
                                <asp:TextBox runat="server" ID="wtl_name" Text='<%# Bind("wtl_name") %>' MaxLength="100"
                                    ToolTip="Used to identify this tracked link (for your internal use only)."></asp:TextBox>
                            </div>
                        </fieldset>
                    </div>

Unfortunately, this setup does not seem to work. When the radtooltip manager is in the master page, everything on the page is tooltipified, irrespective of the zone ID. When i move the manager to the detail page, only those elements within the div are tooltipified.

Is there anything that can be done about this?
cheers,
rob



Svetlina Anati
Telerik team
 answered on 20 Jan 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?