Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
40 views
Browser: Internet Explorer 8
Visual Studio Builder: 7/18/2011

Hello all,

During the creation of styles for RadMenu control, the Visual Studio Builder didn't display correctly the information of menu items when we clicked on them.

Example: we created styles for item "Hovered root item", with Yellow  back color and save it, clicked after to item "Hovered" and created styles with Violel back color and save it. It was ok, but when we clicked again on "Hovered root item", Visual Studio Builder didn't show the right information of associated styles, back color staying with Violet and not Yellow.

See the annexed image.

Maybe we don't use the tool correctly.

Please advice, thank you,
Alain

Ivan Zhekov
Telerik team
 answered on 04 Oct 2011
1 answer
92 views
Alot of the examples, like the link below, are using this line:
Imports LinqToSQL
which is not valid for me.

I am using visual studio 2010. Not sure where the problem might be. Any help would be appreciated.

http://demos.telerik.com/aspnet-ajax/grid/examples/dataediting/programaticlinqupdates/defaultvb.aspx

Thanks,
Justin
Radoslav
Telerik team
 answered on 04 Oct 2011
1 answer
116 views

If I have 2 applications setting to the same TemporaryFolder but 1 TemporaryFileExpiration is set to 3 hours the other is set to 5 hours. 


Would files uploaded from app1 stay for 3 hours and files uploaded from app2 stay for 5 hours?
Or is it going to delete the files in the folder based on system clock for the shortest TemporaryFileExpiration configured??
Dimitar Terziev
Telerik team
 answered on 04 Oct 2011
1 answer
375 views
I have a NestedViewTemplate which is based on the demo. Unfortunately it cannot find the Panel within it. What's going on with it?

<telerik:RadGrid ID="RadGrid1" runat="server" AllowFilteringByColumn="True" AllowPaging="True"
    AllowSorting="True" AutoGenerateColumns="False" DataSourceID="SqlDataSource1"
    GridLines="None" OnItemCommand="RadGrid1_ItemCommand" OnUpdateCommand="RadGrid1_UpdateCommand1"
    OnItemCreated="RadGrid1_ItemCreated">
    <MasterTableView DataSourceID="SqlDataSource1" Name="Client" CommandItemDisplay="Top"
        DataKeyNames="account_id,contact_id1,user_id">
        <CommandItemSettings ExportToPdfText="Export to Pdf"></CommandItemSettings>
        <DetailTables>
            <telerik:GridTableView DataKeyNames="user_id" runat="server" CommandItemDisplay="Top"
                CommandItemSettings-AddNewRecordText="Add New Accommodation" Caption="Accommodation"
                DataSourceID="SqlDataSource4" Width="100%" AutoGenerateColumns="false" AllowAutomaticDeletes="True"
                AllowAutomaticInserts="True" Name="Accommodation">
                <NestedViewTemplate>
                    <asp:Panel runat="server" ID="InnerContainer" Visible="false">
                        <telerik:RadTabStrip runat="server" ID="AccommodationTabStrip" MultiPageID="MultiPage1"
                            SelectedIndex="1">
                            <Tabs>
                                <telerik:RadTab runat="server" Text="Alternative Contacts" PageViewID="PageView1">
                                </telerik:RadTab>
                                <telerik:RadTab runat="server" Text="Features/Facilities" PageViewID="PageView2"
                                    Selected="True">
                                </telerik:RadTab>
                                <telerik:RadTab runat="server" Text="Gallery" PageViewID="PageView3">
                                </telerik:RadTab>
                                <telerik:RadTab runat="server" PageViewID="PageView5" Text="Bookings">
                                </telerik:RadTab>
                                <telerik:RadTab runat="server" Text="Statistics" PageViewID="PageView4">
                                </telerik:RadTab>
                            </Tabs>
                        </telerik:RadTabStrip>
                        <telerik:RadMultiPage runat="server" ID="MultiPage1" SelectedIndex="0" RenderSelectedPageOnly="false"
                            Width="656px">
                            <telerik:RadPageView runat="server" ID="PageView1">
                                <asp:Label ID="Label1" runat="server" Text='<%# Eval("user_id") %>'></asp:Label>
                                <telerik:RadGrid runat="server" ID="AccommContactsGrid" DataSourceID="SqlDataSource6"
                                    ShowFooter="True" AllowSorting="True" EnableLinqExpressions="False" AllowAutomaticDeletes="True"
                                    AllowAutomaticInserts="True" AllowAutomaticUpdates="True" AllowFilteringByColumn="True"
                                    AllowPaging="True" AutoGenerateColumns="False" GridLines="None">
                                    <MasterTableView ShowHeader="true" DataKeyNames="accom_id" PageSize="7" CommandItemDisplay="Top">
                                        <CommandItemSettings ExportToPdfText="Export to Pdf" />
                                        <CommandItemTemplate>
                                            <div style="padding: 5px 5px;">
                                                <asp:LinkButton ID="btnInsertAccom" CommandName="InitInsert" OnClientClick="return ShowInsertForm();"
                                                    runat="server"><img style="border: 0px; vertical-align:middle;" src="Images/03.png" />Add New Client Account</asp:LinkButton>
                                                <asp:LinkButton ID="btnOptionsAccom" CommandName="Options" runat="server" OnClientClick="return ShowOptionsForm();"><img style="border: 0px; vertical-align:middle;" src="Images/09.png" />Options</asp:LinkButton>
                                                <asp:LinkButton ID="btnRefreshAccom" CommandName="RebindGrid" runat="server"><img style="border: 0px; vertical-align:middle;" src="Images/21.png" />Refresh Link Group List</asp:LinkButton>
                                            </div>
                                        </CommandItemTemplate>
                                        <Columns>

And so forth ...

Here's the codenehind.

protected void RadGrid1_ItemCreated(object sender, GridItemEventArgs e)
{
    if (e.Item is GridNestedViewItem)
    {
        Panel panel = (Panel)e.Item.FindControl("InnerContainer");
        if (panel != null)
        {
            panel.Visible = ((GridNestedViewItem)e.Item).ParentItem.Expanded;
        }
    }
}

The panel != null is there to obviously avoid failure but TBH it's pointless using the NestedViewTemplate if the codebehind isn't going to pick up the embedded control. It happens elsewhere in the code as well.
Princy
Top achievements
Rank 2
 answered on 04 Oct 2011
1 answer
152 views
It does not work with 24 hours.   What if I want to keep the files for 2 days?

Cannot create an object of type 'System.TimeSpan' from its string representation '24:00:00' for the 'TemporaryFileExpiration' property.
Dimitar Terziev
Telerik team
 answered on 04 Oct 2011
1 answer
139 views
Hi
I did steps specified in http://tv.telerik.com/watch/aspnet/visualstylebuilder/creating-custom-radgrid-skin-with-vsb
But it does not work.  The Grid does not change its style.

See attached Image.

-JD
Bozhidar
Telerik team
 answered on 04 Oct 2011
1 answer
138 views
Hi, I have noticed a few issues with the displaying of GridClientSelectColumn in RadGrid (v2010.3) and wanted to see if you could give me some insight into it:
1) When displaying the RadGrid in Internet Explorer, the checkbox created by GridClientSelectColumn is surrounded by white spaces (see attached file)
2) When displaying the RadGrid in Chrome, after using the top checkbox to select all items and clicking it again to deselect all items, the rows stay highlighted. (see attached file)

Neither of the two issues appear in Mozilla.

I am using the following versions of the browsers:
Internet Explorer  9.0.8112.16421
Chrome 14.0.835.187 m
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13)
Pavlina
Telerik team
 answered on 04 Oct 2011
1 answer
264 views
Hello,

We're using 2010 Q3 and running into some issues when attempting a hierarchical grid.

This code is based on the demo. The issue is the expand won't show the child records / table when the arrow beside a parent record is clicked. Nothing happens. No error.

Here is some sample code.

private void DefineGridStructure()
        {
            /* Hierarchy Grid - lab and test types for each lab */

            RadGrid oRadGridLab = new RadGrid();

            oRadGridLab.ID = "TelRadGridLab";

            var oLaboratories
                = (from p in this.Core.EntityModel.Laboratories
                   select p).ToList();

            oRadGridLab.DataSource = oLaboratories;
            oRadGridLab.DataMember = "Laboratory";
           

            oRadGridLab.MasterTableView.DataKeyNames = new string[] { "Idn" };

            oRadGridLab.Skin = "Office2007";

            oRadGridLab.Width = Unit.Percentage(98);
            oRadGridLab.PageSize = 3;
            oRadGridLab.AllowPaging = true;
            oRadGridLab.AllowSorting = true;
            oRadGridLab.PagerStyle.Mode = GridPagerMode.NumericPages;
            oRadGridLab.AutoGenerateColumns = false;
            //oRadGridLab.MasterTableView.GroupLoadMode = GridGroupLoadMode.Client;

            oRadGridLab.MasterTableView.PageSize = 3;

            //Add columns
            GridBoundColumn boundColumn;
            boundColumn = new GridBoundColumn();
            boundColumn.DataField = "Idn";
            boundColumn.HeaderText = "Idn";
            oRadGridLab.MasterTableView.Columns.Add(boundColumn);

            boundColumn = new GridBoundColumn();
            boundColumn.DataField = "Name";
            boundColumn.HeaderText = "Name";
            oRadGridLab.MasterTableView.Columns.Add(boundColumn);

            oRadGridLab.DataBind();

            //Detail table - Test Types (II in hierarchy level)
            GridTableView oTableViewTestTypes = new GridTableView(oRadGridLab);

            var oTestTypes
                = (from p in this.Core.EntityModel.TestTypeToLaboratories
                   select p).ToList();

            oTableViewTestTypes.DataSource = oTestTypes;
            oTableViewTestTypes.DataMember = "TestTypeToLaboratory";         
                       
            oTableViewTestTypes.Width = Unit.Percentage(100);

            oTableViewTestTypes.DataKeyNames = new string[] { "Idn" };

            GridRelationFields relationFields = new GridRelationFields();
            relationFields.MasterKeyField = "Idn";
            relationFields.DetailKeyField = "LaboratoryIdn";
            oTableViewTestTypes.ParentTableRelation.Add(relationFields);

            oRadGridLab.MasterTableView.DetailTables.Add(oTableViewTestTypes);

            //Add columns
            boundColumn = new GridBoundColumn();
            boundColumn.DataField = "LaboratoryIdn";
            boundColumn.HeaderText = "LaboratoryIdn";
            oTableViewTestTypes.Columns.Add(boundColumn);

            boundColumn = new GridBoundColumn();
            boundColumn.DataField = "CreatedOn";
            boundColumn.HeaderText = "CreatedOn";
            oTableViewTestTypes.Columns.Add(boundColumn);

            boundColumn = new GridBoundColumn();
            boundColumn.DataField = "ModifiedOn";
            boundColumn.HeaderText = "ModifiedOn";
            oTableViewTestTypes.Columns.Add(boundColumn);

            oTableViewTestTypes.DataBind();   

            //Add the RadGrid instance to the controls
            this.AspPlaceHolder.Controls.Add(oRadGridLab);
        }


Thank you in advance for your assistance and considerations.
Pavlina
Telerik team
 answered on 04 Oct 2011
5 answers
77 views
Hi,

I was working on sharepoint 2007 and all my telerik components worked fine, but after migrating to sharepoint 2010 i have a lot of problems.
One of them, is when i click on the RadEditor Area, the toolbar does not appear and i have this error every click :
 this Error on FF: 
Sys.Res is undefined

this Error on IE:
Message : 'Sys.Res.argumentTypeWithTypes' a la valeur Null ou n'est pas un objet.
-->  'Sys.Res.argumentTypeWithTypes' is Null or is not an objet. (translation)


NB: i've tried everything, all the web.config configurations, and is well configured, all features are activated ....

Thanks for help, it's just one of my big big problems with telerik
Stanimir
Telerik team
 answered on 04 Oct 2011
1 answer
147 views
I have a master page with a custom user control. The user control has a RadTreeView within it.

<ucs:ListsTab ID="ucListsControl" runat="server" />

I've exposed a property for this control on the master page.

public TplListControlTab TplListControl {
    get {
        return ucListsControl;
    }
}

On my content page I have a RadAjaxManager and have both a RadGrid and the user control as controls to be updated. I understand that it's a better idea to have the RadAjaxManager on the master page but this won't be possible in my case.

<telerik:AjaxSetting AjaxControlID="RadAjaxManager1">
    <UpdatedControls>
        <telerik:AjaxUpdatedControl ControlID="RadGrid1" LoadingPanelID="RadAjaxLoadingPanel2" />
        <telerik:AjaxUpdatedControl ControlID="ucListsControl" />
    </UpdatedControls>
</telerik:AjaxSetting>

I initiate a client side AJAX request as follows:

var _ajaxManager = "<%= RadAjaxManager1.ClientID %>";
$find(_ajaxManager).ajaxRequest("SomeCommand");

In my RadAjaxManager1_AjaxRequest method I handle the request:

if (e.Argument == "SomeCommand") {
    // ... do some stuff to RadGrid's datasource.
    RadGrid1.Rebind();

    // ... do some stuff to user control's datasource.
    Master.TplListControl.RadTreeView.DataBind();
}

The RadGrid correctly updates but the user control does not. I've tried setting the AjaxSettings programmatically but this doesn't work either. Is this not possible or am I doing something wrong?
Christopher
Top achievements
Rank 1
 answered on 04 Oct 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?