Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
173 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
127 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
391 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
297 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
1 answer
111 views
I am sometimes getting this error after removing a node from the TreeView using the following code client-side:

parent.get_nodes().remove(node);

I've read in another post they I should call trackChanges() before and commitChanges() after modifying the TreeView to have my changes persisted to the server:
http://www.telerik.com/forums/unable-to-get-value-of-the-property-gethierarchicalindex-object-is-null-or-undefined

but I'm populating my TreeView entirely client-side in javascript (and don't need to have anything persisted to the server). I did try to call those methods as suggested but I still get the error.

Thanks for your help!
Guy
Plamen
Telerik team
 answered on 17 Feb 2014
2 answers
53 views
Hi everyone,

As the title suggest I'm having an issue where I add some php to the editor using the HTML view and as soon as I switch to Design view it comments out the open and close php tags.. Any solution to this?

John
Slav
Telerik team
 answered on 17 Feb 2014
1 answer
251 views
I have the Telerik editor contained in an aspx page .
This aspx page is loaded dynamically into the div another aspx page using ajax call and setting the html in the div.
Due to this the editor control is showing as frozen, ( couldn't edit and no controls in tool panel works).
when I looked at viewSource of the html I can see that telerik scripts are missing.
if I directly query for container aspx page, the telerik editor is enabled and working fine.
any help is appreciated.
thanks.
Marin Bratanov
Telerik team
 answered on 17 Feb 2014
2 answers
277 views

I have the following bit of code that I have taken from Telerik examples... I have a Rad Window with two RadListBoxes. When the user clicks a button the function returnToParent() is called. This should
a) find the RadListBox2 (which it does)
b) find out how many items are in the RadListBox (this fails with the error Object does not support this property or method)
c) if there are no items show error message (yet to check)
d) iterate through each item and create a string containing each item separated with a semicolon and space (yet to check)
e) remove the last semicolon and space (yet to check)
f) close window id string has a value else give error message (yet to check)

This is my code.... why do I get the error Object does not support this property or method​ at line var x = listBox.get_items().get_count();

<script type="text/javascript">
  
        function GetRadWindow() {
            var oWindow = null;
            if (window.radWindow) oWindow = window.radWindow;
            else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow;
            return oWindow;
        }
  
        function returnToParent() {
            //create the argument that will be returned to the parent page
            var oArg = new Object();
  
            //get the ServiceNames name
            var listBox = document.getElementById("RadListBox2");
            listBox = $telerik.toListBox(listBox);
            //error at the next line...
var x = listBox.get_items().get_count(); 
            if (x < 1) {
                alert("The listBox is empty.");
                oArg.Services = "";
            }
            else {
                for (i = 0; i < x; i++) {
                    oArg.Services += listBox.get_items().get_item(i).value() + "; "
                }
                //remove the last semicolon and space
                oArg.Services = oArg.Services.substring(0, oArg.Services.length - 2);
            }         
             
            //get a reference to the current RadWindow
            var oWnd = GetRadWindow();
  
            //Close the RadWindow and send the argument to the parent page
            if (oArg.Service) {
                oWnd.close(oArg);
            }
            else {
                alert("At least one service must be assigned. If Unknown enter TBC.");
            }
        }
  
    </script>

Any help appreciated
Mych
Top achievements
Rank 1
 answered on 17 Feb 2014
2 answers
115 views
Im just using the default imagebuttons, nothing fancy. The images are huuuuge. How to mitigate this?
Pavlina
Telerik team
 answered on 17 Feb 2014
3 answers
74 views
I am having a problem with my radgrid. When I set a column width manually (ItemStyle-Width="300px" HeaderStyle-Width="300px") I don't get the horizontal scrollbar and my grid crushes all the other columns to fit the grid with. When I remove the width on the one column everything works fine and all the columns are the basic 125px width and I have a long horizontal scrollbar.
Pavlina
Telerik team
 answered on 17 Feb 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?