Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
143 views
Dear Telerik,

Congratulations with your new release.  Just switched from the old-non-prometheus controls to the new release.  And boy was I in for a performance treat on the RadGrid - absolutely stunning!  Thanks!

I also noticed you have done some work on the installation part, it seems as it installs faster - nice touch. 

Ok, but tell me what happened to the RadRotator - how come you've managed to put all the "old" controls in the release and not the rotator, is it no longer part of the suite?

Overall ... again and again ... in every new release I'm surprised by the new quality and stability, keep up the good work.
Sebastian
Telerik team
 answered on 21 Apr 2008
1 answer
91 views
I was hoping that the editor in 2008.1 would finally be fixed, especially since some things are pretty simple.  I shouldn't have to modify my CSS in order to get the "expected behavior" from the controls.  The editor is definitely the most difficult to work with in this regard.

These controls shouldn't be making any assumptions about the state of CSS that is cascading down to them and override everything that might affect the appearance.

1. If you have CSS that does any manipulation of UL and LI attributes, you might find that your toolbar items have additional spaces between the items.  The fix is simple (below).

ul.rade_toolbar li
{
    margin: 0;
    padding: 0;
}

2. A second issue occurs when you have a table nested in the editor. Although the rest of the text in the editor inherits the font and size from the surrounding page, as soon as that text is placed inside a table, it gets larger.  Again, a CSS fix has been provided, but there must be some other workaround (in a subsequent update) that wouldn't require me to do this:

table td
{
   font-size: 11px !important;
   font-family: Arial !important;
}

Don't get me wrong.  I love these controls, but these minor things really get under my skin sometimes! :-)
Martin
Telerik team
 answered on 21 Apr 2008
1 answer
94 views
Hi,

I need to do filtering function in radgrid by calling the databind() function.

May i know is it possible to do that? If ya, how? I cannot use

AdvancedDataBinding (needDataSource) to do filtering, as my radgrid

got relate with another data in a user control.

Please help!

Thanks.

Regards,
Soo
Yavor
Telerik team
 answered on 21 Apr 2008
1 answer
207 views
A couple of RadDock questions....

Is there a way to disable the scrollbars in the Docking Zone?

Is there an easy way that you can programatically (in vb) change the size of a floating RadDock after post back?

Does a RadDock stay in the current browser window, or if you have multiple monitors, can you click and drag the RadDock to the other screen....(I'm asking because I don't have dual-monitors.)

Thanks in advance.

Matt

Petio Petkov
Telerik team
 answered on 21 Apr 2008
1 answer
172 views
Hi,

I cant work out how to make dynamically created menu's postback?

<snippet of code that demonstates the problem>

 protected void Page_Load(object sender, EventArgs e)
    {
        LoadEditMenu();
    }


    protected void LoadEditMenu()
    {
        try
        {

            RadMenu radmenu = (RadMenu)this.FindControl("RadMenu2");

            RadMenuItem mnuItem = new RadMenuItem();
            mnuItem.Text = " Open Me";
            mnuItem.CssClass = "White";
            radmenu.Items.Add(mnuItem);

            RadMenuItem mnuSubItem = new RadMenuItem();
            mnuSubItem.Text = "Settings";
            mnuSubItem.CssClass = "White";
            mnuItem.Items.Add(mnuSubItem);

            mnuSubItem = new RadMenuItem();
            mnuSubItem.Text = "Delete";
            mnuSubItem.CssClass = "White";
            mnuItem.Items.Add(mnuSubItem);

            mnuSubItem = new RadMenuItem();
            mnuSubItem.Text = "Print";
            mnuSubItem.CssClass = "White";
            mnuItem.Items.Add(mnuSubItem);



            radmenu.ItemClick += new RadMenuEventHandler(this.RadMenu_ItemClick);

             //In the real web app, controls get loaded at runtime
            //ctrl.Controls.Add(radmenu);

        }
        catch
        { }

    }

    protected void RadMenu_ItemClick(object sender, RadMenuEventArgs e)
    {

        RadMenuItem ItemClicked = e.Item;
      
        Response.Redirect(ItemClicked.Text.ToString() + ".aspx");
    }

</snippet>

My RadMenu_ItemClick method never gets invoked!

 In the article (http://www.telerik.com/DEMOS/ASPNET/Menu/Examples/Programming/ServerEvents/DefaultCS.aspx) you assign the delegate in InititalizeComponent,eg:

 private void InitializeComponent()
        {
            this.Menu1.ItemClick += new RadMenuEventHandler(this.Menu1_ItemClick);




How can I do this for dynamically created menus that sit inside dynamically created user controls??

I've read the doco's and its something I I feel should be documented here: http://www.telerik.com/demos/aspnet/Menu/Examples/Programming/DynamicCreation/DefaultCS.aspx


Kind regards,

Jeremy

www.JeremyThompson.net
Meaning Of Lights
Top achievements
Rank 2
 answered on 21 Apr 2008
1 answer
69 views
When attempting to group my GRID it always yeilds a single result. If I set the sort order to ascendning it gives me only the 1st result, descending gives me the last...Here is my code. 

<

form id="form1" runat="server">

<div>

<telerik:RadScriptManager ID="RadScriptManager1" Runat="server">

</telerik:RadScriptManager>

<br />

<asp:TextBox ID="TextBox1" runat="server">MMK</asp:TextBox>

<telerik:RadGrid ID="RadGrid1" runat="server" AllowCustomPaging="True"

AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False"

DataSourceID="SqlDataSource1" GridLines="None" PageSize="20" Skin="WebBlue">

<PagerStyle Mode="Slider" />

<

MasterTableView datakeynames="WBS1,WBS2,WBS3" datasourceid="SqlDataSource1">

<

RowIndicatorColumn Visible="False">

<

HeaderStyle Width="20px"></HeaderStyle>

</

RowIndicatorColumn>

<

ExpandCollapseColumn Visible="False" Resizable="False">

<

HeaderStyle Width="20px"></HeaderStyle>

</

ExpandCollapseColumn>

<

GroupByExpressions>

<telerik:GridGroupByExpression>

<SelectFields>

<telerik:GridGroupByField

FieldName="Fee"

HeaderText="Fee"

Aggregate="Sum" />

</SelectFields>

<GroupByFields>

<telerik:GridGroupByField

FieldName="Project"

SortOrder="Ascending" />

</GroupByFields>

</telerik:GridGroupByExpression>

</GroupByExpressions>

<Columns>

<telerik:GridBoundColumn DataField="Project" HeaderText="Project"

ReadOnly="True" SortExpression="Project" UniqueName="Project">

</telerik:GridBoundColumn>

<telerik:GridBoundColumn DataField="WBS1" HeaderText="WBS1" ReadOnly="True"

SortExpression="WBS1" UniqueName="WBS1">

</telerik:GridBoundColumn>

<telerik:GridBoundColumn DataField="WBS2" HeaderText="WBS2" ReadOnly="True"

SortExpression="WBS2" UniqueName="WBS2">

</telerik:GridBoundColumn>

<telerik:GridBoundColumn DataField="WBS3" HeaderText="WBS3" ReadOnly="True"

SortExpression="WBS3" UniqueName="WBS3">

</telerik:GridBoundColumn>

<telerik:GridBoundColumn DataField="Status" HeaderText="Status"

SortExpression="Status" UniqueName="Status">

</telerik:GridBoundColumn>

<telerik:GridBoundColumn DataField="Name" HeaderText="Name"

SortExpression="Name" UniqueName="Name">

</telerik:GridBoundColumn>

<telerik:GridBoundColumn DataField="LongName" HeaderText="LongName"

SortExpression="LongName" UniqueName="LongName">

</telerik:GridBoundColumn>

<telerik:GridBoundColumn DataField="Fee" DataType="System.Decimal"

HeaderText="Fee" SortExpression="Fee" UniqueName="Fee">

</telerik:GridBoundColumn>

<telerik:GridBoundColumn DataField="PostedLabor" DataType="System.Decimal"

HeaderText="PostedLabor" SortExpression="PostedLabor" UniqueName="PostedLabor">

</telerik:GridBoundColumn>

<telerik:GridBoundColumn DataField="AddServices" DataType="System.Decimal"

HeaderText="AddServices" SortExpression="AddServices" UniqueName="AddServices">

</telerik:GridBoundColumn>

<telerik:GridBoundColumn DataField="Period" DataType="System.Int32"

HeaderText="Period" SortExpression="Period" UniqueName="Period">

</telerik:GridBoundColumn>

<telerik:GridBoundColumn DataField="PM" HeaderText="PM" SortExpression="PM"

UniqueName="PM">

</telerik:GridBoundColumn>

<telerik:GridBoundColumn DataField="BackLog" DataType="System.Decimal"

HeaderText="BackLog" ReadOnly="True" SortExpression="BackLog"

UniqueName="BackLog">

</telerik:GridBoundColumn>

</Columns>

 

<

EditFormSettings>

<

PopUpSettings ScrollBars="None"></PopUpSettings>

</

EditFormSettings>

 

</

MasterTableView>

</telerik:RadGrid>

<br />

</div>

<asp:SqlDataSource ID="SqlDataSource1" runat="server"

ConnectionString="<%$ ConnectionStrings:csVisionTest %>"

SelectCommand="sp_PIC_getBackLog" SelectCommandType="StoredProcedure">

<SelectParameters>

<asp:ControlParameter ControlID="TextBox1" Name="PM" PropertyName="Text"

Type="String" />

</SelectParameters>

</asp:SqlDataSource>

<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" Runat="server"

height="75px" Transparency="5" width="75px"><img alt="Loading..." src="../Images/loading.gif" style="border:0px;" /> </telerik:RadAjaxLoadingPanel>

<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">

<AjaxSettings>

<telerik:AjaxSetting AjaxControlID="RadGrid1">

<UpdatedControls>

<telerik:AjaxUpdatedControl ControlID="RadGrid1"

LoadingPanelID="RadAjaxLoadingPanel1" />

</UpdatedControls>

</telerik:AjaxSetting>

</AjaxSettings>

</telerik:RadAjaxManager>

</form>

G
Top achievements
Rank 1
 answered on 20 Apr 2008
0 answers
87 views
When attempting to group my GRID it always yeilds a single result. If I set the sort order to ascendning it gives me only the 1st result, descending gives me the last...Here is my code. 

<

form id="form1" runat="server">

<div>

<telerik:RadScriptManager ID="RadScriptManager1" Runat="server">

</telerik:RadScriptManager>

<br />

<asp:TextBox ID="TextBox1" runat="server">MMK</asp:TextBox>

<telerik:RadGrid ID="RadGrid1" runat="server" AllowCustomPaging="True"

AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False"

DataSourceID="SqlDataSource1" GridLines="None" PageSize="20" Skin="WebBlue">

<PagerStyle Mode="Slider" />

<

MasterTableView datakeynames="WBS1,WBS2,WBS3" datasourceid="SqlDataSource1">

<

RowIndicatorColumn Visible="False">

<

HeaderStyle Width="20px"></HeaderStyle>

</

RowIndicatorColumn>

<

ExpandCollapseColumn Visible="False" Resizable="False">

<

HeaderStyle Width="20px"></HeaderStyle>

</

ExpandCollapseColumn>

<

GroupByExpressions>

<telerik:GridGroupByExpression>

<SelectFields>

<telerik:GridGroupByField

FieldName="Fee"

HeaderText="Fee"

Aggregate="Sum" />

</SelectFields>

<GroupByFields>

<telerik:GridGroupByField

FieldName="Project"

SortOrder="Ascending" />

</GroupByFields>

</telerik:GridGroupByExpression>

</GroupByExpressions>

<Columns>

<telerik:GridBoundColumn DataField="Project" HeaderText="Project"

ReadOnly="True" SortExpression="Project" UniqueName="Project">

</telerik:GridBoundColumn>

<telerik:GridBoundColumn DataField="WBS1" HeaderText="WBS1" ReadOnly="True"

SortExpression="WBS1" UniqueName="WBS1">

</telerik:GridBoundColumn>

<telerik:GridBoundColumn DataField="WBS2" HeaderText="WBS2" ReadOnly="True"

SortExpression="WBS2" UniqueName="WBS2">

</telerik:GridBoundColumn>

<telerik:GridBoundColumn DataField="WBS3" HeaderText="WBS3" ReadOnly="True"

SortExpression="WBS3" UniqueName="WBS3">

</telerik:GridBoundColumn>

<telerik:GridBoundColumn DataField="Status" HeaderText="Status"

SortExpression="Status" UniqueName="Status">

</telerik:GridBoundColumn>

<telerik:GridBoundColumn DataField="Name" HeaderText="Name"

SortExpression="Name" UniqueName="Name">

</telerik:GridBoundColumn>

<telerik:GridBoundColumn DataField="LongName" HeaderText="LongName"

SortExpression="LongName" UniqueName="LongName">

</telerik:GridBoundColumn>

<telerik:GridBoundColumn DataField="Fee" DataType="System.Decimal"

HeaderText="Fee" SortExpression="Fee" UniqueName="Fee">

</telerik:GridBoundColumn>

<telerik:GridBoundColumn DataField="PostedLabor" DataType="System.Decimal"

HeaderText="PostedLabor" SortExpression="PostedLabor" UniqueName="PostedLabor">

</telerik:GridBoundColumn>

<telerik:GridBoundColumn DataField="AddServices" DataType="System.Decimal"

HeaderText="AddServices" SortExpression="AddServices" UniqueName="AddServices">

</telerik:GridBoundColumn>

<telerik:GridBoundColumn DataField="Period" DataType="System.Int32"

HeaderText="Period" SortExpression="Period" UniqueName="Period">

</telerik:GridBoundColumn>

<telerik:GridBoundColumn DataField="PM" HeaderText="PM" SortExpression="PM"

UniqueName="PM">

</telerik:GridBoundColumn>

<telerik:GridBoundColumn DataField="BackLog" DataType="System.Decimal"

HeaderText="BackLog" ReadOnly="True" SortExpression="BackLog"

UniqueName="BackLog">

</telerik:GridBoundColumn>

</Columns>

 

<

EditFormSettings>

<

PopUpSettings ScrollBars="None"></PopUpSettings>

</

EditFormSettings>

 

</

MasterTableView>

</telerik:RadGrid>

<br />

</div>

<asp:SqlDataSource ID="SqlDataSource1" runat="server"

ConnectionString="<%$ ConnectionStrings:csVisionTest %>"

SelectCommand="sp_PIC_getBackLog" SelectCommandType="StoredProcedure">

<SelectParameters>

<asp:ControlParameter ControlID="TextBox1" Name="PM" PropertyName="Text"

Type="String" />

</SelectParameters>

</asp:SqlDataSource>

<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" Runat="server"

height="75px" Transparency="5" width="75px"><img alt="Loading..." src="../Images/loading.gif" style="border:0px;" /> </telerik:RadAjaxLoadingPanel>

<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">

<AjaxSettings>

<telerik:AjaxSetting AjaxControlID="RadGrid1">

<UpdatedControls>

<telerik:AjaxUpdatedControl ControlID="RadGrid1"

LoadingPanelID="RadAjaxLoadingPanel1" />

</UpdatedControls>

</telerik:AjaxSetting>

</AjaxSettings>

</telerik:RadAjaxManager>

</form>

G
Top achievements
Rank 1
 asked on 20 Apr 2008
1 answer
81 views
Hello,

In Sharepoint, all Quick Launch entries must have an associated URL.  I use a false URL for items that are top-level categories.  Sometimes the top-level is a proper URL.  Thus, I want to test on any selected URL to see if it contains my false URL before allowing the event to proceed.  Unfortunately, I cannot figure out how to get the selected URL as text.  The LinkElement displays as the URL, but testing on it does not work.  Here's a sample of what I am trying to do:

<script type="text/javascript">
   function OnClientItemClickingHandler(sender, eventArgs)
   {
       if(eventArgs.Item.Expanded == true)
       {
         eventArgs.Item.Collapse();
       }
       else
       {
         eventArgs.Item.Expand();
       }
       if(eventArgs.Item.LinkElement.indexOf("go_nowhere")>-1)
      {
       return false;
       }
   }
</script>

My Panelbar has an OnClientItemClicking event that calls this function.

Any help would be appreciated.

Thank you,

Doug
Doug
Top achievements
Rank 1
 answered on 20 Apr 2008
2 answers
177 views
I have a RadMenu (Prometheus) in a Master Page, and for some reason it will overlay all controls except the RadTabStrip (For Asp.Net) I have in some pages. I have been trying to work this out for a few days off-and-on, and would really appreciate any help I can get. 
Corey Alguire
Top achievements
Rank 1
 answered on 19 Apr 2008
1 answer
665 views
I am evaluating your ASP.NET AJAX Q1 2008 product.  We are hoping to replace our Infragistics controls with controls that are "supported".  Needless to say that I am disappointed in the Telerik product.  The very first thing I try to do results in a script error and server error.  Is this indictive of your product quality?  Further feedback: You installer splash screen looks beautiful but is terrible in practice.  It covers the entire screen (including the Windows Start menu) effectively rendering the computer useless while it expands the files.  Then it creates a full-screen install window that can't be minimized.  Now I know that some graphic designer will be hurt that I don't want to look at his/her art but I really need to use my computer for something else for the 15-20 minutes it takes to get the controls installed.

Because Infragistics is SOOO bad (I have used Infragistics for years now) I am willing to give somebody a real chance here.  I really want Telerik to work for our company.

OK the problem is a runtime error: Microsoft JScript runtime error: 'Telerik' is undefined.

I installed the controls on two computers running VS 2008 on Windows Vista machines SP1.  Both machines give exactly the same error.

I created a new project. I pulled some working code that simply creates a List<myListObject> from an existing SQL database.

In my new project I added the RadGrid by draging it onto the form.  I added the RadScriptManager from the RadGrid SmartTag and then I registered the RadScriptManager using its SmartTag.

In the codebehind I am binding my List to the RadGrid1.Datasource.

When I execute the project in VS 2008 debug mode I get the error shown in the title.

If I choose Continue the screen does show the data pulled from the database. However it does not let me drag columns to group and it gives a server error if I try to page through the data.

Here is the offending line:

$create(Telerik.Web.UI.RadGrid, {

"AllowMultiRowSelection":false,"ClientID":"RadGrid1","ClientSettings":{"PostBackFunction":"__doPostBack(\u0027{0}\u0027,\u0027{1}\u0027)","AllowDragToGroup":true,"AllowExpandCollapse":true,"AllowGroupExpandCollapse":true,"ColumnsReorderMethod":0,"ShouldCreateRows":true,"Selecting":{"EnableDragToSelectRows":true},"Scrolling":{"SaveScrollPosition":true,"ScrollHeight":"300px"},"Resizing":{"ClipCellContentOnResize":true},"ClientMessages":{"DragToGroupOrReorder":"Drag to group or reorder","DragToResize":"Drag to resize","DropHereToReorder":"Drop here to reorder","PagerTooltipFormatString":"Page: \u003cb\u003e{0}\u003c/b\u003e out of \u003cb\u003e{1}\u003c/b\u003e pages"}},"ShowGroupPanel":true,"Skin":"Default","UniqueID":"RadGrid1","_activeRowData":"","_clientKeyValues":{},"_currentPageIndex":0,"_gridTableViewsData":"[{\"ClientID\":\"RadGrid1_ctl00\",\"UniqueID\":\"RadGrid1$ctl00\",\"PageSize\":10,\"PageCount\":7,\"CurrentPageIndex\":0,\"Name\":\"\",\"IsItemInserted\":false,\"clientDataKeyNames\":[],\"_selectedItemStyle\":\"\",\"_selectedItemStyleClass\":\"SelectedRow_Default\",\"_renderActiveItemStyle\":\"\",\"_renderActiveItemStyleClass\":\"ActiveRow_Default\",\"_columnsData\":[{\"UniqueName\":\"PrimaryUnit\",\"Resizable\":true,\"Reorderable\":true,\"Groupable\":true,\"Display\":true},{\"UniqueName\":\"Name\",\"Resizable\":true,\"Reorderable\":true,\"Groupable\":true,\"Display\":true},{\"UniqueName\":\"Purpose\",\"Resizable\":true,\"Reorderable\":true,\"Groupable\":true,\"Display\":true},{\"UniqueName\":\"SubSystem\",\"Resizable\":true,\"Reorderable\":true,\"Groupable\":true,\"Display\":true},{\"UniqueName\":\"Alias\",\"Resizable\":true,\"Reorderable\":true,\"Groupable\":true,\"Display\":true},{\"UniqueName\":\"ExtrnUGrp\",\"Resizable\":true,\"Reorderable\":true,\"Groupable\":true,\"Display\":true},{\"UniqueName\":\"FedRpt\",\"Resizable\":true,\"Reorderable\":true,\"Groupable\":true,\"Display\":true},{\"UniqueName\":\"FailEffect\",\"Resizable\":true,\"Reorderable\":true,\"Groupable\":true,\"Display\":true},{\"UniqueName\":\"FY0708\",\"Resizable\":true,\"Reorderable\":true,\"Groupable\":true,\"Display\":true},{\"UniqueName\":\"Importance\",\"Resizable\":true,\"Reorderable\":true,\"Groupable\":true,\"Display\":true},{\"UniqueName\":\"UserBase\",\"Resizable\":true,\"Reorderable\":true,\"Groupable\":true,\"Display\":true},{\"UniqueName\":\"DevMethod\",\"Resizable\":true,\"Reorderable\":true,\"Groupable\":true,\"Display\":true},{\"UniqueName\":\"Status\",\"Resizable\":true,\"Reorderable\":true,\"Groupable\":true,\"Display\":true},{\"UniqueName\":\"FailResult\",\"Resizable\":true,\"Reorderable\":true,\"Groupable\":true,\"Display\":true},{\"UniqueName\":\"Releases\",\"Resizable\":true,\"Reorderable\":true,\"Groupable\":true,\"Display\":true},{\"UniqueName\":\"EndUsers\",\"Resizable\":true,\"Reorderable\":true,\"Groupable\":true,\"Display\":true}]}]","_groupPanelClientID":"RadGrid1_GroupPanel_TB","_groupPanelItems":"[]","_loadingText":"Loading...","_masterClientID":"RadGrid1_ctl00","_popUpIds":"[]","_readyText":"Ready","_statusLabelID":"","clientStateFieldID":"RadGrid1_ClientState"}, null, null, $get("RadGrid1"));

Larry
Top achievements
Rank 1
 answered on 19 Apr 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?