Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
139 views
Hi

is it possible to do the following?

I have a radgrid where one of the columns has the this values:  Not Stared, In Progress, Complete, Ongoing

like this


No          Status

1          Not Started
2          In Progress
3          Ongoing
4          In Progress
5          In Progress
6          Complete


I have a custom filter on the status column (a dropdown with 4 items) so I can filter on the 4 different types.
The Customer now wants a 5th item in the filter dropdown, and this 5th should get back all the records that are not Complete.

How could I make this happen?


Thanks


Kati

Tsvetoslav
Telerik team
 answered on 23 Mar 2010
2 answers
196 views
Is there a property to disable the client validation (yellow triangle and red border) in raddatepicker, it doesnt look weel in my layout, and I have built my own customized validation routine.

If not, how can I do that?

Regards
André
André Freitas
Top achievements
Rank 1
 answered on 23 Mar 2010
5 answers
207 views
I would like to display the items from the 2nd level onwards. How can this be accomplished?
Peter
Telerik team
 answered on 23 Mar 2010
7 answers
175 views
Hi,

   I am using RadGrid to display items. I use webusercontrol to edit Grid data. Everything was working fine.
After I added Ajax, the Grid Works fine, but the Update/delete is not working. I also use <asp:LinkButton for showing the edit form.

Can someone please help me?

<MasterTableView DataKeyNames="IDR_ID" GridLines="None" Width="100%" CommandItemDisplay ="Top" InsertItemDisplay="Top" InsertItemPageIndexAction="ShowItemOnCurrentPage">   
              <CommandItemTemplate> 
                    <div style="padding: 5px 5px;"> 
                        &nbsp;&nbsp;&nbsp;&nbsp; 
                        <asp:LinkButton ID="btnEditSelected" runat="server" CommandName="EditSelected" Visible='<%# RadGrid1.EditIndexes.Count == 0 %>'><b>Edit selected</b></asp:LinkButton>&nbsp;&nbsp;&nbsp;&nbsp; 
                        <asp:LinkButton ID="btnCancel" runat="server" CommandName="CancelAll" Visible='<%# RadGrid1.EditIndexes.Count > 0 || RadGrid1.MasterTableView.IsItemInserted %>'><b>Cancel editing</b></asp:LinkButton>&nbsp;&nbsp; 
                        <asp:LinkButton ID="LinkButton2" runat="server" CommandName="InitInsert" Visible='<%# !RadGrid1.MasterTableView.IsItemInserted %>'><b>Add new</b></asp:LinkButton>&nbsp;&nbsp;&nbsp;&nbsp; 
                        <asp:LinkButton ID="LinkButton1" OnClientClick="javascript:return confirm('Delete selected IDR?')" runat="server" CommandName="DeleteSelected"><b>Delete selected IDR</b></asp:LinkButton>&nbsp;&nbsp; 
                        <asp:LinkButton ID="LinkButton4" runat="server" CommandName="RebindGrid"><b>Refresh IDR list</b></asp:LinkButton> 
                    </div> 
                </CommandItemTemplate>  


Thanks,
Rita



Tsvetoslav
Telerik team
 answered on 23 Mar 2010
7 answers
497 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
237 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
191 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
119 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
97 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
130 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?