Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
59 views
I would like to select a record in a paged grid.  The code works fine if the URL value is on the first set of the paged items but not if its on any of the paged data.  (I would like to pass thru a value and then have the grid select the value on the specific page of the data set).


foreach (GridDataItem item in RelatedContactsGrid.MasterTableView.Items)
                {
                    if (item.GetDataKeyValue("ContactTyparID").ToString() == ContactId.ToString())
                    {
                        item.Selected = true;
                    }
                }
Eyup
Telerik team
 answered on 09 Oct 2014
3 answers
134 views
I need to run some light JavaScript when the NoRecordsTemplate kicks in for a RadGrid (when there are no records in the DataSource) anywhere across a web application.


Since I didn't find an analogous client side API method built in for this, I thought this would still be pretty easy by using the OnGridCreating event handler to add a function that runs later (following page load) & includes a conditional that checks for data items or something similar.


Surprisingly, I'm finding the OnGridCreating event is not firing when the NoRecordsTemplate kicks in when hooked up via the grids' ClientSettings.  Should it?  (Note : when the NoRecordsTemplate does not kick in the OnGridCreating 
get fired as expected & function runs normally/as expected)

I can understand why OnGridCreated possibly wouldn't fire in a no records situation, but it seems like OnGridCreating should fire regardless of if the grid ends up having records or no records.

I'm also open to other approaches if this turns out to be a 'working as designed not as desired' situation.
Viktor Tachev
Telerik team
 answered on 09 Oct 2014
7 answers
218 views
I have a problem with autocorrect functionality of RadDatePicker control. When I manually type invalid date '29-02-2010' (no such date this year) it is automatically changed to '28-02-2010', without any notice. It might be confusing for users, so I would rather like to display validation message and let users correct themselves. However, I cannot find a way to turn autocorrection off. I would be most grateful for any tips.
Viktor Tachev
Telerik team
 answered on 09 Oct 2014
1 answer
80 views
Hi all!

I only want compare data from data Original with new value input from control textarea. I have a problem about enter key. So method _get_newValue() generator Enterkey different with method _get_value()???
Please complain for me about problem!
Tks all!

data for _get_value() method:
""><script>alert('xss')</script>
↵
↵<script>alert('xss')</script>"

data for _get_newValue() method:
""><script>alert('xss')</script>↵↵<script>alert('xss')</script>"


Maria Ilieva
Telerik team
 answered on 09 Oct 2014
1 answer
294 views
Hi

I need to help, I use the control  radwindow but I  set the property 'width' with unit of percentaje 100 %


Regards & greats
Marin Bratanov
Telerik team
 answered on 09 Oct 2014
1 answer
98 views
Hi

We have a problem with the today link not showing.

We are using a webbrowser controll called chromium to capture and run a page in Windows form. Chromium is using chrome18 engine to run.
I Spooned the page with a standalone webbrowser of chrome 18, And I get the same problem. Do you know of a way to hot fix this without upgrading Chrome version.

Attach a pic to show

oh by the way thanks for an awesome product!
Peter Filipov
Telerik team
 answered on 09 Oct 2014
1 answer
138 views
Hi, 

  I'm working with Telerik v.2011.2.915.35, and tried example from RadEditor Demo.
  But I can't show the toolbars and editor mode buttons of RadEditor with android/ios system, only the text area. With desktop, it displays as it should be.

  If I use newer v.2014.2.724.35. Everything works fine.

  My question is: 
      Is that v.2011.2.915.35 doesn't support for android/ios and is there any way to display RadEditor as it should be with v.2011.2.915.35 on different devices?

Thanks and Regards,  
Thuy
Top achievements
Rank 1
 answered on 09 Oct 2014
2 answers
227 views
I am defining a RadGrid in a user control with the following definition in the .ascx:

<telerik:RadGrid ID="grid1" OnNeedDataSource="grid1DS" PageSize="20" AllowPaging="True" AutoGenerateColumns="False"
    AllowSorting="True" CellSpacing="-1" GridLines="Both" Style="text-align: left;" OnSelectedIndexChanged="grid1_SelectedIndexChanged"
    AllowFilteringByColumn="True" EnableViewState="true" runat="server">
    <MasterTableView EnableColumnsViewState="true"></MasterTableView>
    <PagerStyle Mode="NextPrevAndNumeric" HorizontalAlign="Left" />
    <ClientSettings EnableRowHoverStyle="true" EnablePostBackOnRowClick="true">
        <Resizing AllowColumnResize="True" AllowRowResize="false" ResizeGridOnColumnResize="true"
            ClipCellContentOnResize="false" EnableRealTimeResize="true" AllowResizeToFit="true" />
        <Selecting AllowRowSelect="True" />
    </ClientSettings>
</telerik:RadGrid>

I am dynamically creating and adding each column with this:

Dim dscol As DataColumn
Dim col As Telerik.Web.UI.GridBoundColumn

...

col =
New GridBoundColumn()
col.DataField = dscol.ColumnName
col.UniqueName = dscol.ColumnName
col.HeaderText = dscol.ColumnName
col.Resizable = True
col.SortExpression = col.DataField
col.AllowFiltering = True
grid1.Columns.Add(col)

This creates a mostly working grid. The problem is that on the call to the grid1DS data source, a filter expression is returned with an empty expression for the DataField value (e.g. filtering on a name field for "Contains" John):

(it[""].ToString().Contains("John"))

Normally, it[""] would be it["DataField identifier"].  So apparently the DataField isn't being properly set in the browser, despite being properly defined in the code above (confirmed by breakpoints.) 

So - thoughts, solutions? 




Konstantin Dikov
Telerik team
 answered on 08 Oct 2014
3 answers
374 views
I have a RadGrid with Filters.  The user can browse to another page (details page) from the page with the RadGrid.  When the user returns I restore the filters to their state when the user browsed away.  This is done via Session data.

The search criteria is restored along with the filter values.  The data is read from the datbase and all is well except that the FILTERs were not honored.In other words, all records are displayed that meet the search criteria, but the filters are not applied.

I think I need to cause a filter event to fire, as if the user had clicked the filter ICON.  How do I cause this to happen?

Thanks for your help.


Konstantin Dikov
Telerik team
 answered on 08 Oct 2014
2 answers
143 views
Hi,
 Simple question - can you tell me if the Telerik ASP.Net Editor is available in SharePoint online? I've grown used to it in our on premise MOSS environment and love it, but we're moving to new technology and nothing is returning on an App Store search for 'Telerik'
Thanks,
Jason.
Jason Brownhill
Top achievements
Rank 1
 answered on 08 Oct 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?