Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
126 views

To be honest, I'm unsure if this is a TreeView or Splitter problem, so please bare with me.

I have a TreeView in a RadPane. The TreeView, when expanded, puts some of the nodes close to, or past the RadPane's edge. If the overlapping nodes are neither selected or hovered over, all is OK, but otherwise, well you can see for yourself in ss3.gif (attached).

FYI, this happens in IE8 but not FF3.5. The skins are Q1 2009's WebBlue.

-- 

Stuart

Stuart Hemming
Top achievements
Rank 2
 answered on 12 Nov 2009
1 answer
149 views

Hi,

 

I place telerik grid inside Splitter. I want that splitter should display only vertical scroll so I try using Scrolling="X" and also Scrolling="Y", even after add Scrolling it display horizontal scrollbar. If I add Scrolling="None" it not display any scrollbar but I want that It should show me vertical scroll bar when scrolling need.

 

In deep when I check with RadGrid I found that I use PopUp In my application when user add/edit record using <MasterTableView EditMode="PopUp" Here if I replace EditMode="EditForms" in this case Scrolling work fine, but I don’t want to change my application appearance.

 

 

Dimo
Telerik team
 answered on 12 Nov 2009
5 answers
82 views
Hi,

I have just updated to 2009.2.826 and noticed that when the Sunset skin is used, the Month view on my Scheduler does not display any dates (it looks like they are actually set to the same colour as the background).  All other built in skins appear to be OK.

David Penny.
Peter
Telerik team
 answered on 12 Nov 2009
1 answer
123 views
Hi, how can the items from the LinkManager popup be removed from the page? ie. css class field, tooltip field
Shinu
Top achievements
Rank 2
 answered on 12 Nov 2009
3 answers
227 views
I try to fire the server side function when click on the image of the image librairy:

                                <telerik:RadListView runat="server" ID="RadLVPhotos" Enabled="false" Visible="true" 
                                    AllowPaging="true" PageSize="10" DataKeyNames="Id" 
                                     OnNeedDataSource="RadLVPhotos_NeedDataSource" OnSelectedIndexChanged="RadLVPhotos_SelectedIndexChanged" ItemPlaceholderID="ProductsHolder">  
                                    <LayoutTemplate> 
                                        <div id="list">  
                                            <div style="clear: both;">  
                                            </div> 
                                            <fieldset runat="server" id="ProductsHolder" /> 
                                            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  
                                            <div style="clear: both;">  
                                            </div> 
                                        </div> 
                                    </LayoutTemplate> 
                                    <EmptyDataTemplate> 
                                        <legend>Photos</legend>Aucune photo...  
                                    </EmptyDataTemplate> 
                                    <ItemTemplate> 
                                        <fieldset style="float: left; margin: 5px 5px 5px 5px; padding: 2px 2px 2px 2px;  
                                            background: #eeeeee" class="myClass" onmouseover="containerMouseover(this)" onmouseout="containerMouseout(this)">  
                                            <telerik:RadBinaryImage Style="cursor: pointer;" runat="server" ID="RadBinaryImage1" 
                                                DataValue='<%#Eval("Fichier.Content") %>' AlternateText='<%#Eval("Fichier.itemID") %>' Height="120px" Width="120px" 
                                                ResizeMode="Fit" onclick="" /> 
                                            <br /> 
                                            <div style="margin-top: -30px; position: fixed; display: none; width: 60px;">  
                                            </div> 
                                        </fieldset> 
                                    </ItemTemplate> 
                                </telerik:RadListView> 

    Protected Sub RadLVPhotos_SelectedIndexChanged(ByVal sender As ObjectByVal e As EventArgs)  
        Dim radLVPhotos As RadListView = DirectCast(sender, RadListView)  
 
        If radLVPhotos.SelectedItems.Count <> 0 Then 
 
        Else 
            radLVPhotos.ClearSelectedItems()  
        End If 
    End Sub 

Nothing append...

any suggestion?
Sebastian
Telerik team
 answered on 12 Nov 2009
2 answers
89 views
Hi,

In Q2, I followed  the tutorial http://www.telerik.com/support/kb/aspnet-ajax/editor/using-the-image-and-document-managers-outside-radeditor.aspx to use a standalone imageEditorManger dialog and it worked well.
Here is my client script to load the Editor:


    function OpenImageEditor()  
    {  
      debugger;  
        var args = new Telerik.Web.UI.EditorCommandEventArgs("DocumentManager"nulldocument.createElement("a"));  
        args.CssClasses = [];  
        var img = $get('<%= Image1.ClientID %>');    
        args.imageSrc = img.src;  
        debugger;  
        var dialog = $find('<%= DialogOpener1.ClientID %>');  
        dialog.open('ImageEditor', args);  
        } 

Since Q3, the Telerik.Web.UI.EditorCommandEventArgs is undefined. I don't know when the registerclass is called for the EditorCommandEventArgs but the class is not present on the page, There is another way in Q3 to pass arguments to the dialog ?

Thanks and regards

Alain
Rumen
Telerik team
 answered on 12 Nov 2009
1 answer
109 views
 private void UpdateToolTip(string elementID, UpdatePanel panel)
        {
            Control ctrl = Page.LoadControl("ProductDetails.ascx");
            panel.ContentTemplateContainer.Controls.Add(ctrl);
            ProductDetails details = (ProductDetails)ctrl;(Here)
            details.ProductID = elementID;
        }


I dont know where ProductDetails is. please help me to do this . i'm doing Tooltipified RadGrid . Thanks
Svetlina Anati
Telerik team
 answered on 12 Nov 2009
4 answers
191 views
Hi,
I have a popup screen which allowed user to enter the address.
Some fields are mandatory, so if user didn't enter for those fields, error message should show.
That popup screen don't have c# codes and totally no post back. All events/functions are done in Javascript.
Now the problem is the error message didn't show when I click on the 'Save' button. It just didn't close the popup screen cause of the mandatory fields.
I have tried to do a manual post back from javascript ('Form1.Submit();');
The text box are in red border and alert logo also shown, but the error message still not coming out.
Please help.
Below is the source code for the popup screen.

<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %> 
<!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 runat="server">  
    <title></title>  
    <style type="text/css" media="all">  
        @import "/css/standard.css";  
    </style> 
 
    <script src="/js/jquery-1.2.6.min.js" type="text/javascript"></script> 
 
    <script src="/js/common.js" type="text/javascript"></script> 
 
    <script language="javascript" type="text/javascript">  
        function GetRadWindow(){  
            var oWindow = null;  
            if (window.radWindow) oWindow = window.radWindow;  
            else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow;  
            return oWindow;  
        }  
        function PopulateData()  
        {  
            var oObject = GetRadWindow().argument;  
              
            document.getElementById('txtAddressLine1').value = oObject.Company;  
            document.getElementById('txtAddressLine2').value = oObject.Address1;  
            document.getElementById('txtAddressLine3').value = oObject.Address2;  
            document.getElementById('txtCity').value         = oObject.City;  
            document.getElementById('txtState').value        = oObject.State;  
            document.getElementById('txtCountry').value      = oObject.Country;  
            document.getElementById('txtPostal').value       = oObject.Postcode;  
              
            document.getElementById('txtAddressLine1').readOnly = oObject.ReadOnly;  
            document.getElementById('txtAddressLine2').readOnly = oObject.ReadOnly;  
            document.getElementById('txtAddressLine3').readOnly = oObject.ReadOnly;  
            document.getElementById('txtCity').readOnly         = oObject.ReadOnly;  
            document.getElementById('txtState').readOnly        = oObject.ReadOnly;  
            document.getElementById('txtCountry').readOnly      = oObject.ReadOnly;  
            document.getElementById('txtPostal').readOnly       = oObject.ReadOnly;  
 
            if (oObject.ReadOnly)  
            {  
                document.getElementById('btnSave').style.visibility = "hidden";  
                document.getElementById('divButton').style.visibility = "hidden";  
            }  
            else  
            {  
                document.getElementById('btnSave').style.visibility = "visible";  
                document.getElementById('divButton').style.visibility = "visible";  
            }  
        }  
          
        function returnToParent(strMode)  
        {  
            //create the argument that will be returned to the parent page  
            var arg  = new Object();  
              
            if( (strMode != null) && (strMode == 'Save'))  
            {  
                arg.Company   = document.getElementById('txtAddressLine1').value;  
                arg.Address1  = document.getElementById('txtAddressLine2').value;  
                arg.Address2  = document.getElementById('txtAddressLine3').value;  
                arg.City      = document.getElementById('txtCity').value;  
                arg.State     = document.getElementById('txtState').value;  
                arg.Country   = document.getElementById('txtCountry').value;  
                arg.Postcode  = document.getElementById('txtPostal').value;  
            }  
              
            //get a reference to the current RadWindow  
            var oWnd = GetRadWindow();  
              
            //Close the RadWindow and send the argument to the parent page  
            oWnd.close(arg);  
        }  
    </script> 
 
</head> 
<body onload="PopulateData()">  
    <form id="form1" runat="server">  
    <telerik:RadFormDecorator ID="RadFormDecorator1" runat="server" DecoratedControls="Default, Label" /> 
    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server">  
    </telerik:RadAjaxLoadingPanel> 
    <telerik:RadAjaxPanel ID="ajaxPanelAccount" runat="server">  
        <asp:ScriptManager ID="ScriptManager1" runat="server">  
        </asp:ScriptManager> 
        <telerik:RadInputManager ID="radMgrMandatoryFields" runat="server">  
            <telerik:RegExpTextBoxSetting BehaviorID="mandatoryField" EmptyMessage="<%$ Resources:Error, MandatoryCardGroupName %>" 
                     ErrorMessage="<%$ Resources:Error, MandatoryCardGroupName %>" IsRequiredFields="true">  
                <TargetControls> 
                    <telerik:TargetInput ControlID="txtAddressLine1"/>  
                    <telerik:TargetInput ControlID="txtCity"/>  
                    <telerik:TargetInput ControlID="txtCountry"/>  
                    <telerik:TargetInput ControlID="txtPostal"/>  
                </TargetControls> 
        </telerik:RadInputManager> 
        <div> 
            <table width="98%" cellpadding="10px">  
                <tr> 
                    <td> 
                        <div id="tb_card_settings">  
                            <h2> 
                                <asp:Literal ID="ltrlDeliveryAddressTitle" runat="server" Text="<%$ Resources:DeliveryAddress.aspx, ltrlDeliveryAddressTitle%>"></asp:Literal> 
                            </h2> 
                            <div> 
                                <div class="">  
                                    <table> 
                                        <tr> 
                                            <td style="width:30%">  
                                                <asp:Literal ID="ltrlAddressLine1" runat="server" Text="<%$ Resources:DeliveryAddress.aspx, ltrlAddressLine1 %>"></asp:Literal> 
                                            </td>   
                                            <td style="width:70%">  
                                                <asp:TextBox ID="txtAddressLine1" runat="server"></asp:TextBox> 
                                            </td> 
                                        </tr> 
                                        <tr> 
                                            <td style="width:30%">  
                                                <asp:Literal ID="ltrlAddressLine2" runat="server" Text="<%$ Resources:DeliveryAddress.aspx, ltrlAddressLine2 %>"></asp:Literal> 
                                            </td> 
                                            <td style="width:70%">  
                                                <asp:TextBox ID="txtAddressLine2" runat="server"></asp:TextBox> 
                                            </td> 
                                        </tr> 
                                        <tr> 
                                            <td style="width:30%">  
                                                <asp:Literal ID="ltrlAddressLine3" runat="server" Text="<%$ Resources:DeliveryAddress.aspx, ltrlAddressLine3 %>"></asp:Literal> 
                                            </td> 
                                            <td style="width:70%">  
                                                <asp:TextBox ID="txtAddressLine3" runat="server"></asp:TextBox> 
                                            </td> 
                                        </tr> 
                                        <tr> 
                                            <td style="width:30%">  
                                                <asp:Literal ID="ltrlCity" runat="server" Text="<%$ Resources:DeliveryAddress.aspx, ltrlCity %>"></asp:Literal> 
                                            </td> 
                                            <td style="width:70%">  
                                                <asp:TextBox ID="txtCity" runat="server"></asp:TextBox> 
                                            </td> 
                                        </tr> 
                                        <tr> 
                                            <td style="width:30%">  
                                                <asp:Literal ID="ltrlState" runat="server" Text="<%$ Resources:DeliveryAddress.aspx, ltrlState %>"></asp:Literal> 
                                            </td> 
                                            <td style="width:70%">  
                                                <asp:TextBox ID="txtState" runat="server"></asp:TextBox> 
                                            </td> 
                                        </tr> 
                                        <tr> 
                                            <td style="width:30%">  
                                                <asp:Literal ID="ltrlCountry" runat="server" Text="<%$ Resources:Common, ltrlCountry %>"></asp:Literal> 
                                            </td> 
                                            <td style="width:70%">  
                                                <asp:TextBox ID="txtCountry" runat="server"></asp:TextBox> 
                                            </td> 
                                        </tr> 
                                        <tr> 
                                            <td style="width:30%">  
                                                <asp:Literal ID="ltrlPostal" runat="server" Text="<%$ Resources:DeliveryAddress.aspx, ltrlPostal %>"></asp:Literal> 
                                            </td> 
                                            <td style="width:70%">  
                                                <asp:TextBox ID="txtPostal" runat="server"></asp:TextBox> 
                                            </td> 
                                        </tr> 
                                    </table> 
                                </div> 
                            </div> 
                            <p></p>  
                            <div Id="divButton" runat="server">  
                                <class="buttons">  
                                    <asp:Button ID="btnSave" runat="server" Text="<%$ Resources:Button, btnSave %>" OnClientClick="returnToParent('Save'); return false;" /> 
                                </p> 
                            </div> 
                        </div> 
                    </td> 
                </tr> 
            </table> 
        </div> 
    </telerik:RadAjaxPanel> 
    </form> 
</body> 
</html> 
 
Sebastian
Telerik team
 answered on 12 Nov 2009
4 answers
206 views
Hello ,

I have a RadGrid in my Projekt and fill it with LINQtoSQL
Programmaticliy..

I have Insert a Button Field by Hand in my Grid with a Select Command

I will when i click on the Select Button Redirect to another Page and Send
him the ID number of the Selected Row in a Query String ???
The ID Number comes from the Database and is a Unique Field INT

How come i to the ID Value from my ID Cell in my Grid where i actual Selected??

My Programming Language is only VB.NET not C#

Thanks for Help
Sebastian
Telerik team
 answered on 12 Nov 2009
2 answers
120 views
I need to find the update event for other recreate user control(on click of OK button) similar to update user control(as on click of UPDATE button) in the grid from the code behind. Concerned image file illustrating this has been attached with this post.


if (e.CommandName == RadGrid.UpdateCommandName) 
            { 
                UserControl userControl = (UserControl)e.Item.FindControl(GridEditFormItem.EditFormUserControlID); 
                RadTextBox txtOrderValue = userControl.FindControl("txtOrderValue"as RadTextBox; 

 
These user controls are loading in grid as the user hits concerned image buttons in the grid.



Thanks,
Awadh
Awadh .
Top achievements
Rank 1
 answered on 12 Nov 2009
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?