Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
142 views

why doesn't the GridDropDownColumn have the HTMLEncode propery???
I works well in the combobox but in the grid there will be problems without the encoding.

Do I need to HTMLEncode in databound? How?

Princy
Top achievements
Rank 2
 answered on 07 Dec 2009
1 answer
135 views
Telerik hasn't  autoComplete textbox(input)?
Shinu
Top achievements
Rank 2
 answered on 07 Dec 2009
2 answers
130 views
hi, i have a text box that need to be fill in the email address. Before i am posting the value, i need the email address text box should not be empty and in the correct form.
I have using the RadInputManager  to control the regular expression for the email address and the required field but, when i have load the page, the regular expression will always load finally in the page. will the rad Input Manager for each field can only be control at once times? how can i load the validate for required field first and the regular expression in second instance?

best regard;
sookkien

sk
Top achievements
Rank 1
 answered on 07 Dec 2009
2 answers
107 views
Hi. I have a nested grid. When I press my 'book' link button (same as insert record) it opens up a web user control. I've trapped any exceptions that might come up and noticed that the exception that is raised is an 'Object reference not set to an instance of an object', when click on my 'book' button. The form comes up okay but cannot insert or even cancel the record. Here is parts of my code:

ASPX
<telerik:GridTemplateColumn UniqueName="ExpandCollapse" HeaderStyle-Width="3%"
    <ItemTemplate> 
        <asp:LinkButton ID="lbBook" Text="Book" CommandName="book" runat="server"></asp:LinkButton> 
    </ItemTemplate> 
</telerik:GridTemplateColumn> 

CS
protected void rgEnvironments_ItemCommand(object source, GridCommandEventArgs e) 
    { 
        try 
        { 
            if (e.CommandName == "book"
            { 
                e.Canceled = true
                rgEnvironments.EditIndexes.Clear(); 
                e.Item.OwnerTableView.EditFormSettings.EditFormType = GridEditFormType.WebUserControl; 
                e.Item.OwnerTableView.EditFormSettings.UserControlName = "/teams/im/environment_usage/insert_usage_form.ascx"
                e.Item.OwnerTableView.InsertItem(); 
            } 
 
        } 
        catch (Exception ex) 
        { 
            Intranet.AppendLogFile(ex.Message + ex.StackTrace); 
        } 
    } 

Daniel
Top achievements
Rank 1
Iron
Iron
Iron
 answered on 07 Dec 2009
1 answer
216 views
Hi,

I am using raddatetime pickers (Q3 2009) throughout my application and am stuggling a little to get the international date formats working correctly.

I have added datetimepicker to a page and removed all culture information, and also tried culture="(Default)", but when I change culture in the browser dates always appear in UK English format (dd/mm/yyyy).

I have tried adding the following code:

            Dim cultureInfo As CultureInfo = cultureInfo.CurrentCulture  
            dteLeaveStart.Culture = cultureInfo 

But dates still appear in UK format.  If I change the line to cultureinfo.InvariantCulture then they do appear in mm/dd/yyyy format, but do this even if the culture is set to UK.

I have also tried using a RadInputManager but cannot find how to set this programatically to use the culture information.

I am assuming there must be some fairly simple method I am missing here and any guidance would be greatly appreciated.

David Penny
David Penny
Top achievements
Rank 2
 answered on 06 Dec 2009
3 answers
159 views

Does anyone know if it's possible to get a RadScheduler layout like the attached picture?
If the Appointments cannot get bigger it would be nice if they go to vertical scroll.

Thanks in advance for thinking about it :-)

Rick
Rick Rehorst
Top achievements
Rank 1
 answered on 05 Dec 2009
1 answer
72 views
Thanks for your help.  :-)
Schlurk
Top achievements
Rank 2
 answered on 04 Dec 2009
4 answers
243 views
Going crazy here:
I am trying to validate a dynamically created RadNumericInput box. I have wired the OnValueCHanged event as follows:

newControl.ClientEvents.OnValueChanged = "CheckAllocation"

I have a javascript routine as follows (stripped down for example):

function CheckAllocation(sender, eventArgs) {
 
...(do some checking and if number not good then...)

sender.set_value(eventArgs.get_oldValue());
    eventArgs.set_cancel(true);
     sender.focus();
    return false;
    }

I simply want to put the old value back in the box and return focus to the sender. The event fires fine and code seems to run, but the focus goes to wherever I clicked, and when I put the old value back in the box it fires OnValueChanged event again...

Is there something I am missing? This seems like it should be pretty simple...

Many Thanks
Ford



Maas Prog
Top achievements
Rank 1
 answered on 04 Dec 2009
8 answers
551 views
Hi,

Don't know if there is a fix for this, but I get a System.OutOfMemoryException when exporting data to pdf using the RadGrid 5.1.2.0

My stack trace is : 

System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.
  at Telerik.Apoc.Layout.BorderAndPadding.Clone()
  at Telerik.Apoc.Fo.Flow.TableCell.Layout(Area area)
  at Telerik.Apoc.Fo.Flow.TableRow.Layout(Area area)
  at Telerik.Apoc.Fo.Flow.AbstractTableBody.Layout(Area area)
  at Telerik.Apoc.Fo.Flow.Table.Layout(Area area)
  at Telerik.Apoc.Fo.Flow.Block.Layout(Area area)
  at Telerik.Apoc.Fo.Flow.Flow.Layout(Area area, Region region)
  at Telerik.Apoc.Fo.Flow.Flow.Layout(Area area)
  at Telerik.Apoc.Fo.Pagination.PageSequence.Format(AreaTree areaTree)
  at Telerik.Apoc.StreamRenderer.Render(PageSequence pageSequence)
  at Telerik.Apoc.Fo.FOTreeBuilder.EndElement()
  at Telerik.Apoc.Fo.FOTreeBuilder.Parse(XmlReader reader)

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.SystemException: System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.
  at Telerik.Apoc.Layout.BorderAndPadding.Clone()
  at Telerik.Apoc.Fo.Flow.TableCell.Layout(Area area)
  at Telerik.Apoc.Fo.Flow.TableRow.Layout(Area area)
  at Telerik.Apoc.Fo.Flow.AbstractTableBody.Layout(Area area)
  at Telerik.Apoc.Fo.Flow.Table.Layout(Area area)
  at Telerik.Apoc.Fo.Flow.Block.Layout(Area area)
  at Telerik.Apoc.Fo.Flow.Flow.Layout(Area area, Region region)
  at Telerik.Apoc.Fo.Flow.Flow.Layout(Area area)
  at Telerik.Apoc.Fo.Pagination.PageSequence.Format(AreaTree areaTree)
  at Telerik.Apoc.StreamRenderer.Render(PageSequence pageSequence)
  at Telerik.Apoc.Fo.FOTreeBuilder.EndElement()
  at Telerik.Apoc.Fo.FOTreeBuilder.Parse(XmlReader reader)

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[SystemException: System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.
   at Telerik.Apoc.Layout.BorderAndPadding.Clone()
   at Telerik.Apoc.Fo.Flow.TableCell.Layout(Area area)
   at Telerik.Apoc.Fo.Flow.TableRow.Layout(Area area)
   at Telerik.Apoc.Fo.Flow.AbstractTableBody.Layout(Area area)
   at Telerik.Apoc.Fo.Flow.Table.Layout(Area area)
   at Telerik.Apoc.Fo.Flow.Block.Layout(Area area)
   at Telerik.Apoc.Fo.Flow.Flow.Layout(Area area, Region region)
   at Telerik.Apoc.Fo.Flow.Flow.Layout(Area area)
   at Telerik.Apoc.Fo.Pagination.PageSequence.Format(AreaTree areaTree)
   at Telerik.Apoc.StreamRenderer.Render(PageSequence pageSequence)
   at Telerik.Apoc.Fo.FOTreeBuilder.EndElement()
   at Telerik.Apoc.Fo.FOTreeBuilder.Parse(XmlReader reader)]
   Telerik.Apoc.ApocDriver.FireApocError(String message) +78
   Telerik.Apoc.Fo.FOTreeBuilder.Parse(XmlReader reader) +628
   Telerik.Apoc.ApocDriver.Render(XmlReader inputReader, Stream outputStream) +334
   Telerik.Apoc.ApocDriver.Render(TextReader inputReader, Stream outputStream) +41
   Telerik.WebControls.Grid.Export.TableViewExporter.PdfExportRenderForm(HtmlTextWriter nullWriter, Control form) +1072
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +2065835
   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +24
   System.Web.UI.HtmlControls.HtmlForm.RenderChildren(HtmlTextWriter writer) +59
   System.Web.UI.HtmlControls.HtmlForm.Render(HtmlTextWriter output) +68
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +25
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +121
   System.Web.UI.HtmlControls.HtmlForm.RenderControl(HtmlTextWriter writer) +37
   Telerik.WebControls.Grid.Export.TableViewExporter.PdfExportRenderPage(HtmlTextWriter nullWriter, Control page) +102
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +2065835
   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +24
   System.Web.UI.Page.Render(HtmlTextWriter writer) +26
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +25
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +121
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +22
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1896

Any feedback is appreciated
dany7487
Top achievements
Rank 1
 answered on 04 Dec 2009
1 answer
99 views
I have a chart that uses a sql stored procedure as a data source.
The issue that i'm having is that I can't seem to set the X Axis DataLabelsColumn.

It seems stuck on just a generic 1,2,3,4,5,6,7.....etc.
I'm using the following line: 
    RadChart1.PlotArea.XAxis.DataLabelsColumn = "Column1"
with Column1 being a column in the sql stored procedure data results.
It doesn't work.
Is there something that I'm missing or doing wrong? Should i be using a "SELECT statement" rather than a stored procedure?
Thanks.

Dan Schmecker
Top achievements
Rank 1
 answered on 04 Dec 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?