Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
195 views
Hi Guys,

depending on the used browser (IE, FF, Chrome) we sometimes run into a "NullReferenceException" while trying to open a picture to edit. FF & Chrome working almost all time while IE throws an exeption one of 3 times.

Within this forum we found the guess that someting with webResources/seasson state server is the reason of this error (http://www.telerik.com/community/forums/aspnet-ajax/editor/editor-image-manager-refresh-image-save-image-doesn-t-work-very-well.aspx#2187725) - but we can exclude this after a few tests.

This is the exception we run into:

2012.11.20 17:44:30.988 ThreadId=7 Fatal ErrorsHttpModule
UrlQueryString: /v0/Telerik.Web.UI.WebResource.axd?type=iec&pr=c&key=c695498e-de5a-4dbd-9e85-f4a4e40398c0
REMOTE_ADDR: 192.168.1.38
HTTP_USER_AGENT: Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)
HTTP_REFERER: [...]/Telerik.Web.UI.DialogHandler.aspx?DialogName=ImageEditor&Skin=Default&Title=&doid=ad5a5db1-7982-46bf-90b9-2afeea8662e6&dpptn=
HttpApplication.RecordError => HttpApplication.RaiseOnError => CustomExceptionHttpModule.app_Error
m1.eRelCL.WebSite.Exceptions.CustomExceptionHttpModule.app_Error
 
FatalException
m1.eRelCL.WebSite.Exceptions.CustomException
 
InnerException
System.NullReferenceException: Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt.
   bei Telerik.Web.UI.ImageEditor.ImageEditorCacheHandler.SendImage(EditableImage editableImage, HttpContext context, String path, String fileName)
   bei Telerik.Web.UI.ImageEditor.ImageEditorCacheHandler.ProcessRequest(HttpContext context)
   bei Telerik.Web.UI.HandlerRouter.ProcessHandler(String handlerKey, HttpContext context)
   bei Telerik.Web.UI.HandlerRouter.ProcessHandler(HttpContext context)
   bei Telerik.Web.UI.WebResource.ProcessRequest(HttpContext context)
   bei System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   bei System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
After a few investigations we can confirm, that the error does not happen if we run our web application in only one working process (application pool). Normaly four are default. Now - do you know something about problems with the "ImageEditor" and IIS application pool Working processes? This this a known Bug? I've tried the newest Telerik DLL (Q3 2012) but this does not help anything. Best regards, Felix
Felix
Top achievements
Rank 2
 answered on 21 Dec 2012
1 answer
135 views

Hi,

I have Default.aspx page like this ..

<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %>
 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<head>
    <title>ASP.NET PanelBar Demo - Dynamic Creation</title>
</head>
<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager runat="server" ID="RadScriptManager1" />
    <telerik:RadSkinManager ID="QsfSkinManager" runat="server" ShowChooser="true" />
    <telerik:RadFormDecorator ID="QsfFromDecorator" runat="server" DecoratedControls="All"
        EnableRoundedCorners="false" />
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="RadButton1">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadPanelBar1" LoadingPanelID="RadAjaxLoadingPanel1">
                    </telerik:AjaxUpdatedControl>
                </UpdatedControls>
            </telerik:AjaxSetting>         
        </AjaxSettings>
    </telerik:RadAjaxManager>
    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server">
    </telerik:RadAjaxLoadingPanel>
    
    <div>
        <telerik:RadPanelBar runat="server" ID="RadPanelBar1" Height="200" ExpandMode="FullExpandedItem">
        </telerik:RadPanelBar>
    </div>
    <telerik:RadButton ID="RadButton1" runat="server"   Text="RadButton">
    </telerik:RadButton>
    
    </form>
</body>
</html>

Default.aspx.vb :

Imports Telerik.Web.UI
 
Partial Class _Default
    Inherits System.Web.UI.Page
 
    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        If Not Page.IsPostBack Then
 
        End If
    End Sub
 
    Protected Sub RadButton1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles RadButton1.Click
        Dim i As Integer = 0
        If RadPanelBar1.Items.Count = 0 Then
            Do While (i < 5)
                Dim dateItem As New RadPanelItem()
                dateItem.Text = "Test" + i.ToString()
                RadPanelBar1.Items.Add(dateItem)
 
                Dim control As New RadPanelItem()
                Dim Panel1 As New Panel()
                Session("testText") = " Label" + i.ToString()
                Dim myControl As Control = LoadControl("TestUC.ascx")
                Panel1.Controls.Add(myControl)
                control.Controls.Add(Panel1)
                dateItem.Items.Add(control)
 
                i = i + 1
            Loop
        End If
    End Sub
End Class

ASCX :

<%@ Control Language="VB" AutoEventWireup="false" CodeFile="TestUC.ascx.vb" Inherits="TestUC" %>
<asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>


ASCX.VB :

Partial Class TestUC
    Inherits System.Web.UI.UserControl
 
    Protected Sub Page_Init(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Init
 
    End Sub
 
    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        If Not Page.IsPostBack Then
            Label1.Text = Session("testText")
        End If
 
    End Sub
End Class



When I am click on RadButton1 then I am adding 5 times usercontrol dynamically .If RadPanelBar1.Items.Count = 0 ..So I can able to see label value in 5 usercontrols that added in to radpanelbar.

If I click on RadButton1 2nd time then nothing to do becuase 5 time usercontrol added already in to radpanelbar.. that's  why I put condition like this

If RadPanelBar1.Items.Count = 0
' Add user control here..
End If

Above condition causes nothing loaded in to UI.

Working Image here :  https://docs.google.com/open?id=0B2iTYXKyTlBpZU5ZY1J0SV9FaXc

Not Working Image :  https://docs.google.com/open?id=0B2iTYXKyTlBpTmNGdXNQTjJCVGs


Princy
Top achievements
Rank 2
 answered on 21 Dec 2012
15 answers
286 views
Hi, I have a page which uses a RadTapStrip and RadMultiPage object. The tabs and pageviews are created dynamically upon loading of the page. Each tab is set to either a page within my project (e.g. TabPage1.aspx) or to an external URL (e.g. www.google.com). I'm wondering if it's possible to identify when the ContentURL of the RadPageView changes (e.g. the user clicks on a link the navigates it to another URL). Can this history be tracked or saved somewhere as in a cookie or session or something similar?

The goal I'm trying to achieve is to save the current URL of each tab whenever it changes, so that if a full page refresh occurs, the last ContentURL of each tab can be reloaded.

I have read that you can attach an OnLoad event to an Iframe that fires each time the page is loaded, you can then save the current URL in a cookie on the client. However any attempt to re-create this with a dynamically created iFrame or the standard iFrame in the RadMultiPage has failed. Does this approach sound like it's even possible? 
Nencho
Telerik team
 answered on 21 Dec 2012
2 answers
85 views
There's an Xml with programatic definition.
[XmlArray("credentials")]
        [XmlArrayItem("account")]
        public List<CustomData> Accounts
        {
            get;
            set;
        }
 
[Serializable]
    public sealed class CustomData
    {
        [XmlAttribute("CustomerId")]
        public string CustomerId
        {
            get;
            set;
        }
    }

I get:
Customer Id
ALFKI
ANATR
>>>
How can header text be changed?

CUSTOM-HEADER-NAME
ALFKI
ANATR

OnItemDataBound?
OnDataBinding?

Thank you.
Radoslav
Telerik team
 answered on 21 Dec 2012
3 answers
105 views
Is there a way in server side code (vb.net) to go to a specfic row and column in a grid. An example, I have a grid with 20 rows and 10 columns. I would like to go to row 12, column 7 and hi-light that cell without having to iterate through the grid to locate the specfic row/column. Any suggestions would be appreciated.

Thanks in advance.
Princy
Top achievements
Rank 2
 answered on 21 Dec 2012
3 answers
762 views
Hi,

How can I change the background color of the title-bar of radwindow. Hope somebody might have done this before. Please share

Allen
Shinu
Top achievements
Rank 2
 answered on 21 Dec 2012
5 answers
86 views
Hi,
I have the below code in Itemcommand. I want to restrict users to enter only 2 rows. And also, if an existing row is deleted and number of rows is within 2, user should be able to add new item. This code is not working

int count = radgrid1.MasterTableView.Items.Count;
                  if (count > 2)
                  {
                      e.Canceled = true;
                      radgrid1r.MasterTableView.CommandItemDisplay = GridCommandItemDisplay.None;
                                      
                  }
                  else
                  {
                      radgrid1.MasterTableView.CommandItemDisplay = GridCommandItemDisplay.TopAndBottom;
                  }

Also, i am  clicking on "ADD NEW ITEM" twice to make it disapper.
If the items inserted are 2 then automatically the "add new item" should not be displayed.
How to fix this?
Shinu
Top achievements
Rank 2
 answered on 21 Dec 2012
1 answer
97 views
I tried the EnableAutomaticLoadonDemand technique and it works basically well.  One thing though, I thought it was supposed to cache the full result from the database if I set EnableItemCaching. I ran a SQL Profiler trace and it reruns the query each time, which causes slowness in non-local situations.  The combo does need to post after the user selects something, so the app can continue with the selection they chose.  Is there something else I need to do?

Thanks.

<telerik:RadComboBox ID="CaseRadComboBox" runat="server" DataSourceID="CaseSqlDataSource" DataTextField="FullCaseName" DataValueField="subIdx" enableautomaticloadondemand="true"
    enablevirtualscrolling="true" itemsperrequest="15" Filter="Contains" Width="400px" AutoPostBack="True" enableitemcaching="True" >
</telerik:RadComboBox>
Ed Lance
Top achievements
Rank 1
 answered on 21 Dec 2012
4 answers
589 views
I have a simple 2-column RadComboBox which I'm using strictly as a dropdown listbox.  It's generally working fine except I'd like to do one more thing with it.  After an item is selected then the short Description text (ex. "228", "3900", "850", etc.) is shown in the RadComboBox after it collapses.

But what I'd like to do is display the related text as a suffix.  So, for example, if the first item is selected then rather than just display "228", instead I'd like to display "228 (601-10101 / 4000)".

I tried doing this by setting the RadComboBox's Text property but this failed to achieve it.  I then also tried setting the EmptyMessage property but that didn't work either.

Is there a way I can do it?

Robert
Robert
Top achievements
Rank 1
 answered on 20 Dec 2012
4 answers
338 views
Hi ! I am using this control and looking for some css for it, at the moment it looks odd with my Windows 7 theme. Please refer to the attached screen snip for details.
Aarsh
Top achievements
Rank 1
 answered on 20 Dec 2012
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?