Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
172 views
My Grid has dynamic number of columns, range from 4-14 columns. Each header and cell is fixed width. MasterTableView TableLayout is Fixed. RadGrid's Width is left free (not width="100%").

The problem is in IE6, the Grid's broder is fully covers all item cells no matter how many columns it has. But in IE7, 8, Chrome or Firefox, Grid's border is always 100%, that causes cells in columns at right side of "100%" (columns that overflow the width of screen) have no border.

How could I do to keep the border covering all columns?

 

Eg.: 14 columns with 100px width each display in a 1024x768 screen
Dimo
Telerik team
 answered on 25 Mar 2010
1 answer
341 views
Hi all,

I was wondering if anyone had tried to use the built in jQuery.js available in Telerik.Web.UI along with JQueryUI? At the moment I have the following to try register both on my page:

<body> 
    <form id="form1" runat="server">  
        <telerik:RadScriptManager runat="server" ID="RadScriptManager1" > 
           <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" /> 
               <asp:ScriptReference Path="~/JQuery/js/jquery-ui-1.7.2.custom.min.js" /> 
           </Scripts> 
        </telerik:RadScriptManager> 

but I get the error 'Error: 'jQuery.ui' is null or not an object' when I run the page. If I manually include an external 1.3.2 jquery .js (supplied with JQuery UI), all works fine.

Any Ideas?
Rosen
Telerik team
 answered on 25 Mar 2010
1 answer
140 views
I have a scenario where I would like autolayout to work as it is, however, the legend, if it becomes too big, occupies all space on the chart. I would like to set a max limit for the legend height such as "30%" or something so that beyond a certain point, I want the chart to be fairly visible, even if it clips the legend.

If possible, can the legend be made scrollable?
Velin
Telerik team
 answered on 25 Mar 2010
1 answer
113 views
Hi,

I'm sure you have had this one before so if you could point me to something similar....

I have a server side creation of a RadAlert window using the usual Sys.Application.remove_load and add_load procedure however the alert keeps popping up as it seems to be caching when the user hits the back button after it has been activated.  I have tried to put a onclick event on a button to clear the function using remove_load before it moves to the next page however it still doesn't seem to clear it.

Its used in validation so if a user inputs failed validation it pops up.  If they then go and enter correct validation it then moves onto the next page.  If they then use back button this is where it pops up again.  Any ideas?

Server side:

private

 

void Page_Load(object sender, System.EventArgs e)

 

{

if

 

(!IsPostBack)

 

{

btnSearch.Attributes.Add(

"onclick", "Sys.Application.remove_load(f);");

 


}
}

private

 

void btnSearch_Click(object sender, System.EventArgs e)

 

{

string

 

radalertscript = "(function(){var f = function(){radalert('Welcome to RadWindow Prometheus!',     330,     210);Sys.Application.remove_load(f);};Sys.Application.add_load(f);})()";
RadAjaxManager1.ResponseScripts.Add(radalertscript);
}

Ive also tried using 

 

RadAjaxManager1.ResponseScripts.Clear();
before it moves on to the next page on the postback event

Georgi Tunev
Telerik team
 answered on 25 Mar 2010
5 answers
137 views
Hi,

I've installed the RadEditor and the MOSS 2007 integration, modified the RadEditorFeatureRichHtml and RadEditorFeatureRichText to Site level scope, and my content editing boxes are automatically replaced with RadEditor.  This is great, as I can now edit in FireFox, Chrome, etc.!  However, I'm running into a strange problem.

I want to embed Flash videos, a la YouTube embeds.  I use the HTML view, and switching back and forth between that and the design view indicates that there is no problem with the browser stripping the tag.  When I submit the content, though, it seems the embed tags and/or object tags disappear.  What's weird is that on my top-level page, it seems to work just fine-- I can copy a YouTube embed link, paste it into the RadEditor, click publish, and it will show up in the published view.  I need it to work on all the sites, though, and I can't seem to figure out what is special about the top-level site.

I understand that SharePoint has some server-side processing to remove embed and object tags.  I have seen mention, from the forums, that there was a possibility of encoding those tags before submission and automatically decoding them at retrieval in order to bypass this.  Does RadEditor implement this?  If not, where does the server-side filtering occur, and how does it get bypassed?

All the content columns in question are of type Publishing HTML.  Please advise if I need to give more information.

Thanks!
Stanimir
Telerik team
 answered on 25 Mar 2010
1 answer
118 views
Hi,
I want to change the ItemTemplate dynamically during runtime.
Is it possible to use the NVelocity template engine view in order to populate the ItemTemplate?

Best,
BaiH
Top achievements
Rank 1
 answered on 25 Mar 2010
1 answer
82 views
Hi guys,

I am using a RadListBox inside the ItemTemplate of a RadListBox. Sometimes when selecting, reordering or deleting an Item from the inner ListBox, a javascript error is thrown: "Microsoft JScript runtime error: 'f.getItem(...)' is null or not an object".

This happens in the Telerik javascript line: 

d.each(

this._selectedIndices,function(){if(this!=e){f.getItem(this)._setSelected(false);

What it seems to me, is that it is trying to deselect an item from the outer RadListBox, which does not exist.

Short of me adding a null check to your javascript library, can you suggest a way to resolve this problem?

NOTE: I am using Q1 2010 release.

Thanks,

Ben.

My code is:

 

 

<telerik:RadListBox ID="lbSelectedTeamStaff"

 

 

Width="300px"

 

 

runat="server"

 

 

AllowDelete="True"

 

 

AllowReorder="True"

 

 

AutoPostBackOnReorder="True">

 

 

 

 

 

<ButtonSettings ReorderButtons="Common" />

 

 

 

 

 

<ItemTemplate>

 

 

 

 

 

<div class="ComboTemplate">

 

 

 

 

 

<strong>

 

 

 

 

 

<asp:Label ID="lblSelectedTeamName" runat="server"></asp:Label>

 

 

 

 

 

</strong>

 

 

 

 

 

<br />

 

 

 

 

 

<div id="rosterSelectedStaff" class="ComboDetails">

 

 

 

 

 

<telerik:RadListBox ID="lbSelectedStaff" runat="server" AllowDelete="True"

 

 

AllowReorder="True" BorderStyle="None" BorderWidth="0px"

 

 

EnableDragAndDrop="true" >

 

 

 

 

 

<ButtonSettings ReorderButtons="Common" ShowDelete="true" ShowReorder="False" />

 

 

 

 

 

 

</telerik:RadListBox>

 

 

 

 

 

</div>

 

 

 

 

 

</div>

 

 

 

 

 

</ItemTemplate>

 

 

 

 

 

</telerik:RadListBox>

 

Yana
Telerik team
 answered on 25 Mar 2010
2 answers
255 views
Hello,
In the codebehind we disabled the ComboBox and set a selected item. Via JavaScript we want to change the selected item via:
function winDialogCallbackControleren(radWindow, returnValue) {  
  if (returnValue != "-1") {  
    var combobox = $find("<%=rcbDocumentStatus.ClientID %>");  
    var item = combobox.findItemByValue(returnValue);  
    if (item) {  
      item.select();  
    }  
  }  
But it didn't succeed. The already selected item (from the codebehind) remains unchanged. What are we doing wrong?
With friendly greetings,
Pieter
From The Netherlands
Pieter
Top achievements
Rank 1
 answered on 25 Mar 2010
1 answer
117 views
I have a splitter pane which contains a loading pane and ajaxified asp.net panel. The panel contains some length content. I want the loading panel to cover the asp.net panel when an ajax update occurs. This works, but the loading panel appears to display outside of the splitter pane. (it extends below the bottom edge of the splitter pane) My markup is as follows:

<telerik:RadSplitter ID="rsReport"   
                                                                runat="server"   
                                                                Width="100%" 
                                                                Height="100%" 
                                                                Orientation="Horizontal"   
                                                                ResizeWithParentPane="False"   
                                                                ResizeWithBrowserWindow="True" 
                                                                BorderSize="0" 
                                                                VisibleDuringInit="False" 
                                                                Skin="Windows7"   
                                                                HeightOffset="8" 
                                                                 >   
                                                                     
                                                <telerik:radpane runat="server" id="rtbPane" Scrolling="None" Width="100%" Height="32" Locked="True">  
                                                    toolbar which initiates ajax updates of pnlReport                                                </telerik:radpane> 
                                                <telerik:radpane runat="server" id="rcPane" Scrolling="both" Width="100%" Height="100%"   
                                                    <telerik:RadAjaxLoadingPanel id="lpReport" Runat="server" Transparency="8" BackColor="#DFE9F5"><asp:Image id="Image340" runat="server" AlternateText="Loading..." BorderWidth="0px" ImageUrl="~/global/images/loading2.gif" style="margin-top:200px;"></asp:Image></telerik:RadAjaxLoadingPanel> 
                                                    <asp:Panel id="pnlReport" runat="Server" style="padding:4px;">  
                                                        my lengthy content                                                    </asp:Panel> 
                                                </telerik:radpane> 
                                            </telerik:RadSplitter>  

Anyone know how to keep the loading panel contained within the splitter pane?
Dimo
Telerik team
 answered on 25 Mar 2010
1 answer
125 views
Hi. I'm using the AutoGenerateHierarchy to create some nested tables. I've basically copied the example in the demos section and everything is working great. I'm wanting to hide and format some columns but don't know the names of the nested grids because they are automatically generated. How do I hide or format a specific column in a specific nested grid? Thanks.

Daniel
Shinu
Top achievements
Rank 2
 answered on 25 Mar 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?