Telerik Forums
UI for ASP.NET AJAX Forum
6 answers
153 views
We upgraded our controls from the 2 year old Radgrid dll to using the telerik.web.ui and now we have lost the add new item from the top of the grids. Please let us know what has changed. I have tried several examples from your site and cant get it to show back up. Thanks.

<

 

telerik:RadGrid runat="Server" ID="InfoGrid" Skin="Office2007" AutoGenerateColumns="true" AllowAutomaticInserts="true" AllowAutomaticUpdates="true" AllowAutomaticDeletes="true">

 

 

 

<SelectedItemStyle CssClass="SelectedStyle" />

 

 

 

<MasterTableView CommandItemDisplay="TopAndBottom">

 

 

 

<CommandItemTemplate>

 

 

 

<asp:LinkButton runat="Server" ID="btnAdd2" Text="Add Incentive" CommandName="InitInsert" />

 

 

 

</CommandItemTemplate>

 

 

 

 

<Columns>

 

 

 

<telerik:GridBoundColumn UniqueName="IncentiveID" ReadOnly="true" Display="False" DataField="IncentiveID" ForceExtractValue="InEditMode" />

 

 

 

<telerik:GridBoundColumn HeaderText="Details" DataField="Incentive" UniqueName="Incentive" />

 

 

 

 

</Columns>

 

 

 

 

<NoRecordsTemplate>There Are Currently No Incentives</NoRecordsTemplate>

 

 

 

</MasterTableView>

 

 

 

</telerik:RadGrid>

 

 

Henry
Top achievements
Rank 1
 answered on 05 Nov 2009
2 answers
129 views
I am trying to do RadMenu by reading all content from XML file.  And adding some item elements to the menu on C# code like the one on the video tutorial.  the C# code is the following:

using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Xml;
using Telerik.Web.UI;

public partial class _Default : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
    }
    protected void RadMenu1_ItemDataBound(object sender, Telerik.Web.UI.RadMenuEventArgs e)
    { 
        XmlElement element = e.Item.DataItem as XmlElement;
        if (element.Attributes["ParentID"].Value == "Carriers")
        {
            e.Item.Width = Unit.Pixel(228);
            Telerik.Web.UI.RadMenuItem mItem = e.Item.Parent as RadMenuItem;
            XmlElement elements = e.Item.DataItem as XmlElement;
            
            Panel CarriersLink = CreateCarriersNavigation(elements.Attributes["LogoLocation"].Value,
                                                          elements.Attributes["NavigateUrl"].Value);
            
            e.Item.Controls.Add(CarriersLink);
        }
    }
    private Panel CreateCarriersNavigation(string LogoLocationSrc, string NavigateUrlSrc)
    {
        Panel CarriersNavigationPanel = new Panel();
        
        Image CarriersLogo = new Image();
        CarriersLogo.ImageUrl = LogoLocationSrc;
                
        HyperLink CarriersLogoLink = new HyperLink();
        CarriersLogoLink.ImageUrl = LogoLocationSrc;
        CarriersLogoLink.NavigateUrl = NavigateUrlSrc;
       
        CarriersNavigationPanel.Controls.Add(CarriersLogoLink);

        return CarriersNavigationPanel;
    }
}

Please refer to picture below:

http://img524.imageshack.us/img524/3631/26999155.png

My questions would be:

1)  How can I add the item (element) by 4 rows and 4 columns (total 16 items).  As you can see from the picture, the item is added below, so there is only 1 column and lots of row items.  I want to do 4 rows items, then start new column by adding others items.  So if I have 16 items, then it would be 4 rows and 4 columns

2)  Those logo are the link to external link.  It does work.  However when click on it, it will replace the current page.  How do I make it to open in the new tab or new window.   For example, <a href=http://www.newsite.com target='_blank'>new site</a> will open that page in the new page.  But I cannot do that since the code need to be in C# (the copy of code is above).

Thanks in advance
  
Urt
Top achievements
Rank 1
 answered on 05 Nov 2009
2 answers
72 views
Hi,
     Please let me know how I can get the count on the column using

GridClientSelectColumn

 

 when the user selects the checkbox on a row.( the grid is multirow grid i used)

Would be appreciable to know  the answer for this.

Thanks in advance,
SR

Subbarao
Top achievements
Rank 1
 answered on 05 Nov 2009
7 answers
255 views
Hello,

I'm trying out the Style Builder with a skin we created in May.  I've uploaded the zip with the path setup as illustrated, css file in the root with the images in a folder.  To test it out I started with a single grid css file named "Grid.Default.css" that we edited in May and the related images in a directory named "Grid".  In the colorize tab I get a message that says "Image not available. sorry"  In the Fine-tune tab I see the grid but its completely void of any images except the pencil and trash can icons. 

It looks like there is a problem with any images loaded through the CSS.  The pencil and trashcan images named "delete.gif" and "edit.gif" are not referenced in any of the CSS files therefore must be be called elsewhere.  I've checked the path in the CSS file and it's correct: "Grid\sprite.gif"

The skin was created with Q12009.  Any idea why the images aren't showing up?

Bob
Robert
Top achievements
Rank 1
 answered on 05 Nov 2009
1 answer
78 views
Hello!

I am getting very confused so I am hoping someone can point me in the right direction.
I want to be able to have complete control over the style of my website in my Theme, so when a theme is changed everything will change.

The Skin for all my telerik controls is Default at the moment, so I thinking I just need to change all the default css values and put the css files in my theme folder? I don't think I actually need to update the skin its self?
If I do this will it work? 
I have read about creating custom skins but I don't want custom skins as such, I just want to edit the css's.

I'm sorry if I'm completely missing the point here I'm just confused.

Bex

Svetlina Anati
Telerik team
 answered on 05 Nov 2009
3 answers
110 views
In a previous forum post here it was stated that "We are planning to release the final version with Q3 2009 suite in mid November."  Is this still correct?  The Style Builder does not seem any different and is still missing controls and the new skin.
Alex Gyoshev
Telerik team
 answered on 05 Nov 2009
1 answer
109 views
hi....
i m  using rad date time picker  dynamically for birthdate in a profile form ...during update the profile form if i don,t update birth date then it  automatic update the birth date as null while birth date must be previous saved value(it don,t be update).....
plz solve my problem....
i shall be vert thankfull to u.......
Dimo
Telerik team
 answered on 05 Nov 2009
1 answer
100 views
Hello

Can you help me?

I need to set a default value in a text box in Add new row

Thanks
Daniel
Telerik team
 answered on 05 Nov 2009
0 answers
218 views
The RadComboBox control in Q3 2009 has a brand new base stylesheet instead of skin file only. This could be a possible breaking change if you use custom skins. You have to set EnableEmbeddedBaseStylesheet to "false" in order to fix the issues introduced by this change.


In addition, we identified a problem in RTL mode (dir=rtl) of the combobox.
In order to work correctly in RTL mode you need to set the following two properties of RadComboBox:

<telerik:RadComboBox ID="c1" runat="server"
   CssClass="RadComboBox_rtl"
   DropDownCssClass="RadComboBoxDropDown_rtl">...</telerik:RadComboBox>
Telerik Admin
Top achievements
Rank 1
Iron
 asked on 05 Nov 2009
0 answers
194 views
Hi guys,

We introduced a small problem in the Q3 2009 (2009.3.1103) in the load on demand mechanism.

Who is affected:
All scenarios where:
EnableLoadOnDemand = True and
EnableVirtualScrolling
or ShowMoreResults properties are not set to True (it is False by default).

If there is a scrollbar on the dropdown and you scroll to the bottom of the items list - another request is send to the server and the items are loaded again thus multiplying the items.


Workaround:
There are several easy workarounds (choose one of them):

1. Set the _virtualScroll private member of the combobox to false. This can be done in the OnClientLoad event of the combobox:

function onClientLoadHandler(sender, e) { 
    sender._virtualScroll = false


2. Set the EndOfItems property to True.
  • In ItemsRequested event this property is a member of the RadComboBoxItemsRequestedEventArgs class:
     
protected void RadComboBox1_ItemsRequested(object sender, RadComboBoxItemsRequestedEventArgs e) 
    DataTable data = GetData(e.Text); 
     
    // ... 
 
    e.EndOfItems = true

  • In PageMethods mode this property is a member of the RadComboBoxData class:

[WebMethod] 
public static RadComboBoxData GetCompanyNames(RadComboBoxContext context) 
    DataTable data = GetData(context.Text);          
    RadComboBoxData comboData = new RadComboBoxData(); 
 
    // ... 
 
    comboData.Items = result.ToArray(); 
    comboData.EndOfItems = true
 
    return comboData; 

  • In WebService mode this property is a member of the RadComboBoxData class:
[WebMethod] 
public RadComboBoxData GetCompanyNames(RadComboBoxContext context) 
{    
    RadComboBoxData comboData = new RadComboBoxData(); 
 
    // ... 
 
    comboData.Items = result.ToArray(); 
    comboData.EndOfItems = true
 
    return comboData; 


What is next
The problem is already fixed and will be available in the next Latest Internal Build and the first service pack.

We apologize for the caused inconvenience.
Telerik Admin
Top achievements
Rank 1
Iron
 asked on 05 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?