Telerik Forums
UI for ASP.NET AJAX Forum
7 answers
410 views
Hi, All:

I am using vs 2005.  I add some rows asynchroniously(using Ajax) into
Rad Grid, with filtering enable. But it failed.

To fix this bug, I remove some Ajax capabilities, enabling a full page
postback when adding rows into Rad Grid.  Then, Rad Grid's filtering
works.

Does Rad Grid filtering need a full page postback before filters work?

Thanks.

Stanley
Chris Ruegsegger
Top achievements
Rank 1
 answered on 25 Sep 2008
2 answers
78 views
Hi all

I am new in telerik and my question may be very easy, I put combobox inside RadAjaxPanel and populate it programmatically, after I select some item and click outside of the combobox the selection drops to first item again and again, it seems that selecting any item than the first one is impossible.

Any help will save my health :)))

Thanks in advance
Karen
Top achievements
Rank 1
 answered on 25 Sep 2008
1 answer
107 views
Hello,

I have a grid with a series of detail tables... Here's basically what I'm going for

Parent Item
    Child Item - Visible = ParentItem.ShowChild

Is this possible to do? Here, ParentItem.ShowChild is a field in an SQL data source.

The scenario is that we have a list of items a person is either involved in or expressed an interest in... these are grouped at the top level. For the ones they are participating in, we want to show the other participants emails... but we want these hidden for the items they are not participating in...

Thanks,

Mike

Veli
Telerik team
 answered on 25 Sep 2008
1 answer
202 views

Our application has started generating an Object Expected javascript error when a RadNumericTextBox or RadDateInput control is displayed in a multiview control as the result of an ajax request.

After much trial and error messing around I came across the RadScriptManager 'EnableScriptCombine' property. This being a script problem I turned it off and presto the problem disappeared.

If you can shed any light on this and ideally a solution I would be grateful. Code segment below. (Note script manager is on the master page.)

<%@ Page Language="C#" MasterPageFile="~/Default.Master" AutoEventWireup="true" CodeBehind="Ecrs.aspx.cs" Inherits="Sinclair.ECM.WebUI.Ecr.Ecrs" Title="All ECRs" %> 
<%@ Import Namespace="Sinclair.ECM.WebUI.Common" %>
<asp:Content ID="Content1" ContentPlaceHolderID="cp1" runat="server">
<h1><asp:Label ID="lblViewName" CssClass="iconDocs" runat="server">All ECRs</asp:Label></h1> 
<p>To view an ECR, click on its ID. Additionally you can use the filter fields below to narrow down the results. </p>

<telerik:RadAjaxManager runat="server" ID="ramFilterCriteria" >
<AjaxSettings>
<telerik:AjaxSetting AjaxControlID="cboFilter">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="mvFilterCriteria" />
</UpdatedControls>
</telerik:AjaxSetting>
</AjaxSettings>
</telerik:RadAjaxManager>

<div class="gridPanelAbove">
<div class="gridPanelAboveLeft">

<div class="ecrFilter" id="ECRfilters">
<div class="ecrFilterLeft">
<table class="table">
<tr>
<td>
Filter options <br />
<telerik:RadComboBox ID="cboFilter" runat="server" AllowCustomText="false" AutoPostBack="true" DropDownWidth="180px">
<Items>
<telerik:RadComboBoxItem Value="-1" Text="Select filter" />
<telerik:RadComboBoxItem Value="0" Text="ECR No" />
<telerik:RadComboBoxItem Value="1" Text="Date created" />
<telerik:RadComboBoxItem Value="2" Text="Date closed" />
<telerik:RadComboBoxItem Value="3" Text="Machine" />
<telerik:RadComboBoxItem Value="4" Text="Part number" />
<telerik:RadComboBoxItem Value="5" Text="ECR category" />
<telerik:RadComboBoxItem Value="6" Text="CAF No" />
<telerik:RadComboBoxItem Value="7" Text="Free text" />
<telerik:RadComboBoxItem Value="8" Text="Creator" />
<telerik:RadComboBoxItem Value="9" Text="Priority" />
<telerik:RadComboBoxItem Value="10" Text="Assigned to department" />
<telerik:RadComboBoxItem Value="11" Text="Assigned to person" />
<telerik:RadComboBoxItem Value="12" Text="Tasks assigned to person" />
<telerik:RadComboBoxItem Value="13" Text="Tasks assigned to department" />
<telerik:RadComboBoxItem Value="14" Text="ECR status" />
<telerik:RadComboBoxItem Value="15" Text="Review criteria" />
<telerik:RadComboBoxItem Value="16" Text="ECR required date" />
<telerik:RadComboBoxItem Value="17" Text="Review requested" />
</Items>
</telerik:RadComboBox>
</td>
</tr>
</table>
</div>

<div class="ecrFilterMiddle">
<div class="ecrFilterMiddleFields">
<asp:MultiView ID="mvFilterCriteria" runat="server">
<asp:View ID="vwNumeric" runat="server">
<table class="table">
<tr>
<td>
ECR No<br />
<telerik:RadNumericTextBox ID="txtNumber" runat="server" NumberFormat-DecimalDigits="0" NumberFormat-GroupSeparator=""></telerik:RadNumericTextBox>
</td>
</tr>
</table>
</asp:View>
<asp:View ID="vwDateRange" runat="server">
<table class="table">
<tr>
<td>
From<br />
<telerik:RadDateInput ID="dteFromDate" runat="server"></telerik:RadDateInput>
</td>
<td>
To<br />
<telerik:RadDateInput ID="dteToDate" runat="server"></telerik:RadDateInput>
</td>
</tr>
</table>
</asp:View>
<asp:View ID="vwMachine" runat="server">
<table class="table">
<tr>
<td>Machine<br /><telerik:RadComboBox ID="cboMachine" runat="server" DataSourceID="ldsMachine" AllowCustomText="false" DataTextField="Name" DataValueField="ID"></telerik:RadComboBox></td>
</tr>
</table>
</asp:View>
<asp:View ID="vwText" runat="server">
<table class="table">
<tr>
<td>
<asp:label ID="lblTextboxtitle" runat="server"></asp:label><br />
<asp:TextBox ID="txtText" CssClass="fieldInputBox" runat="server" ValidationGroup="textSearch" /><asp:RequiredFieldValidator ID="rvSearchText" runat="server" ControlToValidate="txtText" ErrorMessage="Please enter something to search for." Display="Dynamic" ValidationGroup="textSearch"></asp:RequiredFieldValidator>
</td>
</tr>
</table>
</asp:View>
<asp:View ID="vwECRCategory" runat="server">
<table class="table">
<tr>
<td>ECR category<br /><telerik:RadComboBox ID="cboECRCategory" runat="server" DataSourceID="ldsCategory" AllowCustomText="false" DataTextField="Name" DataValueField="ID" DropDownWidth="200px"></telerik:RadComboBox></td>
</tr>
</table>
</asp:View>
<asp:View ID="vwCAFNumber" runat="server">
<table class="table">
<tr valign="top">
<td>
CAF number<br />
<asp:TextBox ID="txtCAFNumber" CssClass="fieldInputBox" runat="server" />
</td>
<td>
<asp:RadioButtonList ID="rblCAFSearchOptions" runat="server">
<asp:ListItem Text="Search for CAF number" Value="0" Selected="True" />
<asp:ListItem Text="Show all empty CAF numbers" Value="1" />
<asp:ListItem Text="Show all populated CAF numbers" Value="2" />
</asp:RadioButtonList>
</td>
</tr>
</table>
</asp:View>
<asp:View ID="vwUser" runat="server">
<table class="table">
<tr>
<td>Creator<br /><telerik:RadComboBox ID="cboUser" runat="server" DataSourceID="ldsCreators" AllowCustomText="false" DataTextField="Fullname" DataValueField="ID"></telerik:RadComboBox></td>
</tr>
</table>
</asp:View>
<asp:View ID="vwPriorityRange" runat="server">
<table class="table">
<tr>
<td>From<br /><telerik:RadNumericTextBox ID="numFrom" MinValue="0" MaxValue="999" runat="server"></telerik:RadNumericTextBox></td>
<td>To<br /><telerik:RadNumericTextBox ID="numTo" MinValue="0" MaxValue="999" runat="server"></telerik:RadNumericTextBox></td>
</tr>
</table>
</asp:View>
<asp:View ID="vwDepartment" runat="server">
<table class="table">
<tr>
<td>Responsible department<br /><telerik:RadComboBox ID="cboDepartment" runat="server" DataSourceID="ldsDepartment" AllowCustomText="false" DataTextField="Name" DataValueField="ID"></telerik:RadComboBox></td>
</tr>
</table>
</asp:View>
<asp:View ID="vwAllUsers" runat="server">
<table class="table">
<tr>
<td>Who<br /><telerik:RadComboBox ID="cboAllUsers" runat="server" DataSourceID="ldsAllUsers" AllowCustomText="false" DataTextField="Fullname" DataValueField="ID"></telerik:RadComboBox></td>
</tr>
</table>
</asp:View>
<asp:View ID="vwECRStatuses" runat="server">
<table class="table">
<tr>
<td>ECR status<br /><telerik:RadComboBox ID="cboECRStatus" runat="server" DataSourceID="ldsECRStatuses" AllowCustomText="false" DataTextField="Name" DataValueField="ID"></telerik:RadComboBox></td>
</tr>
</table>
</asp:View>
</asp:MultiView>
</div>

<div class="ecrFilterMiddleButton">
<asp:Button ID="btnFilter" runat="server" Text="Search" CssClass="buttonClass" />
</div>
</div>
</div>
</div>

<div class="gridPanelAboveRight">
<table>
<tr>
<td>Items per page</td>
<td>
<telerik:RadComboBox ID="cboEcrsPageSize" runat="server" SkinID="cboPageSize" AutoPostBack="true" CausesValidation="false"></telerik:RadComboBox>
</td>
</tr>
</table>
</div>
<div style="clear: both;"></div>
</div>

<telerik:RadGrid ID="rgEcr" runat="server" DataSourceID="ldsEcr" AutoGenerateColumns="False" AllowPaging="true" PagerStyle-AlwaysVisible="true" AllowSorting="true" EnableTheming="false">
<MasterTableView DataKeyNames="ID" NoMasterRecordsText="There are no matching ECRs. Please click <a href='javascript:AddEcr();'>create originalAttribute="href" originalPath="'javascript:AddEcr();'>create" originalAttribute="href" originalPath="'javascript:AddEcr();'>create" originalAttribute="href" originalPath="'javascript:AddEcr();'>create" originalAttribute="href" originalPath="'javascript:AddEcr();'>create" ECR</a> to create one.">
<Columns>
<telerik:GridHyperLinkColumn UniqueName="ID" DataTextField="ID" DataNavigateUrlFields="ID" HeaderText="ID" SortExpression="ID" />
<telerik:GridBoundColumn UniqueName="CategoryName" DataField="CategoryName" HeaderText="Category" />
<telerik:GridBoundColumn UniqueName="StatusName" DataField="StatusName" HeaderText="Status" />
<telerik:GridBoundColumn UniqueName="StatusReasonName" DataField="StatusReasonName" HeaderText="Review criteria" />
<telerik:GridBoundColumn UniqueName="AssignedToName" DataField="AssignedTo" HeaderText="Assigned To" />
<telerik:GridBoundColumn UniqueName="Title" DataField="Title" HeaderText="Title" />
<telerik:GridBoundColumn UniqueName="PriorityValue" DataField="Priority" HeaderText="Priority" />
<telerik:GridBoundColumn UniqueName="EcnStatusName" DataField="EcnStatusName" HeaderText="ECN Status" SortExpression="EcnStatusName"/>
<telerik:GridBoundColumn UniqueName="CafNumber" DataField="CafNumber" HeaderText="CAF" />
<telerik:GridBoundColumn UniqueName="DateRequired" DataField="DateRequired" DataFormatString="{0:d}" HeaderText="Date required" />
<telerik:GridBoundColumn UniqueName="ReviewRequestFlag" DataField="ReviewRequestFlag" HeaderText="Review request" />
</Columns>
</MasterTableView>
</telerik:RadGrid>


<div class="buttonBar">
<asp:Button ID="btnAddEcr" runat="server" CssClass="buttonClass" Text="Create ECR" OnClientClick="AddEcr(); return false;" />
<asp:Button ID="btnCancel" runat="server" Visible="false" CssClass="buttonClass" Text="Cancel" OnClientClick="location.href=location.href; originalAttribute="href" originalPath="location.href;" originalAttribute="href" originalPath="location.href;" originalAttribute="href" originalPath="location.href;" originalAttribute="href" originalPath="location.href;" return false;" />
</div>

<asp:LinqDataSource ID="ldsEcr" runat="server" ContextTypeName="Sinclair.ECM.WebUI.Model.DBModelDataContext" AutoPage="true" AutoSort="true" ></asp:LinqDataSource>

<asp:LinqDataSource ID="ldsMachine" runat="server" ContextTypeName="Sinclair.ECM.WebUI.Model.DBModelDataContext" TableName="Machines" OrderBy="Name" Where="!ActiveToDateTime.HasValue || ActiveToDateTime > DateTime.Now"></asp:LinqDataSource>
<asp:LinqDataSource ID="ldsCategory" runat="server" ContextTypeName="Sinclair.ECM.WebUI.Model.DBModelDataContext" TableName="Categories" OrderBy="Name"></asp:LinqDataSource>
<asp:LinqDataSource ID="ldsCreators" runat="server" OrderBy="Fullname"></asp:LinqDataSource>
<asp:LinqDataSource ID="ldsDepartment" runat="server" ContextTypeName="Sinclair.ECM.WebUI.Model.DBModelDataContext" TableName="Departments" OrderBy="Name" Where="!ActiveToDateTime.HasValue || ActiveToDateTime > DateTime.Now"></asp:LinqDataSource>
<asp:LinqDataSource ID="ldsAllUsers" runat="server" OrderBy="Fullname"></asp:LinqDataSource>
<asp:LinqDataSource ID="ldsECRStatuses" runat="server" ContextTypeName="Sinclair.ECM.WebUI.Model.DBModelDataContext" TableName="EcrStatus" OrderBy="Name"></asp:LinqDataSource>

<telerik:RadCodeBlock runat="server" ID="rdcEcrs">
<script type="text/javascript">
function AddEcr()
{
location.href="CreateEcr.aspx";
}

function ManageEcr(id)
{
location.href = "ManageEcr.aspx?retUrl=<%=Request.Path %>&retText=Return to list&<%=Constants.QS_ECR_ID%>=" originalAttribute="href" originalPath="CreateEcr.aspx";
}

function ManageEcr(id)
{
location.href = "ManageEcr.aspx?retUrl=<%=Request.Path %>&retText=Return to list&<%=Constants.QS_ECR_ID%>=" originalAttribute="href" originalPath="CreateEcr.aspx";
}

function ManageEcr(id)
{
location.href="ManageEcr.aspx?retUrl=<%=Request.Path %>&retText=Return to list&<%=Constants.QS_ECR_ID%>=" originalAttribute="href" originalPath="ManageEcr.aspx?retUrl=<%=Request.Path %>&retText=Return to list&<%=Constants.QS_ECR_ID%>=" originalAttribute="href" originalPath="CreateEcr.aspx";
}

function ManageEcr(id)
{
location.href="ManageEcr.aspx?retUrl=<%=Request.Path %>&retText=Return to list&<%=Constants.QS_ECR_ID%>=" originalAttribute="href" originalPath="ManageEcr.aspx?retUrl=<%=Request.Path %>&retText=Return to list&<%=Constants.QS_ECR_ID%>=" originalAttribute="href" originalPath="ManageEcr.aspx?retUrl=<%=Request.Path %>&retText=Return to list&<%=Constants.QS_ECR_ID%>=" originalAttribute="href" originalPath="CreateEcr.aspx";
}

function ManageEcr(id)
{
location.href="ManageEcr.aspx?retUrl=<%=Request.Path %>&retText=Return to list&<%=Constants.QS_ECR_ID%>=" originalAttribute="href" originalPath="ManageEcr.aspx?retUrl=<%=Request.Path %>&retText=Return to list&<%=Constants.QS_ECR_ID%>=" originalAttribute="href" originalPath="ManageEcr.aspx?retUrl=<%=Request.Path %>&retText=Return to list&<%=Constants.QS_ECR_ID%>=" originalAttribute="href" originalPath="ManageEcr.aspx?retUrl=<%=Request.Path %>&retText=Return to list&<%=Constants.QS_ECR_ID%>=" + id;
}

// function ManageEcn(id)
// {
// location.href="ManageEcr.aspx?retUrl=<%=Request.Path %>&retText=Return to list&t=2&<%=Constants.QS_ECR_ID%>=" originalAttribute="href" originalPath="ManageEcr.aspx?retUrl=<%=Request.Path %>&retText=Return to list&t=2&<%=Constants.QS_ECR_ID%>=" originalAttribute="href" originalPath="ManageEcr.aspx?retUrl=<%=Request.Path %>&retText=Return to list&t=2&<%=Constants.QS_ECR_ID%>=" originalAttribute="href" originalPath="ManageEcr.aspx?retUrl=<%=Request.Path %>&retText=Return to list&t=2&<%=Constants.QS_ECR_ID%>=" originalAttribute="href" originalPath="ManageEcr.aspx?retUrl=<%=Request.Path %>&retText=Return to list&t=2&<%=Constants.QS_ECR_ID%>=" + id;
// }
</script>
</telerik:RadCodeBlock>
</asp:Content>
Erjan Gavalji
Telerik team
 answered on 25 Sep 2008
5 answers
241 views
I have added a date picker and want to position the button to the left of the input box, so I am using the following markup in my aspx page, but the image button is always displaying to the right of my textbox. Am I missing something?

<telerik:RadDatePicker ID="RadDatePicker2" runat="server" >
<DateInput ID="DateInput2" runat="server" ButtonsPosition="Left"></DateInput>           
</telerik:RadDatePicker>

Falgun
Top achievements
Rank 1
 answered on 25 Sep 2008
2 answers
95 views
Hi,

I have a specific requirement with Grouping RAD AJAX Grid. The child rows under a group header should be selected on click on that group header.

It would be great if any one can please let me know how to achieve the same.

Thanks

Vishal
Vishal
Top achievements
Rank 1
 answered on 25 Sep 2008
2 answers
203 views
Hi,

We are trying to create a solution with a large number of categorized RadDocks. For example it might comprise of 10 categories, each with 10-20 Docks

We currently have the following setup:

A RadDockLayout with Two RadDockZones

<RadDockLayout>
  <RadDockZone1>
    <DropDownList>Category List</DropDownList>
    A number of RadDocks to select from
  </RadDockZone1>
  <RadDockZone2>
    The RadDocks a user would like to have saved in their profile
  </RadDockZone2>
</RadDockLayout>

The top RadDock Zone is populated on Page Load with a number of minimized RadDocks from the first category, the Raddocks can be dragged to the second RadDockZone.

This works perfectly, the layout is saved on postback, and we can save the Layout of RadDockZone2 to the database.

The problem is that when we select a new Category from the list, we would like all of the Docks in RadDockZone1 to be removed, and show only the Docks from the newly selected category. (While maintaining the selection in RadDockZone2)

This seems to be causing a conflict somewhere, I have tried the following:

- Removing the unnecessary RadDocks from the CurrentDockStates collection (in RadComboBox1_SelectedIndexChanged)
- Clearing the DockZOne with RadDockZone1.Docks.Clear (in RadComboBox1_SelectedIndexChanged)

Could you point me in the right direction to achieve something like this?
Marcel
Top achievements
Rank 1
 answered on 25 Sep 2008
1 answer
108 views

Loading information box is not displayed properly on the dropdown boxes in a RadGrid.

When Loading box appears, its partially hidden behind the dropdown box.

Please help.
Sudha

Maria Ilieva
Telerik team
 answered on 25 Sep 2008
1 answer
132 views
When I use the image map tool to create a map and set an area with a url and target it is not saving correctly for me.

The editor (or moss) is not saving the TARGET attribute to the content field.  If I look at the html source before I save the page I see:
<area shape="rect" coords="0,0,27,22" href="http://www.google.com/" target="_blank" />

However, after I save/check-in the page this is what gets rendered:
<area shape="rect" coords="0,0,27,22" href="http://www.google.com/" />

Also, if I look at the source of the field after saving I can see that the target has been removed.

If anyone can make suggestions on what I should try to do to find out why this is happening it would be greatly appreciated.

Thanks,
D
George
Telerik team
 answered on 25 Sep 2008
2 answers
159 views
Is there a way to cancel case sensitivity in Grid Filtering.

I need to be able to get the same result for Laura or laura search for example.

Thanks.
Joseph
Top achievements
Rank 1
 answered on 25 Sep 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?