Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
63 views
Hi,

I have a Grid which was previously not Ajaxified. The number of rows shown in the grid could change easily during a full post back.

We now want to show only 1 row, with further rows being added as the browser scrollbar reaches the bottom of the page. I have this working fine, but as the datasource is a System.Data.DataTable, the table is recreated during the callback (with one more row than before), and the Grid is then rebound.

It all works well... but the downside is that the complete Grid is re-rendered, rather than just a single row being inserted. This problem is amplified by the fact that each row is actually an iFrame which pulls its content from another page, so the total page vertical size jumps back and forth each time a new row is added, as the row height for each Grid row grows as its iFrame content is loaded.

What I want to achieve, from the viewers perspective, is the already loaded rows do not appear to be re-rendered... simply a new row was added and the page height grows once by the height of the newly added iFrame.

Can I achieve this with RadGrid? I will probably remove the iFrames and load the content into the Grid directly. They were added initially to speed up initial page load where the Grid contained many rows. Now that the rows are added one by one as the user scrolls, this page load time is no longer an issue. This would stop the page height bouncing all over the place, but will not stop the complete Grid being re-rendered each time a new row is added.

Thanks.
Konstantin Dikov
Telerik team
 answered on 17 Feb 2014
2 answers
82 views
Hi,
    Is it possible to modify "More..." text in Month view.
 When we have many appointments then we get this text at the bottom, I want to modify it from server side so that I can put number of appointments in per day.

Thank you.
Lakpa
Top achievements
Rank 1
 answered on 17 Feb 2014
2 answers
62 views
RadButtons on ASP.NET are displaying with a weird bumped top left side. It's more obvious on certain skins than others but I want to know how to fix this. I don't know if it's something in my CSS causing it or some obscure setting I can adjust.

Screenshot attached.
David
Top achievements
Rank 1
 answered on 17 Feb 2014
2 answers
233 views
Hi!

I have a simple aspx page, containing one button and one combobox:

    <section id="content" class="content">     
        <article id="actions">
            <telerik:RadButton ID="btnNewEvent" runat="server" RenderMode="Lightweight"
                Text="<%$ Resources:App,NewEvent %>" AutoPostBack="false"
                OnClientClicked="btnNewEvent_Clicked">
            </telerik:RadButton>
        </article>
        <article id="search" class="search">
            <telerik:RadComboBox ID="cmbxSearch" runat="server" RenderMode="Lightweight"
                CssClass="search-field" EmptyMessage="<%$ Resources:App,SearchFieldEmptyMessage %>"
                AllowCustomText="true" EnableLoadOnDemand="True" MarkFirstMatch="false"
                OnClientLoad="cmbxSearch_Load"
                OnClientSelectedIndexChanged="cmbxSearch_SelectedIndexChanged">
            </telerik:RadComboBox>
        </article>
    </section>

Javascript:

function btnNewEvent_Clicked(s, e) {
    alert("TODO: Open RAD window");
}

function cmbxSearch_Load(s, e) {
    var input = s.get_inputDomElement();
    input.focus();
}

function cmbxSearch_SelectedIndexChanged(s, e) {
    alert("TODO: Search");
}

If I press on btnNewEvent, alert saying "TODO: Open RAD window" is displayed, which is correct.
If I type some text into cmbxSearch (RadComboBox), in Firefox browser, I get two alerts. First one is saying "TODO: Open RAD window", the other one "TODO: Search". Why is button event triggered on enter key pressed? In IE, everything works as expected.

I am using Windows 8 with IE 10 and Firefox 26 and telerik UI controls v2013.2.717.40.
Vlad
Top achievements
Rank 1
 answered on 17 Feb 2014
1 answer
50 views
Hi All,

I have an entirely code-behind, C#, RadGrid in a SharePoint web part.  

It needs to be able to switch between tables in a SQL database through the use of a drop-down list (containing the table names), and I have implemented this functionality by storing/retrieving the value of the drop-down list in a Page.Session variable.

The SqlDataSource and RadGrid are both built in CreateChildControls based upon the selected SQL Table from the drop-down list.  The RadGrid is manually built based upon the DataView/Table acquired through the SqlDataSource with GridBoundColumns, GridDateTimeColumns and Google-Like Filtering Columns based upon the datatype of the field/column.

When the drop-down list's value is changed that value is stored in a Page.Session variable and a response.redirect is called, refreshing the entire page, retrieving the selected SQL Table from the Page.Session variable and therefore building a new SqlDataSource and RadGrid with the new Table data.

This works well, but causes issues when multiple tabs/browser windows are open at the same time.  Since I use Page.Session to store the drop-down list value all of the tabs/browsers open will be of the same table on a per User basis, and they would like to ensure that each tab/window is unique.

Is there a better way of implementing this?

Thanks,
Mark




Angel Petrov
Telerik team
 answered on 17 Feb 2014
1 answer
38 views

Hello Friends,...


One more issue with file explorer


here is ->  When i click any row of grid or by mistake  i click on any row and move mouse any where in screen selected row also moving with  cursor

             ->  Same as in Thumbnail view i have attach one image so u can get more idea about it


Thanks in Advance
Vessy
Telerik team
 answered on 17 Feb 2014
2 answers
128 views
hi
i have a radbinary image:
<telerik:RadBinaryImage ID="RadBinaryImage1" runat="server" Width="340px"
               Height="340px" AutoAdjustImageControlSize="False" ResizeMode="Fit"/>
and show images dynamically:
Protected Sub RadButton2_Click(sender As Object, e As EventArgs) Handles RadButton2.Click
 
      Dim fac As printeryFalow = Session("invoiceData")
      RadBinaryImage1.ImageUrl = physicalToVirtualAddress(MsccRemoteProxyServer.clsGivers.getJpeg(fac.printeryInvoiceId))
      
  End Sub
but always showing all images in stretch mode. i want to show images in true ratio. i tested all options in resizemode property, but every options work the same.
Shinu
Top achievements
Rank 2
 answered on 17 Feb 2014
2 answers
94 views
It seems that the persistance framework (for RadGrid at least) saves the .dll version info together with the grid settings:

<ControlSetting>
  <Name>MasterTableView.ColumnSettings</Name>
  <Value Type="System.Collections.Generic.List`1[[Telerik.Web.UI.GridTableView+PersistableColumnSetting, Telerik.Web.UI, Version=2013.3.1015.45, Culture=neutral, PublicKeyToken=121fae78165ba3d4]]">

I think this poses a major issue because when you update the DLL all the users who have their saved settings like that will receive an exception for the version mismatch.
Massimiliano
Top achievements
Rank 1
 answered on 17 Feb 2014
6 answers
346 views

I have a radscheduler on my page. I want to adjust the height of the appointment. I played with the rowheight parameter and adaptiverowheight parameter but nothing seems to change.


<telerik:RadScheduler ID="radScheduler" runat="server" OnLoad="radScheduler_Load" SelectedView="MonthView"
                DataKeyField="AppointmentID" DataSubjectField="AppointmentInformation" DataStartField="BeginningDayDate" DataEndField="EndingDayDate" Height="700px"
                OnAppointmentCreated="radScheduler_AppointmentCreated" OnAppointmentInsert="radScheduler_AppointmentInsert" OnAppointmentUpdate="radScheduler_AppointmentUpdate" 
                OnAppointmentDelete="radScheduler_AppointmentDelete" Font-Bold="true" ShowHeader="true" OnClientAppointmentClick="OnClientAptClick" 
                OnClientAppointmentEditing="OnClientAptEditing" 
                OnAppointmentClick="radScheduler_AppointmentClick" AllowInsert="false" RowHeight="10px" AppointmentStyleMode="Default">
<MonthView HeaderDateFormat="MMMM yyyy" VisibleAppointmentsPerDay="30" AdaptiveRowHeight="false"  />

Why is this not changing? What am i missing?If you need more info,please ask.Thanks. The telerik version is : 2013.1.417.40
EDIT: I got some of it working by modifying the css. But I ended up with not the desired result.Please see attached image. As you can see there are 3 appointments for 22nd Day. But there is space between them. I want them to be adjacent to each other. How do i do that?
Plamen
Telerik team
 answered on 17 Feb 2014
5 answers
256 views
I'm trying to use a plugin for masked input. The issue I'm facing is: Uncaught ReferenceError: jQuery is not defined
I'm using v. 2013.3.1324

I add the script from a user control that way:

' On control page init                   
 
CoreHelpers.AddControlScript(Parent.Page.ClientScript, "admin/jquery.inputmask.bundle.min.js", String.Format("{0}admin/jquery.inputmask.bundle.min.js?v={1}", LinkHelpers.VLink(LinkType.Script), AppSettings.StaticFilesVersion))
 
' Wich calls this function so not to add duplicate scripts
 
        Public Shared Function AddControlScript(scriptManager As ClientScriptManager, key As String, script As String) As String
            Dim returnScript As String = String.Empty
 
            If Not scriptManager.IsClientScriptIncludeRegistered(key) Then
                scriptManager.RegisterClientScriptInclude(key, script)
            End If
 
            Return returnScript
        End Function

But as soon as the resource is loaded I have the "Uncaught ReferenceError: jQuery is not defined" error in Chrome console.
The script starts with "(function ($) {................"

Any hint?
I had no problem so far in using jQuery in local function or scripting but this plugin is giving issue, maybe because it starts with "(function ($) {" ?

Thanks in advance

Massimiliano
Top achievements
Rank 1
 answered on 17 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?