Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
92 views
I inserted file ".flv" flowing :
<object width="150" height="150" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000">
<param value="/Upload/News/Video/08092012232957.flv" name="Movie">
<param value="false" name="play">
<param value="high" name="quality">
<param value="false" name="loop">
<param value="false" name="menu">
<embed width="150" height="150" menu="false" loop="false" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" src="/Upload/News/Video/08092012232957.flv">
</object>


But  when I run it in browse it do not play.??
Dobromir
Telerik team
 answered on 08 Nov 2012
1 answer
666 views
Hi:
My web page loads really slow after i have added a editor control on the page.

I am using IE 9 to test. I can see "Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d3.5.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen%3a553a4a13-b3a5-4e6b-a152-b131051f1788%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%2c+Version%3d2011.3.1305.35%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen%3ac331b262-facd-47ae-9de3-......" is pending when using IE developer tools to check the network.  After a while, the page will be loaded and the size of the file is around 1MB. 

I am just wondering if there is a way to optimize that. I have searched other related issues but could not solve this performance issue.

thanks in advance.


Nikolay
Telerik team
 answered on 08 Nov 2012
2 answers
163 views
HI,

I am working on Radtab ondemand loading. When i click on the tab i just want to load that tab. I see your example but you are loading .ascx page on demand. Can i use aspx pages.  I have 10 tabs with 10 pageviews. first 2 pageviews have grids within the pageview itself  and other 8 tabs when i clcik on the tab i want to show different aspx pages in that associated pageview. NavigateURL is not wotking for my scenario. How to achive this scenario. ANy example would be best for me to understand. I tried the way in your example but its throwing some error for aspx pages. Here is my sample code Please look into it. Thanks.

<telerik:RadTabStrip ID="RadTabSieHistory" runat="server" Skin="Vista" MultiPageID="RadMultiPageSieHistory"
    OnTabClick="RadTabSieHistory_TabClick">
    <Tabs>
        <telerik:RadTab Text="Search Results" PageViewID="RPVSearchResults">
        </telerik:RadTab>
        <telerik:RadTab Text="Process Flow" PageViewID="RPVProcessFlow">
        </telerik:RadTab>
        <telerik:RadTab Text="Task History" PageViewID="EditWinTaskHistory">
        </telerik:RadTab>
        <telerik:RadTab Text="Order Details" PageViewID="RPVOrdDetails">
        </telerik:RadTab>
        <telerik:RadTab Text="Fiber Details" PageViewID="RPVFiberDet">
        </telerik:RadTab>
        <telerik:RadTab Text="Dependencies" PageViewID="RPVDependncy">
        </telerik:RadTab>
        <telerik:RadTab Text="Jeopardy" PageViewID="RPVJeop">
        </telerik:RadTab>
        <telerik:RadTab Text="Attachments" PageViewID="RPVAttachments">
        </telerik:RadTab>
        <telerik:RadTab Text="Notes" PageViewID="RPVNotes">
        </telerik:RadTab>
    </Tabs>
</telerik:RadTabStrip>
<telerik:RadMultiPage ID="RadMultiPageSieHistory" runat="server" BorderStyle="Solid"
    BorderWidth="1px" BackColor="White" BorderColor="Black" OnPageViewCreated="RadMultiPageSieHistory_PageViewCreated">
    <telerik:RadPageView ID="RPVSearchResults" runat="server">
        <asp:label id="lblMsg" runat="server" font-bold="True" font-size="10pt" backcolor="Yellow"
            forecolor="Black"></asp:label>
        <div style="text-align: right; font-size: 8pt" id="div1" runat="server">
            <asp:linkbutton id="lnkbtnViewAll" onclick="lnkbtnViewAll_Click" runat="server" text="View All"></asp:linkbutton>
              Total Records found: <asp:label id="lblTotRecCount" font-bold="True"
                runat="server" forecolor="Black" font-size="10pt" text="0"></asp:label>
        </div>
        <div style="overflow: auto; height: 460px">
            <asp:gridview id="gvSites" borderwidth="0px" borderstyle="None" runat="server" backcolor="White"
                bordercolor="White" cellspacing="1" allowpaging="True" width="98.6%" onrowdatabound="gvSites_RowDataBound"
                onselectedindexchanged="gvSites_SelectedIndexChanged" onpageindexchanging="gvSites_PageIndexChanging"
                pagesize="15" allowsorting="True" onsorting="gvSites_Sorting" autogeneratecolumns="False"
                onrowcommand="gvSites_RowCommand">
                <AlternatingRowStyle Font-Size="8pt" BackColor="#F5F5E9" BorderWidth="0px" BorderColor="White" />
                <Columns>
                    <asp:TemplateField>
                        <ItemTemplate>
                            <asp:Image ID="imgOrdStat" runat="server" />
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:BoundField DataField="OrderType" />
                    <asp:BoundField DataField="LineOfBusiness" SortExpression="LineOfBusiness" HeaderText="LOB" />
                    <asp:BoundField DataField="DivisionName" SortExpression="DivisionName" HeaderText="Division Name" />
                    <asp:BoundField DataField="MarketName" SortExpression="MarketName" HeaderText="Region/ Market Name" />
                    <asp:BoundField DataField="CarrierName" SortExpression="CarrierName" HeaderText="Customer Name" />
                    <asp:BoundField DataField="HeadendName" SortExpression="HeadendName" HeaderText="Headend Name" />
                    <asp:BoundField DataField="ProjectName" SortExpression="ProjectName" HeaderText="Project Name" />
                    <asp:BoundField DataField="siteId" SortExpression="siteId" HeaderText="site Id" />
                    <asp:BoundField DataField="SiteName" SortExpression="SiteName" HeaderText="Site Name" />
                    <asp:BoundField DataField="Address" SortExpression="Address" HeaderText="Site Address" />
                    <asp:BoundField DataField="quoteId" SortExpression="quoteId" HeaderText="Quote ID" />
                    <asp:BoundField DataField="PTD" SortExpression="PTD" HeaderText="PTD" />
                    <asp:BoundField DataField="orderStatus" SortExpression="orderStatus" HeaderText="Order Status" />
                    <asp:BoundField DataField="orderId" />
                    <asp:BoundField DataField="MixedOrder" HeaderText="MixOrd" />
                    <asp:BoundField DataField="ServiceOrderNumber" HeaderText="Service Order Number"
                        SortExpression="Service Order Number" />
                    <asp:TemplateField Visible="False">
                        <ItemTemplate>
                            <asp:Label ID="lblOrdType" runat="server" Text='<%# Bind("orderTypeDesc") %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField>
                        <ItemTemplate>
                            <asp:ImageButton ID="imgDet" ToolTip="View network diagram" CommandName="Details"
                                ImageUrl="Images/Details.gif" runat="server" />
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField>
                        <ItemTemplate>
                            <asp:ImageButton ID="imgMixDet" ToolTip="View Mixed Order Details" CommandName="Mixed"
                                ImageUrl="Images/MIXED.png" runat="server" Visible="false" />
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
                <FooterStyle BackColor="White" ForeColor="#000066" BorderWidth="0px" />
                <HeaderStyle Height="20px" BackColor="#004000" Font-Size="8pt" Font-Bold="True" ForeColor="White"
                    HorizontalAlign="Center" BorderWidth="0px" />
                <PagerSettings Mode="NumericFirstLast" />
                <PagerStyle HorizontalAlign="Right" Font-Bold="True" Font-Size="8pt" />
                <RowStyle ForeColor="#3C5F22" Font-Size="8pt" BackColor="White" BorderWidth="0px"
                    BorderColor="White" />
            </asp:gridview>
        </div>
    </telerik:RadPageView>
    <telerik:RadPageView ID="RPVProcessFlow" runat="server">
        <div style="overflow: auto; width: 100%; overflow-y: hidden" align="center">
            <syncfusion:diagramwebcontrol cssclass="diadisplay" bordercolor="White" borderstyle="NotSet"
                borderwidth="0" id="DiagramWebControl1" runat="server" width="100%" waitingpopuptext="Processing"
                dbclicktimeoutdelay="1" disabledbackgroundcolor="LightBlue" waitingpopupautoformat="Indicator"
                boundaryconstraintsenabled="True" documentid="f69befd0-b591-42af-a1c6-377dd730c290"
                enablexhtml="true" height="485px" onnodeclick="DiagramWebControl1_NodeClick" />
        </div>
    </telerik:RadPageView>
    <telerik:RadPageView ID="RPVTskHis" runat="server">
    </telerik:RadPageView>
    <telerik:RadPageView ID="RPVOrdDetails" runat="server">
    </telerik:RadPageView>
    <telerik:RadPageView ID="RPVFiberDet" runat="server">
    </telerik:RadPageView>
    <telerik:RadPageView ID="RPVDependncy" runat="server">
    </telerik:RadPageView>
    <telerik:RadPageView ID="RPVJeop" runat="server">
    </telerik:RadPageView>
    <telerik:RadPageView ID="RPVAttachments" runat="server">
    </telerik:RadPageView>
    <telerik:RadPageView ID="RPVNotes" runat="server">
    </telerik:RadPageView>
</telerik:RadMultiPage>
protected void RadMultiPageSieHistory_PageViewCreated(object sender, RadMultiPageEventArgs e)
    {
        //if (e.PageView.ID.ToLower() == "rpvtskhis")
        //{
        //    Page.LoadControl("EditWinTaskHistory.aspx");
        //}
        //else if (e.PageView.ID.ToLower() == "rpvorddetails")
        //{
        //    Page.LoadControl("EditWinOrderData.aspx");
        //}
        //else if (e.PageView.ID.ToLower() == "rpvfiberdet")
        //{
        //    Page.LoadControl("EditWinFiberConstructionCost.aspx");
        //}
 
        if(e.PageView.ID == "EditWinTaskHistory")
            Page.LoadControl("EditWinTaskHistory.aspx");
 
        //string userControlName = e.PageView.ID + ".aspx";
 
        //Control userControl = Page.LoadControl(userControlName);
        //userControl.ID = e.PageView.ID + "_userControl";
 
        //e.PageView.Controls.Add(userControl);
    }
 
    protected void RadTabSieHistory_TabClick(object sender, RadTabStripEventArgs e)
    {
        if (e.Tab.Index != 0 && e.Tab.Index != 1)
        {
            AddPageView(e.Tab);
            e.Tab.PageView.Selected = true;
        }
    }
 
    private void AddPageView(RadTab tab)
    {
        RadPageView pageView = new RadPageView();
        pageView.ID = tab.PageViewID;
        RadMultiPageSieHistory.PageViews.Add(pageView);
        tab.PageViewID = pageView.ID;
    }
Gia
Top achievements
Rank 1
 answered on 08 Nov 2012
7 answers
192 views
heey guys 

I have a problem how can I get the department with the all current Users I created a View that connect this both tables(user/department) 

but i got this strange error (Must declare the scalar variable "@UserId".) 

my coder






protected
void LoadDE(string businessUnitId)
       {
           SqlConnection connection = new SqlConnection(ConfigurationManager.ConnectionStrings["HolidayTrackerConnectionString"].ConnectionString);
 
           SqlDataAdapter adapter = new SqlDataAdapter("SELECT * FROM DepartmentView  WHERE BusinessUnitId=@BusinessUnitId AND UserId=@UserId", connection);
           adapter.SelectCommand.Parameters.AddWithValue("@BusinessUnitId", businessUnitId);
           DataTable dt = new DataTable();
           adapter.Fill(dt);
 
           rcbDepartments.DataTextField = "Name";
           rcbDepartments.DataValueField = "DepartmentId";
           rcbDepartments.DataSource = dt;
           rcbDepartments.DataBind();
           rcbDepartments.Items.Insert(0, new RadComboBoxItem("-Select a DEP-"));
       }

Thanks for every help and fast answer ! ^^


 
Nikola
Top achievements
Rank 2
 answered on 08 Nov 2012
2 answers
147 views
I've got textboxes within a RadGrid FormTemplate.  I am getting the handles for the textboxes with the methods illustrated here: http://www.telerik.com/community/code-library/aspnet-ajax/grid/accessing-server-controls-in-a-grid-template-on-the-client.aspx

I have the handles to the textboxs.  That is not in doubt.

The problem is, I cannot find any usable way to enable or disable them through Javascript.

Either nothing happens or the page crashes.

(And there seem to be a dozen different methods out there.  enable()/disable().  attr/removeattr, disabled =true/false,  etc.)
Boris
Top achievements
Rank 1
 answered on 08 Nov 2012
2 answers
157 views
I'm sorry if this is partially a duplicate of a previous entry but I need a fast answer.

I need to be able to be able to enable and disable textboxes and other controls within a RadGrid's popup using a Javascript call from a check box on that same popup.

Every entry I've found seems to contradict the previous and nothing works.
Boris
Top achievements
Rank 1
 answered on 08 Nov 2012
1 answer
93 views

In one of my applications with IE 7 browser, the toolbar tools section that contains a dropdown will wrap to the 2nd line.  See attached image. 

I am using 2012.3.1030.35.  This application has a Master page.  The content page has a Radgrid.  In the editform is the Radeditor.  The radeditor uses a tools.xml file to load specific tools.

If the tools section has a dropdown as shown below, the <tool /> after the last dropdown will display on the next line.  So in the below example, the separator and the formatstripper objects will appear in a line below the 3 dropdown objects.

 

<

 

tools name="Fonts" dockable="true" >

 

<

 

tool name="FormatBlock" />

 

<

 

tool name="FontName" />

 

<

 

tool name="RealFontSize" />

 

<

 

tool separator="true" />

 

<

 

tool name="FormatStripper" />

 

</

 

tools>

Any suggestions as to how to fix this? 

 

Dobromir
Telerik team
 answered on 08 Nov 2012
2 answers
70 views
I'm looking at the following demos.

http://demos.telerik.com/aspnet-ajax/grid/examples/hierarchy/declarativerelations/defaultcs.aspx

http://demos.telerik.com/aspnet-ajax/grid/examples/programming/selectedvalue/defaultcs.aspx

I have the usual header-detail relationship in a pair of tables.

I was just wondering if there are any performance issues I should be aware of when chosing one method over another? 

(It's quite likely that most of the headers may have only a few details.  It is also possible a few could have dozens.)
Boris
Top achievements
Rank 1
 answered on 08 Nov 2012
2 answers
244 views
I have a RadButton in a Popup template in ToggleButton (checkbox) mode.  I've bound the checked property with the usual Bind statement to a bit field in my SQL db.

Actually everything has been working fine since I found this forum entry from 2009:  http://www.telerik.com/community/forums/aspnet-ajax/grid/checkbox-in-editform.aspx

I was just wondering if this is still the standard way of binding boolean fields for Insert?
Boris
Top achievements
Rank 1
 answered on 08 Nov 2012
1 answer
251 views
I've tried several approaches trying to change the rendered font size of all the data cells in my radgrid, but nothing I have tried has worked.

I have tried:
* Setting the attribute  Font-Size="Large" at both the RadGrid and MasterTableView Level, both by editing the code and by using Visual Studios Design View Editior.
** Changes at the MasterTableView level change the preview in Visual Studio Desgin view, but has no effect on the rendered page.

* Setting a cssclass at the radGrid level as shown at http://www.telerik.com/community/forums/aspnet-ajax/grid/font-size-problem.aspx
but again, while it changed things in the design view, it did not change the rendered page.

Don't know what else to try - You would think this should be a trivial change to make....


Eyup
Telerik team
 answered on 08 Nov 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?