Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
164 views
telerik radwindow closes when postback happens in parent page
Shinu
Top achievements
Rank 2
 answered on 25 Mar 2010
2 answers
146 views
Hello,

How can i bind Rad Grid on asp:text box Key Changed or Key Press event?.

My Requirement is much like any site search box when user press any key the results will be populated in a pop up like window below to the text box.

I am attaching a sample requirement Screen Shot.

Any help appreciated thanks in advance.

Regards
Naga Sridhar Madiraju
Naga Sridhar madiraju
Top achievements
Rank 1
 answered on 25 Mar 2010
1 answer
293 views
Hi Telerik Team,

In our Web Application, We are using rad panel for Left side menu.
in this we are not able to get the actual design, what our designer shared with us.
we are getting some problem while applying CSS to the rad panel.



Regards,
Surya Murthy..
Kamen Bundev
Telerik team
 answered on 25 Mar 2010
3 answers
212 views
Hi
I have a scenario where the selection made in combo1 must update the combo2 and combo3. The multiple combo example provided in this website was useful to some extent. But I am not able to come up with the Javascript part that takes care of updating the combo2 and combo3 when combo1 is selected.

I tried to make use of this piece of code from another thread but it is not helping me. This piece of code was used for dynamically created Radcomboboxes.
<script> 
function goLoadCountries(combo, eventArqs)     
{     
    var item = eventArqs.get_item();     
    var prompt;     
    
    combo.tempVal = item.get_value();     
    
    
    for (i = 0; i < Telerik.Web.UI.RadComboBox.ComboBoxes.length; i++) {     
        prompt = Telerik.Web.UI.RadComboBox.ComboBoxes[i];     
    
        if (prompt.get_attributes().getAttribute("parent") == combo.get_id()) {     
            prompt.set_text("Loading...");     
            prompt.requestItems(item.get_value(), false);     
    
        }     
    }     
}     
    
    
function ItemsLoaded(combo, eventArgs) {     
    if (combo.get_items().get_count() > 0)     
    {     
        combo.get_inputDomElement().className = "rcbInput";     
        var item = combo.get_items().getItem(0);     
        item.select();     
    }     
}     
    
    
function buildForm(sender, eventArgs){     
    var context = eventArgs.get_context();     
    for (i=0; i<Telerik.Web.UI.RadComboBox.ComboBoxes.length; i++){     
        context[Telerik.Web.UI.RadComboBox.ComboBoxes[i].get_id()] = Telerik.Web.UI.RadComboBox.ComboBoxes[i].tempVal;     
    }     
}     
        </script>    
   
When I use the above code I am getting a Javascript error saying 'buildform' is undefined.

Here is the HtML part:
<td>Location:</td> 
                     <td><telerik:RadComboBox ID="cbLocation" runat="server" Skin="Black" SelectedValue='<%# DataBinder.Eval( Container, "DataItem.locationName") %>' 
                        EmptyMessage=" Select Location" HighlightTemplatedItems="True" DataTextField="name" EnableLoadOnDemand="true"   
                        DataValueField="locationId" EnableTextSelection="False" DataSourceID="SqlDataSource_Loc" 
                        AppendDataBoundItems="True" OnClientSelectedIndexChanging="loadCombos" OnClientItemsRequesting="buildForm" 
                          > 
                        <Items> 
                            <telerik:RadComboBoxItem Text="" Value="" Selected="True" /> 
                        </Items> 
                        </telerik:RadComboBox> 
                          
                        </td> 
                </tr> 
                <tr> 
                    <td>Aircraft:</td> 
                <td> 
                        <telerik:RadComboBox ID="cbAircraft" runat="server" Skin="Black" SelectedValue='<%# DataBinder.Eval( Container, "DataItem.Aircraft") %>' 
                        EmptyMessage=" Select Aircraft" HighlightTemplatedItems="True" OnClientItemsRequested="ItemsLoaded" 
                        OnItemsRequested="radAircraft_ItemsRequested" OnClientItemsRequesting="buildForm" EnableLoadOnDemand="false" 
                        AppendDataBoundItems="true">  
                        <Items> 
                            <telerik:RadComboBoxItem Text="" Value="" /> 
                        </Items> 
                        </telerik:RadComboBox> 
                     

Pls help me to come up with the code.

Thanks
Simon
Telerik team
 answered on 25 Mar 2010
1 answer
176 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
347 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
146 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
122 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
140 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
123 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?