Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
91 views
From production logs of our application we see that editor.get_html() method call intermittently fails and returns a value of undefined. This failure highly correlates with FF 3.5.9 and above browsers. Any ideas, on this issue?
Rumen
Telerik team
 answered on 15 Apr 2010
3 answers
288 views
Hi All,

I've got to say the Telerik controls are awsome, and the community is even better. I have converted my entire project from a competitor to Telerik over the past 6 weeks and have gotted all the info I need from the forums and documentation.

Well up until now, but I dont think this is a hard one....

I'm enabling my users to select their own skins. this is all great for the Rad controls and Decorated form elements.

However I'm missing the boat on how to apply the same styles to some simple elements like an html link. When using the black theme links show up in the standard blue which is hard to see.

I know I can apply a style for the links using regular CSS but that wont work so well when I have a black vs white background.

The second item I want to know is if I can reuse some of the background images that are present in the headers of elements like the grid and splitter for things like a table row background that would be reflected when the skin is changed (So I can't apply a specific styl e name like Telerik_Web20_class).

Thanks in advance for any replies!



Georgi Tunev
Telerik team
 answered on 15 Apr 2010
9 answers
263 views
The 'group by' behaviour appears to behave diferrently if defined declaratively as apposed to dragging and dropping the columns into the GridGroupPanel.

When the page first loads and I define declaritively the 'Group By' rows look like the following:

+ HomeTerminal: Buffalo; JobNumber: 222222
[row data]
[row data]
[row data]
+ HomeTerminal: Buffalo; JobNumber: 555555
[row data]
[row data]

Then I drag the items from the GridGroupPanel to clear the grouping.  Then I drag the 'Home Terminal' column to group by that column.  Then I drage the 'Job Number' column to group by that column.  The results are then:

+ Home Terminal: Buffalo
+ Job Number: 222222
[row data]
[row data]
[row data]
+ Job Number: 555555
[row data]
[row data]

Does anybody know how to get the grid to look like the second example when the page first loads?  Thank you very much for your help.


Yavor
Telerik team
 answered on 15 Apr 2010
1 answer
173 views
I tried this example and what  I was not sure was whether if the data changed if the rotator was suppose to update the feed.

I have a scrolling feed that has a bunch of alerts.  If the alerts change, ie one of them gets deleted, added or update, the feed will change.  I doesnt look like this example does this. 

I tried using a timer and ajax to update the alerts, but is not smooth when it updates the alerts.  any ideas
Pero
Telerik team
 answered on 15 Apr 2010
2 answers
136 views
Hi,

I had this code to add some custom page size on RadGrid:

  protected void RadGridInvoiceList_ItemDataBound(object sender, GridItemEventArgs e)
    {
        if (e.Item is GridPagerItem)
        {
            RadComboBox PageSizeCombo = (RadComboBox)e.Item.FindControl("PageSizeComboBox");
            PageSizeCombo.Items.Clear();

            PageSizeCombo.Items.Add(new RadComboBoxItem("10", "10"));
            PageSizeCombo.Items.Add(new RadComboBoxItem("20", "20"));
            PageSizeCombo.Items.Add(new RadComboBoxItem("50", "50"));
            PageSizeCombo.Items.Add(new RadComboBoxItem("100", "100"));
            PageSizeCombo.Items.Add(new RadComboBoxItem("200", "200"));
            PageSizeCombo.Items.Add(new RadComboBoxItem("300", "300"));
            PageSizeCombo.Items.Add(new RadComboBoxItem("400", "400"));
            PageSizeCombo.Items.Add(new RadComboBoxItem("500", "500"));
            PageSizeCombo.Items.Add(new RadComboBoxItem("1000", "1000"));

            PageSizeCombo.Items.FindItemByValue(e.Item.OwnerTableView.PageSize.ToString()).Selected = true;

            PageSizeCombo.DropDownWidth = Unit.Pixel(60);
            PageSizeCombo.AutoPostBack = true;
        }
}

.....

protected void RadGridInvoiceList_Load(object sender, EventArgs e)
    {
        GridItem[] pagers = this.RadGridInvoiceList.MasterTableView.GetItems(GridItemType.Pager);

        foreach (GridItem pager in pagers)
        {
            RadComboBox comboBox = (RadComboBox)pager.FindControl("PageSizeComboBox");

            comboBox.SelectedIndexChanged += delegate(object _source, RadComboBoxSelectedIndexChangedEventArgs _e)
            {
                RadGridInvoiceList.MasterTableView.PageSize = Convert.ToInt32(_e.Value);
                RadGridInvoiceList.Rebind();
            };
        }
    }

For some reason after upgrading to 2010. Q1 stop working. I've also try the latest Build Release but the behaviour is the same. Dows the ajax refresh but the pagesize remains the same.

Thanks
Eduardo Barbosa


Pavlina
Telerik team
 answered on 15 Apr 2010
4 answers
199 views
Any suggestion on how I would access all the rows in the radgrid, not just the rows on page #1? I tried:

RadGrid1.MasterTableView.Items.Count

This gives me 10 rows because that is how many are listed per page but I need to get at the datatable source. The user has a search form that generates the grid. After the grid I have a button to save the search results to another table. When they click the button though I can't access the datatable because it is generated in the RadGrid1_NeedDataSource method.

If I can't write the contents of the datatable to my sql table then I am just going to write it when the search happens regardless of whether the user wants to save it or not and then when they click save I'll set a flag on the table. Hope this makes some sense, any suggestions appreciated...



Radoslav
Telerik team
 answered on 15 Apr 2010
6 answers
1.5K+ views
I'm testing out Telerik in a vs2010/mvc2 application. I've created an mvc2 application from a blank template, then added telerik by using telerik_convert to...

I'm currently trying to add a RadEditor to one of my views. I've changed 2 lines in the root web.config file, but nothing in the views\web.config file.
Under httphandlers (aspx to axd):
            <add path="Telerik.Web.UI.DialogHandler.axd" type="Telerik.Web.UI.DialogHandler" verb="*" validate="false" />
Under handlers (aspx to axd):
            <add name="Telerik_Web_UI_DialogHandler_axd" path="Telerik.Web.UI.DialogHandler.axd" type="Telerik.Web.UI.DialogHandler" verb="*" preCondition="integratedMode,runtimeVersionv2.0" />

My routing should be ok:
       public static void RegisterRoutes(RouteCollection routes)  
        {  
            routes.IgnoreRoute("{resource}.axd/{*pathInfo}");  
  
            routes.MapRoute(  
                "Default",                                              // Route name  
                "{controller}/{action}/{id}",                           // URL with parameters  
                new { controller = "Default", action = "Index", id = "" }  // Parameter defaults  
            );  
        }  


The code from the view:
            <div class="editor-label"> 
                <%= Html.LabelFor(model => model.Content) %> 
            </div> 
            <div class="editor-field"> 
                <form> 
                <% 
                  RadEditor1.Content = Model.Content; 
                %> 
                <telerik:RadScriptManager ID="RadScriptManager1" runat="server"/> 
                 <telerik:RadEditor runat="server" ID="RadEditor1" DialogHandlerUrl="~/Telerik.Web.UI.DialogHandler.axd"/> 
                <%= Html.ValidationMessageFor(model => model.Content) %> 
                </form> 
            </div> 


The editor shows, but firebug reports:  "Telerik is not defined" and nothing works within the editor.

edit: I have the entire project + db zip'ed upp if needed.
Hans Petter Evju
Top achievements
Rank 1
 answered on 15 Apr 2010
1 answer
593 views
Hi,

I am trying to include a jQuery UI library and am having trouble, I'm guessing, with the load sequence of the scripts.

    <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> 
 
    <script type="text/javascript"> 
    window.$ = $telerik.$; 
    </script> 
 

the above is from my master page, this allows me to use basic jQuery scripts on my page, and is working fine.

However, when I try to add the following scripts to my page, I am getting javascript errors when the page loads.

    <script type="text/javascript" src="/scripts/JQueryUI/jquery.ui.core.js"></script> 
    <script type="text/javascript" src="/scripts/JQueryUI/jquery.ui.widget.js"></script> 
    <script type="text/javascript" src="/scripts/JQueryUI/jquery.ui.tabs.js"></script> 
 

The exact errors depend on how/where I add the scripts to the page, but are basically combinations of either 'Jquery is undefined' or '$ is undefined'.

I have tried adding the scripts to the master page's head, the custom control's RadCodeBlock, I have also tried adding them to the RadScriptManager's script block and straight onto the master page's body after the 'window.$ = $telerik.$;' script. Finally I have also tried adding it to the script manager register startup script in c# on the page load for the master page.

How/when should I add these scripts to the page to make them work?

The only solution I can currently think of is to (re)include the JQuery library to the master page's head tag and to completely give up on using the Telerik built in library. This is a last option as I presume this would require clients downloading the main library twice.

Cesare






Simon
Telerik team
 answered on 15 Apr 2010
1 answer
136 views
Sorry for the title but I hope I got your attention, and yes you have cheated :-)

With respect to this article - http://demos.telerik.com/aspnet-ajax/tabstrip/examples/applicationscenarios/loadondemand/defaultcs.aspx

I'm trying to do a similar thing, except my tabs have spaces in the names. Hence when I click on a tba the page errors in this code block because its passing back the tab name as previously set up, and its look for a page with the tab name ie with a space.

        Protected Sub RadMultiPage1_PageViewCreated(ByVal sender As Object, ByVal e As RadMultiPageEventArgs) Handles RadMultiPage1.PageViewCreated  
            Dim userControlName As String = e.PageView.ID & "VB.ascx"   PAGE ERRORS HERE
            Dim userControl As Control = Page.LoadControl(userControlName)  
            userControl.ID = e.PageView.ID & "_userControl"  
            e.PageView.Controls.Add(userControl)  
        End Sub 

I have tried setting the ID property but it looks like it Read Only. You have only got this code to work by using Single words for the tab names (hence the cheat) .

How can I achieve this.

Andy

Yana
Telerik team
 answered on 15 Apr 2010
5 answers
324 views

Dear all,

i am currently using Telerik control for my financial site.

During development of this site i am facing following problem:

  1. in the Rad Grid control i am using Rad Context menu.Now i want to know how can i open a RAD popup window,aginst a click on a particular item of context menu
  2. As well i want to track its ID against which a popup has been opened.

Thanks.
Denny.

Radoslav
Telerik team
 answered on 15 Apr 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?