Telerik Forums
UI for ASP.NET AJAX Forum
8 answers
653 views
Hi,
I have an application with some telerik:RadComboBox and asp:RequiredFieldValidator to validate empty value.  But it's not working and it's not validating.  I checked the radscript manager and I have an error (Error Creating Control).

I had the application with NET Framework 2.0 and I changed to NET Framework 3.5.  I have instaled Telerik ASP NET Q1 2010

Is it compatible that version of telerik with .NET framework 3.5?
What does the problem with combobox validation?

this si my html:

<telerik:RadComboBox ID="lstCountry" runat="server" AutoPostBack="True"
onselectedindexchanged="lstCountry_SelectedIndexChanged" SkinID="DropDownList" 
TabIndex="17" Width="240px"  >
</telerik:RadComboBox>
<asp:RequiredFieldValidator ID="rfvCountry" runat="server" 
   ControlToValidate="lstCountry" ErrorMessage="Country is required" InitialValue=""
SkinID="RequiredFieldValidator" ValidationGroup="vgpSave"  Text="*">
</asp:RequiredFieldValidator>

Regards

Jose
Shinu
Top achievements
Rank 2
 answered on 07 May 2014
5 answers
269 views
When I try to open a radwindow, the border is disappearing...If I use similar code on another page, it works just fine...

See attached image, here is the javascript code:

function ShowEditForm(id, boxid, rowIndex, authToken, apiKey) {

 var grid = $find("<%= radgrid.ClientID %>");
       
        var rowControl = grid.get_masterTableView().get_dataItems()[rowIndex].get_element();
        grid.get_masterTableView().selectItem(rowControl, true);

        var url = 'EditReportPage.aspx?id=' + id + '&boxid=' + boxid + '&authtoken=' + authToken + '&apikey=' + apiKey;

        var wnd = window.radopen(url, "EditReportDueDateData");
        wnd.setSize(550, 300);
        wnd.set_visibleStatusbar(false);
        wnd.center();
        return false;
}


4/13/2012 UPDATE: 
This seems to be happening on IE9.  I hit the page from IE8 and it seems to be working.  With that being said, I have another page with a popup radwindow and it appears just fine using IE9.  I am having this problem just on one page.

Thanks
Mike
Top achievements
Rank 1
 answered on 06 May 2014
9 answers
795 views
Hi,

I am creating a custom control in C#. this control will have a radcomboBox and lable in a html table. When you select an item in the radcomboBox, the selected item text will be diplayed in the lable. But when I try to render, I am getting error.

Page cannot be null. Please ensure that this operation is being performed in the context of an ASP.NET request.

RadComboBox

currencySelector = new RadComboBox();
currencySelector.ID =
"dsfdsf";
//currencySelector.Items.Add(new Telerik.Web.UI.RadComboBoxItem("Australian"));
htmltableCell.Controls.Add(currencySelector);
htmlTableRow.Cells.Add(htmltableCell);
.....
currencyConverterTable.Rows.Add(htmlTableRow)
currencyConverterTable.RenderControl(output);

What am I doing wrong here???

Thanks,

Toby

Marin Bratanov
Telerik team
 answered on 06 May 2014
8 answers
352 views
I am using radgrid in which AllowFilteringByColumn property has set to true,
Filter in GridBoundcolumn Field works fine, but  GridTemplateColumn give error message like

Expression expected

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: Telerik.Web.UI.ParseException: Expression expected

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[ParseException: Expression expected]
   Telerik.Web.UI.ExpressionParser.ParsePrimaryStart() +209
   Telerik.Web.UI.ExpressionParser.ParsePrimary() +36
   Telerik.Web.UI.ExpressionParser.ParseUnary() +365
   Telerik.Web.UI.ExpressionParser.ParseMultiplicative() +54
   Telerik.Web.UI.ExpressionParser.ParseAdditive() +54
   Telerik.Web.UI.ExpressionParser.ParseComparison() +57
   Telerik.Web.UI.ExpressionParser.ParseLogicalAnd() +49
   Telerik.Web.UI.ExpressionParser.ParseLogicalOr() +49
   Telerik.Web.UI.ExpressionParser.ParseExpression() +60
   Telerik.Web.UI.ExpressionParser.ParseArguments() +68
   Telerik.Web.UI.ExpressionParser.ParseArgumentList() +96
   Telerik.Web.UI.ExpressionParser.ParseIif() +58
   Telerik.Web.UI.ExpressionParser.ParseIdentifier() +228
   Telerik.Web.UI.ExpressionParser.ParsePrimaryStart() +65
   Telerik.Web.UI.ExpressionParser.ParsePrimary() +36
   Telerik.Web.UI.ExpressionParser.ParseUnary() +365
   Telerik.Web.UI.ExpressionParser.ParseMultiplicative() +54
   Telerik.Web.UI.ExpressionParser.ParseAdditive() +54
   Telerik.Web.UI.ExpressionParser.ParseComparison() +57
   Telerik.Web.UI.ExpressionParser.ParseLogicalAnd() +49
   Telerik.Web.UI.ExpressionParser.ParseLogicalOr() +49
   Telerik.Web.UI.ExpressionParser.ParseExpression() +60
   Telerik.Web.UI.ExpressionParser.ParseParenExpression() +63
   Telerik.Web.UI.ExpressionParser.ParsePrimaryStart() +136
   Telerik.Web.UI.ExpressionParser.ParsePrimary() +36
   Telerik.Web.UI.ExpressionParser.ParseUnary() +365
   Telerik.Web.UI.ExpressionParser.ParseMultiplicative() +54
   Telerik.Web.UI.ExpressionParser.ParseAdditive() +54
   Telerik.Web.UI.ExpressionParser.ParseComparison() +57
   Telerik.Web.UI.ExpressionParser.ParseLogicalAnd() +49
   Telerik.Web.UI.ExpressionParser.ParseLogicalOr() +49
   Telerik.Web.UI.ExpressionParser.ParseExpression() +60
   Telerik.Web.UI.ExpressionParser.Parse(Type resultType) +58
   Telerik.Web.UI.DynamicExpression.ParseLambda(ParameterExpression[] parameters, Type resultType, String expression, Object[] values) +81
   Telerik.Web.UI.DynamicExpression.ParseLambda(Type itType, Type resultType, String expression, Object[] values) +114
   Telerik.Web.UI.GridDynamicQueryable.Where(IQueryable source, String predicate, Object[] values) +187
   Telerik.Web.UI.GridDataTableFromEnumerable.FillData35() +3696
   Telerik.Web.UI.GridDataTableFromEnumerable.FillData() +1010
   Telerik.Web.UI.GridResolveEnumerable.Initialize() +55
   Telerik.Web.UI.GridResolveEnumerable.EnsureInitialized() +40
   Telerik.Web.UI.GridResolveEnumerable.get_DataTable() +31
   Telerik.Web.UI.GridEnumerableFromDataView..ctor(GridTableView owner, IEnumerable enumerable, Boolean CaseSensitive, Boolean autoGenerateColumns, GridColumnCollection presentColumns, String[] additionalField, Boolean retrieveAllFields) +222
   Telerik.Web.UI.GridDataSourceHelper.CreateGridEnumerable(GridTableView owner, IEnumerable enumerable, Boolean caseSensitive, Boolean autoGenerateColumns, GridColumnCollection presentColumns, String[] additionalField, Boolean retrieveAllFields) +155
   Telerik.Web.UI.GridDataSourceHelper.GetResolvedDataSource(GridTableView owner, Object dataSource, String dataMember, Boolean caseSensitive, Boolean autoGenerateColumns, GridColumnCollection presentColumns, String[] additionalField, Boolean retrieveAllFields) +165
   Telerik.Web.UI.GridTableView.get_ResolvedDataSource() +219
   Telerik.Web.UI.GridTableView.CreateChildControls(IEnumerable dataSource, Boolean useDataSource) +73
   System.Web.UI.WebControls.CompositeDataBoundControl.PerformDataBinding(IEnumerable data) +57
   System.Web.UI.WebControls.DataBoundControl.OnDataSourceViewSelectCallback(IEnumerable data) +114
   System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback) +31
   System.Web.UI.WebControls.DataBoundControl.PerformSelect() +142
   Telerik.Web.UI.GridTableView.PerformSelect() +28
   System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +73
   Telerik.Web.UI.GridTableView.DataBind() +353
   Telerik.Web.UI.GridTableView.Rebind() +98
   Telerik.Web.UI.GridFilterCommandEventArgs.ExecuteCommand(Object source) +1002
   Telerik.Web.UI.RadGrid.OnBubbleEvent(Object source, EventArgs e) +191
   System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +37
   Telerik.Web.UI.GridItem.OnBubbleEvent(Object source, EventArgs e) +61
   System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +37
   Telerik.Web.UI.GridItem.OnBubbleEvent(Object source, EventArgs e) +165
   Telerik.Web.UI.GridItem.FireCommandEvent(String commandName, Object commandArgument) +80
   Telerik.Web.UI.RadGrid.RaisePostBackEvent(String eventArgument) +8937
   System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
   System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +175
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1565

I am using folllowing code

 

<telerik:RadGrid ID="grdBusiness" runat="server" AutoGenerateColumns="False" AllowFilteringByColumn="True"

 

 

OnNeedDataSource="grdBusiness_NeedDataSource" BorderWidth="0px"

 

 

BorderStyle="None" OnItemCreated="grdBusiness_ItemCreated" AllowPaging="True"

 

 

PageSize="20" Width="930px">

 

 

<MasterTableView DataKeyNames="UserId" AllowFilteringByColumn="true">

 

 

<Columns>

 

 

<telerik:GridTemplateColumn HeaderText="Practice Name">

 

 

<ItemTemplate>

 

 

<asp:HyperLink ID="hypPratice" runat="server" Text='<%# Bind("PracticeName") %>'

 

 

Target="_blank"></asp:HyperLink>

 

 

</ItemTemplate>

 

 

</telerik:GridTemplateColumn>

 

 

<telerik:GridTemplateColumn HeaderText="Name">

 

 

<ItemTemplate>

 

 

<asp:Label ID="lblName" runat="server" Text='<%# Eval("FirstName")+" "+Eval("LastName") %>'></asp:Label>

 

 

</ItemTemplate>

 

 

</telerik:GridTemplateColumn>

 

 

<telerik:GridBoundColumn DataField="Email" HeaderText="Email Id" AllowFiltering="true">

 

 

</telerik:GridBoundColumn>

 

 

<telerik:GridBoundColumn DataField="Phone" HeaderText="Phone No">

 

 

</telerik:GridBoundColumn>

 

 

<telerik:GridBoundColumn DataField="Website" HeaderText="Website">

 

 

</telerik:GridBoundColumn>

 

 

<telerik:GridTemplateColumn HeaderText="Lic No" AllowFiltering="false">

 

 

<ItemTemplate>

 

 

<asp:Label ID="lblLicenseNo" runat="server"></asp:Label>

 

 

</ItemTemplate>

 

 

</telerik:GridTemplateColumn>

 

 

<telerik:GridTemplateColumn AllowFiltering="false" HeaderText="Exp">

 

 

<ItemTemplate>

 

 

<asp:Label ID="lblTotalExp" runat="server"></asp:Label>

 

 

</ItemTemplate>

 

 

</telerik:GridTemplateColumn>

 

 

<telerik:GridTemplateColumn HeaderText="Plan Name" AllowFiltering="false">

 

 

<ItemTemplate>

 

 

<div>

 

 

<div>

 

 

<asp:Label ID="lblPlanName" runat="server"></asp:Label>

 

 

</div>

 

 

<asp:HyperLink ID="hypFreeLifeTime" runat="server"></asp:HyperLink>

 

 

</div>

 

 

</ItemTemplate>

 

 

</telerik:GridTemplateColumn>

 

 

</Columns>

 

 

</MasterTableView>

 

 

<HeaderStyle CssClass="ItemAlignment" Font-Names="Arial" />

 

 

<ItemStyle CssClass="ItemAlignment" />

 

 

<AlternatingItemStyle CssClass="ItemAlignment" />

 

 

</telerik:RadGrid>

 


it means when filter apply on PracticeName and name field each time the above message display,
what i have done worng, i m not analyzing ,
pz ry..............
neb
Top achievements
Rank 1
 answered on 06 May 2014
5 answers
296 views
I have a Telerik Rad Grid With Template Columns. From one of this column i used  texbox as item template. And write onblur client side event to validate the input. On that event i need to set focus to that textbox.How?
Gowtham
Top achievements
Rank 1
 answered on 06 May 2014
4 answers
164 views
I am working with the radscheduler. On the advanced Edit screen resource radcombobox text cut off despite I made the width big enough not to do this.  Please help me to fox this issue ASAP.  Thank
Nencho
Telerik team
 answered on 06 May 2014
2 answers
111 views
Hi, i added a GridButtonColumn to my grid in the Page_Load event:

GridButtonColumn colEdit = new GridButtonColumn();
colEdit.UniqueName = "Edit";
colEdit.HeaderText = "Edit";
colEdit.Text = "Edit";
RadGrid1.MasterTableView.Columns.Add(colEdit);

When i click on it, i handle the RadGrid1_ItemCommand event:

 protected void RadGrid1_ItemCommand(object sender, GridCommandEventArgs e)
 {
if (e.CommandName == "Edit")
...
...
}


After the event the GridButtonColumn is empty, why?
Other problem is that the e.CommandName is alway empty, why?

TT
Top achievements
Rank 1
 answered on 06 May 2014
5 answers
204 views
I have a page with a RadGrid that works PERFECT! Only problem is the CSS for the grid seems to hide the filter buttons unless the window is maximized - anyway around this?
Niko
Telerik team
 answered on 06 May 2014
2 answers
94 views
Hi , 

I want exactly like the attach file. Demos of tab strip dint match with this. Please suggest me some ideas

Thanks and regards,
Anuja.J
Shinu
Top achievements
Rank 2
 answered on 06 May 2014
4 answers
228 views
My grid binds to a huge set of data. 
For performance reasons, we decided to request only visible elements from SQL server. 
Therefore, we need to filter server side.

The filter icon has to be hidden so we are currently setting AutoPostBackOnFilter to true.
Clients are not happy with this solution because of the flickering.
They want to enter all their filter criteria in each column, then hit an Apply Filter button.

I have a screenshot showing what they want.
I tested many solutions, but none of them were satisfying.  Is there an easy way to do it ?
Veronique
Top achievements
Rank 1
 answered on 06 May 2014
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?