Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
184 views
I'm having some trouble with the Q3 2008 (2008.3.1125) RadTextBox control when it is inside a RadPane. In this scenario, if I set the width to a percentage the textbox always renders to its minimum width. Moving the RadTextBox outside of the RadPane solves the problem. Setting the width in pixels also solves the problem.

Also, the problem is only with IE (7 & 8). Firefox and Chrome both behave correctly.

Here's a short example:
<!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
</head> 
<body> 
    <form id="form1" runat="server"
     
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server"
    </telerik:RadScriptManager> 
 
    <telerik:RadSplitter ID="MainSplitter" runat="server" Orientation="Horizontal" Width="100%" PanesBorderSize="0" BorderSize="0" VisibleDuringInit="false"
        <telerik:RadPane ID="RadPane1" runat="server" Width="100%"
            <telerik:RadTextBox ID="Description" runat="server" Width="50%" TextMode="MultiLine" /> 
        </telerik:RadPane> 
    </telerik:RadSplitter> 
 
    <telerik:RadTextBox ID="RadTextBox1" runat="server" Width="50%" TextMode="MultiLine" /> 
 
    </form> 
</body> 
</html> 

I found this these two threads:

http://www.telerik.com/community/forums/aspnet-ajax/general-discussions/q3-2008-dll-problems.aspx
http://www.telerik.com/community/forums/aspnet-ajax/splitter/problem-with-visibleduringinit-false.aspx

but that work-around doesn't seem to fix this width problem.

Any advice is greatly appreciated.


Dimo
Telerik team
 answered on 09 Jan 2009
2 answers
119 views
Hello,

I have a RadToolTip which should be displayed when the mouse hovers over an asp button.  When I use a RadFormDecorator to set the skin of the button, the RadToolTip does not appear when it mouses over the button.  If I exclude the button from the RadFormDecorator's DecoratedControls or set a DecorationZoneID to exlude the button, the RadToolTip behaves as expected and appears on mouse over.  Is this a bug or is this behaviour by design?  Is there anything I can do to use both a RadToolTip and a RadFormDecorator for the same control?

Thanks,
Marie
Marie
Top achievements
Rank 1
 answered on 09 Jan 2009
1 answer
170 views
I have a page that can be opened in either a RadWindow or a normal browser window. Is there a way to tell from within the page at server-side which window is opening the page? Or do I have to inject something from the calling page, like a URL parameter "OpenedInRadWindow=True/False"?
Georgi Tunev
Telerik team
 answered on 09 Jan 2009
1 answer
90 views

Hi

When I click to Button1, radwindow manager close and page is postback. But I don't want close rand window and page post. How can I make  idea?

thank you... 

 <asp:ScriptManager ID="ScriptManager1" runat="server">    
    </asp:ScriptManager>    
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">  
            <ContentTemplate> 
             <telerik:RadWindowManager  ID="RadWindowManager1" Skin="Web20" runat="server" Modal="true">  
             </telerik:RadWindowManager>    
                        
                <script type="text/javascript">    
                    function openAndSet()    
                    {    
                        var content = $get("hiddenContent");     
                        var oWnd = radopen(null,"RadWindow1");     
                        oWnd.set_contentElement(content);     
                    }    
                    
                </script>    
                    
                <button onclick="openAndSet(); return false;" type="button">open and set</button>    
                <div style="display: none">    
                    <div id="hiddenContent">    
                        <asp:Button ID="Button1" runat="server" Text="Button" OnClick="Button1_Click" /><asp:Label ID="Label1" runat="server" 
                            Text="Label"></asp:Label> 
                    </div>    
                </div>    
                <asp:Button ID="Button2" runat="server" Text="Button1" OnClick="Button2_Click" /> 
                <asp:Label ID="Label2" ForeColor="red" runat="server" Text="Label"></asp:Label> 
            </ContentTemplate> 
        </asp:UpdatePanel> 
Georgi Tunev
Telerik team
 answered on 09 Jan 2009
1 answer
64 views
Hi,
I am encountering issues with my grid after I perform a sort.
I have a web page that binds a <List> of objects to my datagrid in the page load. I also store this list in the users session for later use when I want to perform selecting.

List<Invoice> outstandingInvoices = InvoiceInfo.GetOutstandingInvoicesByDebtor(1);
Session["outstandingInvoices"] = outstandingInvoices;
rg_Invoices.DataSource = outstandingInvoices;

After the user has select items in rg_Invoices they click a select button and the invoices they selected placed in rg_Assigned and Removed from rg_Invoices
            //create a list to store what was selected
            List<InvoiceInfo> assignedInvoices = (List<InvoiceInfo>)Session["assignedInvoices"];
            //read in the original list from the session
            List<InvoiceInfo> outstandingInvoices = (List<InvoiceInfo>)Session["outstandingInvoices"];
            //Create a new outstandingInvoicesList
            List<InvoiceInfo> newOutstandingInvoices = new List<InvoiceInfo>();

            foreach (InvoiceInfo inv in outstandingInvoices)
            {
                bool test = false;
                //compare it against the selected items in the grid
                foreach (GridDataItem item in rg_Invoices.SelectedItems)
                {
                    InvoiceInfo invoice = (InvoiceInfo)outstandingInvoices[item.ItemIndex];
                    if (inv == invoice)
                    {
                        //if it finds it then add the obj to assigned
                        assignedInvoices.Add(invoice);
                        test = true;
                    }
                }
                if (!test)
                    newOutstandingInvoices.Add(inv); //if not found add to new matches
            }

            Session["assignedInvoices"] = assignedInvoices;
            rg_Assigned.DataSource = assignedInvoices;
            rg_Assigned.DataBind();

            Session["outstandingInvoices"] = newOutstandingInvoices;
            rg_Invoices.DataSource = newOutstandingInvoices;
            rg_Invoices.DataBind();

This all works fine however if I perform a sort on the grid and then try so select items from rg_Invoices into rg_Assigned then the wrong invoice gets brought across.

My code to sort the datagrid is
protected void rg_Invoices_NeedDataSource(object source, GridNeedDataSourceEventArgs e)
{
            List<InvoiceInfo> outstandingInvoices = (List<InvoiceInfo>)Session["outstandingInvoices"];
            rg_Invoices.DataSource = outstandingInvoices;
}

The sort works fine but it appears that the sort only works client side and the list of invoices in my session does not get sorted therefore they then become out of synch when I try to select.

Is there any way that I can set my session to the sorted format in the NeedDataSource method??

Any help would be greatly appreciated.

Thanks,
Michael
Yavor
Telerik team
 answered on 09 Jan 2009
1 answer
91 views
2 answers
717 views
Is it possible to make the Grid control visible even if datatable is empty.
I just need the command line with Insert and refresh buttons to be there all the time.
Say you start a new project so there is no data into database. How about that?

Thank you
El
Top achievements
Rank 1
 answered on 09 Jan 2009
2 answers
109 views
I want to implement following.

Dynamically create the menu. The menu will be generated from the external data base.

My idea is to use the RadSplitter for my website and there should be two Panels inside splitter appearing horizontally.
On the left pane there will be radmenu which will be created once... and then depending upon the use selection of menu the corresponding url should appear in the right pane ...  That URL can be of internal /relative page or external link such as (http://www.xyz.com).

Is there any example that desribe a similar design ???

I have tried to implent the above and started with radmenu in left pane which is populated at design time statically. The problem is when I click the menu in left pane it opens the URL in a new window. How can I direct that it should open up in the right pane of the RadSplitter ??


thanks



Svetlina Anati
Telerik team
 answered on 09 Jan 2009
7 answers
370 views
Hi all,

I installed the radeditor solution package in my moss server and the migration from OOB RTB to RADeditor happened smoothly..

I wanted to do some customization am able to include the image manager in the control.,

i modified the listconfig.xml file to include the image path.
I have two picture libraries where in one i have contribute access and in the other i dont have access at all.

The problem i am facing is whenever i click on the imagemanager link in the editor, i am getting MOSS OOB access denied error, even though i have contribute access in one of the pic library i have mentioned in the listconfig.xml.

How do i address this issue? its fine even the imagemanager lists all the pic libs, but i should not be able to access the contents in it.

i'm pretty much stuck and this has to be completed soon, do help me asap.

Thanks in advance.
Shiva.
--
Stanimir
Telerik team
 answered on 09 Jan 2009
7 answers
183 views
Hi,

I've just installed the trial version, as instructed by the online help (and have subsequently set the trust level to 'Full' for test purposes), however have run into some difficulties.

If I try and add the web part to a newly created page, I get the following message:

Unable to add selected webpart(s):

Telerik RadEditor for MOSS: A Web part or Web Form Control on this page cannot be displayed or imported: The type is not registered as safe.

I tried adding the below entry into the web.config, however got a different error suggesting an incorrect format and the web part could not be deserialized.

<SafeControl Assembly="RadEditorSharePoint, Version=5.3.1.0, Culture=neutral, PublicKeyToken=1f131a624888eeed" Namespace="Telerik.SharePoint" TypeName="*" Safe="True" /> 

What can I do to get this working?

Thanks.
Stanimir
Telerik team
 answered on 09 Jan 2009
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?