Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
212 views
I need to validate radNumericTextbox, which in Currency type in my application.
I need to validate it for max length 15, with 12 digit + . + 2 decimals.

I don't want to display $ inside the textbox, i want that outside of the textbox.

Please, suggest me the solution ASAP
Divya
Top achievements
Rank 1
 answered on 27 Jul 2011
1 answer
92 views
I understand why it's empty, and we retrieve our original row using lookup of the ID which we can store in the Value prop..
..I just cannot undertand why this is even a property of the Node at all.. Surely if it is only ever available in one event, it should be an argument to the event handler, NOT a property of the Node?
Plamen
Telerik team
 answered on 27 Jul 2011
1 answer
96 views
This is my first time trying out a radrating control.
I add it to my form and set the itemcount to 5 as so:
 <telerik:RadRating ID="RadRating1" runat="server" ItemCount="5"></telerik:RadRating>

No matter what I seem to try, I only ever see one star. What am I missing here?
Slav
Telerik team
 answered on 27 Jul 2011
1 answer
99 views
This is a very general question so i'm sure it could be answered, but i do tend to get myself confused when using the radajaxmanager. 

Basically, my question is,  If i have a radcombobox for example, which say performs some functions on some other controls on the page. 

Can I : Wrap everything in a RadAjaxPanel then simply state that the RadAjaxPanel updates itself and is also the Ajax Control. 

Or is the RadAjaxPanel ONLY for ajaxifying standard .NET controls, and i have to reference each telerik control in the RadAjaxManager.

I guess an example would help

<telerik:RadComboBox ID=combo1... >
<telerik:RadComboBox ID=combo2 .. >
<asp:label id=label1 ...> 

Say these 2 update each other / the label. Would i therefore need to add both combo1 & 2 into my radajaxmanager or could i wrap the entire lot in a radajaxpanel e.g. the top 2, or the bottom 1
  <telerik:AjaxSetting AjaxControlID="combo1">
<UpdatedControls>
  <telerik:AjaxUpdatedControl ControlID="combo2" />
</UpdatedControls>
</telerik:AjaxSetting>
  
  <telerik:AjaxSetting AjaxControlID="combo2">
<UpdatedControls>
  <telerik:AjaxUpdatedControl ControlID="combo1" />
</UpdatedControls>
</telerik:AjaxSetting>
  
  
  <telerik:AjaxSetting AjaxControlID="RadAjaxPanel1">
<UpdatedControls>
  <telerik:AjaxUpdatedControl ControlID="RadAjaxPanel1" />
</UpdatedControls>
</telerik:AjaxSetting>


Alan T
Top achievements
Rank 1
 answered on 27 Jul 2011
1 answer
105 views
Hi;
We are using Telerik RadGrid and are using paging in numeric style. by default the paging is on left handside .Can we have any mechanism were we can shift paging to right hand side
Princy
Top achievements
Rank 2
 answered on 27 Jul 2011
3 answers
166 views
What am I doing wrong. I have a grid with several columns. One column is text OCRed from a page and can be up to 2k alpha numeric character. Obviously I only want to show the first 50 or so. I'ved tried many suggestions but nothing seems to work. Here is the code for the one column:

 

 

GridBoundColumn gridColumn = new GridBoundColumn();

 

RadGrid1.MasterTableView.Columns.Add(gridColumn);

gridColumn.DataFormatString =

 

"<nobr>{0}</nobr>";

 

gridColumn.DataField = dataColumn.ColumnName;

gridColumn.HeaderText = dataColumn.ColumnName;

gridColumn.HeaderStyle.Width =

 

Unit.Pixel(125);

 

gridColumn.ItemStyle.Width =

 

Unit.Pixel(125);

 

gridColumn.FooterStyle.Width =

 

Unit.Pixel(125);

 


Fred
Top achievements
Rank 1
 answered on 27 Jul 2011
2 answers
82 views
Hi,

I have the below itemcommand event of radgrid for copying a record based on ID.

if (e.CommandName == "Copy")
{
SHTemplateUI copyTemplate = new SHTemplateUI();
copyTemplate.CopyTemplateByIdUI(Convert.ToInt32(e.Item.OwnerTableView.DataKeyValues[e.Item.ItemIndex]["StudentHistoryTemplateID"]));
this.LoadTemplateList();
}
This copies the record with the same name.

Now i want to make some changes.when i click on copy it should popup a radwindow and ask for the new file name.Once i enter the file name it should check whether the file name already exists.If not copy record with the new file name.

Can anybody help please? 
Arjun
Top achievements
Rank 1
 answered on 27 Jul 2011
1 answer
126 views
I have a drop down that holds around 6000 items. 

If EnableAutomaticLoadOnDemand is set to "True" OnSelectedIndexChanged for RadComboBox1.SelectedItem is NULL.
This is not the case if EnableAutomaticLoadOnDemand is set to "False"

Because I have so many items in my dropdown I have EnableAutomaticLoadOnDemand set to "True". Is this expected behavior? and if so how can I workaround this?

Thanks


Here are the properties I have set on the Combo-box.

<telerik:RadComboBox runat="server" ID="RadComboBox1" Height="400px"
                           Width="750px" MarkFirstMatch="true" DataSourceID="SessionDataSource1"
                           EnableLoadOnDemand="true" OnItemDataBound="RadComboBox1_ItemDataBound"
                           ShowMoreResultsBox="true" EnableVirtualScrolling="true" ItemsPerRequest="20"
                           EnableAutomaticLoadOnDemand="True" DataTextField="AssetDescription"
                           DataValueField="AssetDescription"
          style="margin-bottom: 0px" AutoPostBack="true" OnSelectedIndexChanged="RadComboBox1_IndexChanged"
          HighlightTemplatedItems="true"
          >
Dimitar Terziev
Telerik team
 answered on 27 Jul 2011
0 answers
94 views
Hi, I would like to ask your advice on the following question:

Which technology do you advice me to use Telerik or Silverlight for the web business applications where the number of web forms exceed 500? Thank you. Z.
Zura Chikhladze
Top achievements
Rank 1
 asked on 27 Jul 2011
1 answer
325 views
Hi,

I would like to use RadAsyncUpload control to upload multiple files to Amazon S3. I have included RadAsyncUpload control in my web application. I am able to select multiple files to upload and it uploads the selected files successfully to Amazon S3 ( it stores the files temporarily to temp folder) but when I try to download files from amazon S3, I get the corrupted file as the contenttype of the file never gets set properly. I am using the serverside event . "FileUploaded" to get the selected file's name, content type and content length. The content length is returned as an integer and when I convert that into the byte(), it gives me the wrong result. Here is my code:

 

 

 

Protected Sub RadAsyncUpload1_FileUploaded(ByVal sender As Object, ByVal e As Telerik.Web.UI.FileUploadedEventArgs) Handles RadAsyncUpload1.FileUploaded

        Dim counter As Integer = Session("counter")

        Dim newrow As DataRow = dt.NewRow
        Dim buffer As Byte() = New Byte(e.File.ContentLength - 1) {}

        If e.IsValid Then
            S3Conn = New AWSAuthConnection(S3AWSAccessKeyId, S3SecretAccessKeyId)
            counter = counter + 1

            If Not S3Conn Is Nothing Then
                S3Conn.createBucket(S3Bucket, Nothing)

                Dim metadata As SortedList = New SortedList()
                metadata.Add("filename", e.File.FileName)

                Dim s3key As String = "test/" & Session("dbid") & "_" & Session("recid") & "_" & CStr(counter)
                Dim obj As S3Object = New S3Object(buffer, metadata)

                Dim headers As New SortedList
                headers.Add("Content-Type", buffer)
                headers.Add("x-amz-acl", "public-read")

                S3Conn.put(S3Bucket, s3key, obj, headers)
            End If
            Session("counter") = counter
            S3Conn = Nothing
        End If

       
    End Sub

Peter Filipov
Telerik team
 answered on 27 Jul 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?