Telerik Forums
UI for ASP.NET AJAX Forum
7 answers
483 views
I have the following rad grid on my aspx page.  When I don't specify the PagerStyle-AlwaysVisible property in the MasterTableView the paging numbers show up as expected (see exhibitA.jpg).  When I add the PagerStyle-AlwaysVisible property to the MasterTableView the paging numbers are gone (see exhibitB.jpg).  I am setting the PagerStyle-AlwaysVisible property because I want the paging information (number of results, etc) to show up even if there is only one page of results (by default the pager information does not display if there is only one page of results returned).

<rad:RadGrid ID="RadGrid1" PageSize="15" AllowPaging="True" runat="server" AutoGenerateColumns="false" BorderStyle="None">

 

 

<PagerStyle Mode="NextPrevAndNumeric" />

 

 

<MasterTableView PagerStyle-AlwaysVisible="true">

 

 

<SortExpressions>

 

 

<rad:GridSortExpression FieldName="Title" SortOrder="Ascending" />

 

 

</SortExpressions>

 

 

<Columns>

 

 

<rad:GridHyperLinkColumn HeaderText="Programs" DataTextField="Title" DataNavigateUrlField="Quicklink"></rad:GridHyperLinkColumn>

 

 

</Columns>

 

 

</MasterTableView>

 

 

</rad:RadGrid>

Any ideas??

Thanks,
Tony

 

Richard
Top achievements
Rank 2
 answered on 23 Mar 2010
7 answers
227 views
Hi all,

  I tried to improve the performance of my website by enabling the combine script option in RadScriptManager.

 <telerik:RadScriptManager ID="ScriptManager1" runat="server" EnableScriptCombine="true" >
 </telerik:RadScriptManager>

 However, i found that the page loads slower than disabling this feature in the initial load (no cache in the browser).
 With the help of fiddler, i can see that the actual transfer time is faster but seem the browser take longer time to process the script.
 And the size of the combined script is much larger than seperated script resources.

 Here is the figure:

 combined : 272,245 
 Individual : 17,324 + 18,714 + 5,147 + 9,743 + 10,319 + 7,074 + 17,994 + 4,841 + 10,097 + 1,705 + 9,224 + 2,588 = 114,770

T. Tsonev
Telerik team
 answered on 23 Mar 2010
1 answer
181 views
When i use telerik's sample of creating dynamic page views and adding usercontrols it throws an exception.

To recreate

1) Make telerik ajax project in vs2010
2) Add a master page and add radajaxmanager,radscriptmanager and radajaxloadingpanel
3) Add content page with the following

<

 

 

asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

 

 

 

 

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

 

 

 

<AjaxSettings>

 

 

 

<telerik:AjaxSetting AjaxControlID="Panel1">

 

 

 

<UpdatedControls>

 

 

 

<telerik:AjaxUpdatedControl ControlID="Panel1" />

 

 

 

</UpdatedControls>

 

 

 

</telerik:AjaxSetting>

 

 

 

<telerik:AjaxSetting AjaxControlID="TabStrip">

 

 

 

<UpdatedControls>

 

 

 

<telerik:AjaxUpdatedControl ControlID="TabStrip" />

 

 

 

<telerik:AjaxUpdatedControl ControlID="RadMultiPage1"

 

 

 

LoadingPanelID="RadAjaxLoadingPanel1" />

 

 

 

</UpdatedControls>

 

 

 

</telerik:AjaxSetting>

 

 

 

<telerik:AjaxSetting AjaxControlID="RadMultiPage1">

 

 

 

<UpdatedControls>

 

 

 

<telerik:AjaxUpdatedControl ControlID="RadMultiPage1" />

 

 

 

</UpdatedControls>

 

 

 

</telerik:AjaxSetting>

 

 

 

</AjaxSettings>

 

 

 

</telerik:RadAjaxManagerProxy>

 

 

 

<telerik:RadSkinManager ID="RadSkinManager1" runat="server" Skin="Sunset">

 

 

 

</telerik:RadSkinManager>

 

 

 

 

<telerik:RadTabStrip ID="TabStrip" runat="server" ViewStateMode="Enabled" OnClientTabSelecting="onTabSelecting"

 

 

 

ClientIDMode="Static" MultiPageID="RadMultiPage1" OnTabClick="RadTabStrip1_TabClick"

 

 

 

SelectedIndex="0">

 

 

 

</telerik:RadTabStrip>

 

 

 

<telerik:RadMultiPage ID="RadMultiPage1" runat="server" SelectedIndex="0" CssClass="multiPage"

 

 

 

ClientIDMode="Static" ViewStateMode="Enabled" OnPageViewCreated="RadMultiPage1_PageViewCreated">

 

 

 

</telerik:RadMultiPage>

 

 

 

<telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">

 

 

 

<script type="text/javascript">

 

 

 

function onTabSelecting(sender, args) {

 

 

 

if (args.get_tab().get_pageViewID()) {

 

args.get_tab().set_postBack(

 

false);

 

}

}

 

 

 

</script>

 

 

 

</telerik:RadCodeBlock>

 



Add codebehined with following

using

 

 

System;

 

using

 

 

System.Collections.Generic;

 

using

 

 

System.Linq;

 

using

 

 

System.Web;

 

using

 

 

System.Web.UI;

 

using

 

 

System.Web.UI.WebControls;

 

using

 

 

Telerik.Web.UI;

 

namespace

 

 

TabStripMasterPageSample

 

{

 

 

public partial class Content : System.Web.UI.Page

 

{

 

 

protected void Page_Load(object sender, EventArgs e)

 

{

 

 

if (!IsPostBack)

 

{

AddTab(

 

"Test");

 

AddPageView(TabStrip.FindTabByText(

 

"Test"));

 

AddTab(

 

"Test3");

 

AddTab(

 

"Test2");

 

}

}

 

 

private void AddTab(string tabName)

 

{

 

 

var tab = new RadTab { Text = tabName };

 

TabStrip.Tabs.Add(tab);

}

 

 

protected void RadMultiPage1_PageViewCreated(object sender, RadMultiPageEventArgs e)

 

{

 

 

string userControlName = e.PageView.ID + ".ascx";

 

 

 

var userControl = Page.LoadControl(userControlName);

 

userControl.ID = e.PageView.ID +

 

"_userControl";

 

e.PageView.Controls.Add(userControl);

}

 

 

private void AddPageView(RadTab tab)

 

{

 

 

var pageView = new RadPageView { ID = tab.Text };

 

RadMultiPage1.PageViews.Add(pageView);

pageView.CssClass =

 

"pageView";

 

tab.PageViewID = pageView.ID;

}

 

 

protected void RadTabStrip1_TabClick(object sender, RadTabStripEventArgs e)

 

{

System.Threading.

 

Thread.Sleep(10000);

 

AddPageView(e.Tab);

e.Tab.PageView.Selected =

 

true;

 

}

}

}

Yana
Telerik team
 answered on 23 Mar 2010
1 answer
117 views
I used Visual Style Builder to build a new skin (nice tool by the way!) and downloaded the zip file. However now when I go to use it, i.e. Edit the control, Appearances - Skin --- I don't get a choice to browse for it. So where should I put it so it will be found?

Peter
Telerik team
 answered on 23 Mar 2010
1 answer
94 views
Hello,
We come across filtering issue on Date time columns . We are not able achieve the filter equal condition.   
Looking for your suggestion how to achieve the functionality. 
Note : we need to show columns value with DateTime factor like (03/23/2010 4:34 PM)  

Koteswararao
 
Princy
Top achievements
Rank 2
 answered on 23 Mar 2010
2 answers
126 views
Hi
I guess i was working too much that is why i feel blank inside my head and need some help.

I have a page (Catalogue) With a RADGRID where the user will use it to look through all the items, then by clicking on the Select Item he will go to Order Page, in this order page he will see the details for the item selected (at the top of the page) and a form to fill to submit the order.

- The Grid is using a table (Items).
- The Detail View is using the same table (Items) to display the info about the selected item (through a SqlDataSource on the Order Page page).
- There is another SqlDataSource (from the Orders table) on the Order Page.
- The form on the Order Page right now is suppose to insert the Data into the Orders Table.
- Order table and Items Table are related with the Column ItemID.

Now
- Everything is working fine between the Grid view(catalogue page) and the Detail View (on the order page), but what i need is:

+ When the user click Save the Data inserted into the Order Table with the ItemID (for the selected Item) and direct the user to another page (OrderListPage).

+ When the user Click Save and More the data inserted into the Order table(database) and direct the user back to the Catalogue Page.

+ When the user Click Cancel it direct the user back to the Catalogue page.

# 2 Screen Shots attached to clarify the Idea.
(i tried that but nothing goes to database so i am sure i am missing something plus i do not know how to redirect to page after insertion)
Thanks in Advance for any help
Yavor
Telerik team
 answered on 23 Mar 2010
3 answers
79 views
When we set the ToolbarMode="ShowOnFocus" the toolbar floats around the page when we scroll around on the page. We would like to be able to PIN this toolbar so it doesn't float over editor's text. Is this possible? Thanks.
Rumen
Telerik team
 answered on 23 Mar 2010
1 answer
186 views
Greetings,
I'm setting up several Rad Tooltips and thought I'd just use an iFrame with a single basic HTML page containing anchors to spin to the correct spot. Works great in Google but IE8 doesn't spin to anchor. If I put a link on the top of the page and click the link after it loads it does go to anchor (Moves the whole page up, not just the TT) but won't spin to anchor on load in IE8. Any one have any thoughts on this?

Thanks

<telerik:RadToolTip ID="RadToolTip1" runat="server" Height="350px" 
        ManualClose="True" Position="TopRight" Skin="Web20" 
        TargetControlID="Img_LicenseQualified" Width="400px"> 
        <iframe id="iTotal" src="../html/licensehelp.htm#Total" frameborder= "0"  scrolling= "no"  
            style="WIDTH: 400px; HEIGHT: 350px" name="I1"></iframe>
    </telerik:RadToolTip>


Svetlina Anati
Telerik team
 answered on 23 Mar 2010
2 answers
129 views
I have a radlistbox named "radlstbxStaff" which is populated with names during the page load. Using the RadAjaxmanager, when an item is selected I'm updating a handfull of details related to the selected staff. The controls that are being updated are located in the "panelSelectedStaffDetails" panel. The list box is not inside that panel. Using Fiddler I've been monitoring the bytes received when selecting an item. The issue I'm having is that the size of the bytes received when selecting an item is higher the more items there are in the list. I've found this to be true in other sections of the site that I'm using a simlilar approach.  Since the list itself is not being updated, why does it's size effect the bytes received?

Please see the following code block that makes up the ajaxmanager.

<

 

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

 

 

 UpdatePanelsRenderMode="Inline">

 

 

   <AjaxSettings>

 

       <telerik:AjaxSetting AjaxControlID="radlstbxStaff">  
                <UpdatedControls> 
                    <telerik:AjaxUpdatedControl ControlID="panelSelectedStaffDetails"   
                        LoadingPanelID="RadAjaxLoadingPanel1" /> 
                    <telerik:AjaxUpdatedControl ControlID="hfAllowedHours" /> 
                    <telerik:AjaxUpdatedControl ControlID="panelAdditionalShifts"  /> 
                    <telerik:AjaxUpdatedControl ControlID="btnAssign" /> 
                </UpdatedControls> 
            </telerik:AjaxSetting> 

    </

 

AjaxSettings>

 

 

</telerik:RadAjaxManager>

 

gsxrboy
Top achievements
Rank 1
 answered on 23 Mar 2010
1 answer
136 views
I have a very simple use of the RadRating control as follows :

            <asp:UpdatePanel ID="UpdatePanel3" runat="server" UpdateMode="Conditional"
                <Triggers> 
                    <asp:AsyncPostBackTrigger ControlID="Rating1" EventName="Rate" /> 
                </Triggers> 
                <ContentTemplate> 
                    <div> 
                        <telerik:RadRating ID="Rating1" runat="server" Skin="Windows7" Precision="Item" OnRate="Rating1_Rate" AutoPostBack="true"  /> 
                    </div> 
                </ContentTemplate>
            </asp:UpdatePanel> 

The server side event handler just grabs the rating value and adds it to a database table. When the page loads, i initially load the RadRating control's value to display the average rating for the item being viewed. The problem i have is say the average rating is 4 exactly, and someone tries to give a rating of 4, the Rate even will not fire. If i rate anything else but 4, the rate event will fire and everything works fine, the problem only happens when trying to click the same rating that is being displayed. If someone rates the same value, i would still like to capture that value, but cannot do so because of this.


Tsvetie
Telerik team
 answered on 23 Mar 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?