Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
211 views
I have been trying to programmatically add a RequiredFieldValidator to an auto-generated GridDropDownColumn, but have been unsuccessful.  

Has anyone tried doing this, and if so could you provider any pointers.

I have 2 use cases:

  1. Dropdown is pre-populated with values.  First being a "Please select a choice" item.   By not setting a selected value this is the default value, and I want to verify that a different choice has been made.
  2. Dropdown list has no items in it, and I do not want to allow an insert/update to happen in this case.

Thanks in advanced for any help.

-Steve

misha
Top achievements
Rank 1
 answered on 25 Feb 2014
2 answers
526 views

Hi ,

I have one telerik modal popup window in which I am loading some event, after session timeout occurs, page in the modal pop window redirects to login page.

What I want achieve is, On session Expiration modal window should disappear and parent page should be redirected to login page.

Any views on this.... attached is the snap?

Amanda
Top achievements
Rank 1
Iron
 answered on 25 Feb 2014
2 answers
161 views
Hi,
I have an issue when running RadGrid in IE8 where the columns are not aligned properly when I group on one or more columns.  When I don't have any grouping in the grid, then the column headers are aligned correctly with the rows.  See Screenshot 01.jpg.  However, if I put a column in the 'group by' then the column headers are off.  See Screenshot 02.jpg.  Please advise if anyone has seen this before and if there is a resolution.
Galin
Telerik team
 answered on 25 Feb 2014
1 answer
88 views
Hello team,
 

We are using radeditor control for Viewing files and Images on server path through Image Manager and Document Manager link .
Now , I want to view these files through another controls i.e- ellipse button ,
 so for this i see the demo of " FileExplorer - File Selector Dialog " on link http://demos.telerik.com/aspnet-ajax/fileexplorer/examples/client-sideapi/fileselectordialog/defaultcs.aspx

its good, but my requirement is that i want to implement with ellipse button, how can i change the look of FileExplorer - File Selector Dialog control. i have attached my image for browsing files.
Thanks in advance.
Vessy
Telerik team
 answered on 25 Feb 2014
4 answers
70 views
Hi Guys,

I have a rad rotator in a rad notification. This rad notification is included in a panel which can be updated after an ajax request. If so, the radrotator is not displaying the content anymore.
i saw that 
http://www.telerik.com/help/aspnet-ajax/rotator-coverflow-animation-and-ajax.html
saying you need to register the script in the code behind.

I have not been able to translate my parameters to have a persistent radrotator. Could you please help me? here is my radrotator:
<telerik:RadRotator ID="rrTest" runat="server" WrapFrames="true"
                                        Width="708" height="17" ScrollDirection="Left" ScrollDuration="19000"
                                        FrameDuration="0" RotatorType="AutomaticAdvance" ItemHeight="15px" ItemWidth="1450" >
                                        <ItemTemplate>
                                            <div style="">
                                                <% Response.Write(mystring); %>
                                            </div>
                                        </ItemTemplate>
                                    </telerik:RadRotator>


Thank you
Gregory
Greg
Top achievements
Rank 1
 answered on 25 Feb 2014
10 answers
3.6K+ views
Hi,

Bit of a long shot this, but here we go. It's more of a generic Javascript issue than a problem with the Telerik controls, although I am using the controls.

I have a problem where when I try to $find a telerik control in an ASP.NET user control it is always returned as null. However, if I $get this control using the same ID then a HTML Input Object is returned. I've tried using the $find function on a stand alone page and it works fine with either:

var control = $find("controlID") 
 
or 
 
var control = $find('<%= controlID.ClientID %>'); 

The ID of the control I am looking for is rendered like this in the HTML:

ctl00_ucRTKTemplate_ctl04_ctl00_cmFileView

ucRTKTemplate being an ASP.NET user control that loads another ASP.NET user control that contains the Telerik context menu I am attempting to find. If I type the above ID directly into the $find function then I do find the control, but obviously I would like to be able to find this control dynamically.

Any ideas?

Thanks,

Michael


Phil
Top achievements
Rank 2
 answered on 25 Feb 2014
2 answers
88 views
Hi,
    I got licensed version of 2013 Rad Grid. While it works fine in a test project. When I use the same demo code, On databind, in my application, I get an exception like below. I checked and rechecked any differences between the demo project and my application. There seems to be no difference at all. I used the same dummy datasource like in the Demo project, still I get the error. Any help is appreciated.

Telerik.Web.UI.ParseException: Syntax error '#'    at Telerik.Web.UI.ExpressionParser.NextToken()     at Telerik.Web.UI.ExpressionParser..ctor(ParameterExpression[] parameters, String expression, Object[] values)     at Telerik.Web.UI.DynamicExpression.ParseLambda(ParameterExpression[] parameters, Type resultType, String expression, Object[] values)     at Telerik.Web.UI.DynamicExpression.ParseLambda(Type itType, Type resultType, String expression, Object[] values)     at Telerik.Web.UI.GridDynamicQueryable.Where(IQueryable source, String predicate, Object[] values)     at Telerik.Web.UI.GridDataTableFromEnumerable.FillData35()     at Telerik.Web.UI.GridDataTableFromEnumerable.FillData()     at Telerik.Web.UI.GridResolveEnumerable.Initialize()     at Telerik.Web.UI.GridResolveEnumerable.EnsureInitialized()     at Telerik.Web.UI.GridEnumerableFromDataView..ctor(GridTableView owner, DataView dataView, Boolean autoGenerateColumns, GridColumnCollection presentColumns, String[] additionalField, Boolean retrieveAllFields, Boolean enableSplitHeaderText)     at Telerik.Web.UI.GridDataSourceHelper.CreateGridEnumerable(GridTableView owner, IEnumerable enumerable, Boolean caseSensitive, Boolean autoGenerateColumns, GridColumnCollection presentColumns, String[] additionalField, Boolean retrieveAllFields, Boolean enableSplitHeaderText)     at Telerik.Web.UI.GridDataSourceHelper.GetResolvedDataSource(GridTableView owner, Object dataSource, String dataMember, Boolean caseSensitive, Boolean autoGenerateColumns, GridColumnCollection presentColumns, String[] additionalField, Boolean retrieveAllFields, Boolean enableSplitHeaderText)     at Telerik.Web.UI.GridTableView.get_ResolvedDataSource()     at Telerik.Web.UI.GridTableView.CreateChildControls(IEnumerable dataSource, Boolean useDataSource)     at System.Web.UI.WebControls.CompositeDataBoundControl.PerformDataBinding(IEnumerable data)     at System.Web.UI.WebControls.DataBoundControl.OnDataSourceViewSelectCallback(IEnumerable data)     at System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback)     at System.Web.UI.WebControls.DataBoundControl.PerformSelect()     at Telerik.Web.UI.GridTableView.PerformSelect()     at System.Web.UI.WebControls.BaseDataBoundControl.DataBind()     at Telerik.Web.UI.GridTableView.DataBind()     at Telerik.Web.UI.RadGrid.DataBind()     at Telerik.Web.UI.RadGrid.AutoDataBind(GridRebindReason rebindReason)     at Telerik.Web.UI.RadGrid.OnLoad(EventArgs e)     at System.Web.UI.Control.LoadRecursive()     at System.Web.UI.Control.LoadRecursive()     at System.Web.UI.Control.LoadRecursive()     at System.Web.UI.Control.LoadRecursive()     at System.Web.UI.Control.LoadRecursive()     at System.Web.UI.Control.LoadRecursive()     at System.Web.UI.Control.LoadRecursive()     at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
Pavlina
Telerik team
 answered on 25 Feb 2014
3 answers
163 views
I have a RadNumericTextBox in a RadGrid.  I'm using the OnClientValueChanging event to validate the numeric value (I have to do a calculation).  It works great, except when I'm editing in the RadGrid, and I change the value to an undesired value, and I click the Update ImageButton, the OnClientValueChanging event is not raised.  It just posts back and updates the row.

Any idea how I can raise the OnClientValueChanging event before the Update button posts back?
Gaurab
Top achievements
Rank 1
 answered on 25 Feb 2014
3 answers
225 views
Hi,

I using getElementPosition() method of RadTimePicker client side api. After I update version to (2013.1.220.45 ) I get an error showing that  method does not exist for the object object. Then I tried to use getLocation() method but errors still the same. Can anybody help me how to solve that errors?

In ASPX
(
 <telerik:RadDatePicker ID="RadDatePicker1" DateInput-DateFormat="dd/MM/yyyy" Style="display: none;" MinDate="01/01/1900" MaxDate="12/31/2100" runat="server">
                <ClientEvents OnDateSelected="dateSelected" />
            </telerik:RadDatePicker>
            <telerik:RadGrid ID="grdHoliday" EnableViewState="true" runat="server" OnNeedDataSource="grdHoliday_NeedDataSource">
                <MasterTableView AutoGenerateColumns="False" DataKeyNames="HolidayKey" ClientDataKeyNames="HolidayKey">
                    <Columns>
                        <telerik:GridBoundColumn  DataField="HolidayKey" Display="false" ></telerik:GridBoundColumn>
                        <telerik:GridTemplateColumn HeaderText="Holiday" UniqueName="Holiday1" SortExpression="Holiday1">
                            <ItemTemplate>
                                <asp:TextBox ID="txtHoliday" Width="100%" runat="server" Text='<%#DataBinder.Eval(Container, "DataItem.Holiday1")%>'></asp:TextBox>
                            </ItemTemplate>
                            <HeaderStyle Width="70%" />
                        </telerik:GridTemplateColumn>
                        <telerik:GridTemplateColumn HeaderText="HolidayDate" UniqueName="HolidayDate" SortExpression="HolidayDate">
                            <ItemTemplate>
                                <asp:TextBox ID="TextBox1" Width="100px" Text='<%# Eval("HolidayDate", "{0:dd/MM/yyyy}") %>'  runat="server"
                                             onclick="showPopup(this, event);" onfocus="showPopup(this, event);" onblur="parseDate(this, event)">
                                </asp:TextBox>
                                <asp:Image ID="popupImage" runat="server" ImageUrl="../Contents/Images/datePickerPopup.gif" 
                                           AlternateText="Click to open Calendar popup" onclick="showPopup(this, event)" />
                            </ItemTemplate>
                            <HeaderStyle Width="30%" />
                        </telerik:GridTemplateColumn>
                    </Columns>
                    <CommandItemStyle />
                </MasterTableView>
                <ClientSettings>
                    <Selecting AllowRowSelect="true" />
                    <Scrolling AllowScroll="True" UseStaticHeaders="True"   ScrollHeight="450px"
                               SaveScrollPosition="true" FrozenColumnsCount="1" >
                    </Scrolling>
                </ClientSettings>
            </telerik:RadGrid>
)

In Script
(
  var currentTextBox = null;
            var currentDatePicker = null;

            function showPopup(sender, e) {
                currentTextBox = sender.tagName == "INPUT" ? sender : $telerik.getPreviousHtmlNode(sender);
                var datePicker = $find("<%= RadDatePicker1.ClientID %>");
                currentDatePicker = datePicker;
                datePicker.set_selectedDate(currentDatePicker.get_dateInput().parseDate(currentTextBox.value));
                //var position = datePicker.getElementPosition(currentTextBox);
                var position = datePicker.getLocation(currentTextBox);
                datePicker.showPopup(position.x, position.y + currentTextBox.offsetHeight);
            }
            function dateSelected(sender, args) {
                if (currentTextBox != null) {
                    currentTextBox.value = args.get_newValue();
                    TextBoxChanged(currentTextBox);
                }
            }
            function parseDate(sender, e) {
                if (currentDatePicker != null) {
                    var date = currentDatePicker.get_dateInput().parseDate(sender.value);
                    var dateInput = currentDatePicker.get_dateInput();

                    if (date == null) {
                        date = currentDatePicker.get_selectedDate();
                    }
                    var formattedDate = dateInput.get_dateFormatInfo().FormatDate(date, dateInput.get_displayDateFormat());
                    sender.value = formattedDate;
                }
            }
)

Thanks & Best Regards
HAN




Konstantin Dikov
Telerik team
 answered on 25 Feb 2014
3 answers
118 views
Hello,

I'm using a client template in a search box. The box is bound to a web service and the template looks like this:
<div class="searchResult">
      <div style="font-weight:bold;">#= Text #</div>
      <div style="font-size:.8em; font-style:italic;">#= DataItem.notes #</div>
</div>

Things are working just fine in Chrome and IE but, in Firefox, I'm getting an error in firebug that the DataItem is not defined:

Sys.InvalidOperationException: Sys.InvalidOperationException: Error rendering template: DataItem is not defined. There's no reason why the web service would return the dataitem for Chrome and IE but not firefox... right?

Any ideas?

Thanks,

Mike
Mike
Top achievements
Rank 1
 answered on 25 Feb 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?