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

I'm working on a project where i need to upload images to a DB. The images could vary in size when being uploaded by the clients, but when inserted in the DB, they cannot be larger than 640x480. I went through the examples in the documentations, they all reference saving the images to the file system. I'm having a hard time doing the conversion to a bitmap, then to a GraphicImage, then back to a byte stream to insert in the DB. Loading the original UploadedFile into the DB is not an issue at all:

Dim FileBytes(PhotoFile.InputStream.Length - 1) As Byte

 

 

 

PhotoFile.InputStream.Read(FileBytes, 0, PhotoFile.InputStream.Length)

Any help would be appreciated,
-Sam

 

Genady Sergeev
Telerik team
 answered on 07 Sep 2009
1 answer
161 views
I have added the radscheduler to my website.

I want to use the xmlprovider to bind xml (as a file) to the scheduler to display content. Many of the demos use xml files in the scenario (as the description states) but don't show these such files.

As a result, is there an example of the layout the xml file should follow?

Thanks
Atanas Korchev
Telerik team
 answered on 07 Sep 2009
1 answer
280 views
Hello.

i have a question about radgrid groups, by default i need to click little arrow to expand/collapse the group.
Is it possible to have same behaviour when clicking on group header (the text which come from <SelectFields>) ?

Thank You !
Princy
Top achievements
Rank 2
 answered on 07 Sep 2009
3 answers
126 views
The RadGrid is billed as supporting the following features:
  • Codeless databinding
  • Codeless insert, update, delete datasource operations
  • Codeless paging, sorting, selecting, filtering

My scenario:

I bind a grid to a webservice.  This works fine.

I'm using the following grid markup:

        <telerik:RadGrid ID="GridCustomers" runat="server" 
                AllowPaging="True" 
                AllowSorting="True"
                Skin="Simple"
                AutoGenerateColumns="False">
            <MasterTableView EnableViewState="False">
                <RowIndicatorColumn>
                    <HeaderStyle Width="20px"></HeaderStyle>
                </RowIndicatorColumn>
                <ExpandCollapseColumn>
                    <HeaderStyle Width="20px"></HeaderStyle>
                </ExpandCollapseColumn>
                <Columns>
                    <telerik:GridBoundColumn DataField="CustomerId" SortExpression="CustomerId" UniqueName="CustomerId" DataType="System.String" HeaderText="Customer ID" />
                    <telerik:GridBoundColumn DataField="ContactTitle" SortExpression="ContactTitle" UniqueName="ContactTitle" DataType="System.String" HeaderText="Contact Title" />
                    <telerik:GridBoundColumn DataField="ContactName" SortExpression="ContactName" UniqueName="ContactName" DataType="System.String" HeaderText="ContactName" />
                </Columns>
            </MasterTableView>
            <ClientSettings AllowColumnsReorder="True" AllowDragToGroup="True" 
                ReorderColumnsOnClient="True">
                <Selecting AllowRowSelect="True" />
                <Scrolling AllowScroll="True" UseStaticHeaders="True" />
                <DataBinding Location="RadGrid.aspx" EnableCaching="true" SelectMethod="GetData" />
           </ClientSettings>
        </telerik:RadGrid>
        <telerik:RadAjaxLoadingPanel ID="Panel1" runat="server"/>

My sorts don't happen automatically on the client side.  Of the samples I've seen so far on the Telerik site, all involve server or client side coding to make the sorts work.  Other third party vendors have grids which use codeless sorting.  I.e., you don't write either client or server side code to react to sort events, etc.  The grid emits JavaScript which does all this work automatically.

Can someone point me to a sample which demonstrates the Telerik idea of "codeless" sorting?

Thanks in advance.
BaiH
Top achievements
Rank 1
 answered on 07 Sep 2009
2 answers
208 views
I'm having trouble changing the expand/collapse button image in a grid. My goal is that I would like to keep the EnableEmbeddedBaseStylesheet ja EnableEmbeddedSkins false and set only the styles I need for the grid. This works fine and as expected, it also gets rid of the original styles of the button. The problem is that I can't find a place where to set the imageurl for the button.

I have tried several different solutions:

Inside mastertableview:
<ExpandCollapseColumn ButtonType="LinkButton"  CollapseImageUrl="myfirsturl" ExpandImageUrl="mysecondurl" />

In Prerender:
dim column = TryCast(mygrid.MasterTableView.GetColumn("ExpandColumn"), GridExpandColumn)
column.ButtonType = GridExpandColumnType.ImageButton
column.ExpandImageUrl = mysecondurl
column.CollapseImageUrl = myfirsturl

In ColumnCreated:
If TypeOf e.Column Is GridExpandColumn Then
            Dim column = TryCast(e.Column, GridExpandColumn)
            column.ButtonType = GridExpandColumnType.ImageButton
            column.ExpandImageUrl = mysecondurl
            column.CollapseImageUrl = myfirsturl
End If

Nothing works. I have a feeling that I'm trying to set it 1) int the wrong sub (even though many examples use solutions above) 2) to the wrong element. So how can I change it?




S V
Top achievements
Rank 1
 answered on 07 Sep 2009
1 answer
86 views
Hi guys.

All of a sudden I started getting this popup-message every time I try to save an image in the image editor.

I can't remember changing anything remotely connected to the image editor in weeks.
Both the width and height textboxes are filled with valid pixel value.

It doesn't matter what type of an image it is.
It doesn't matter if I actually change the dimensions or not.

Has anyone experienced this?

Regards,
-DJ-

Lini
Telerik team
 answered on 07 Sep 2009
1 answer
101 views
hi, i am using radCaptcha to develop my application. i have a few validation for the form and one captcha. After all the validation of the others are validate and the data have successfully save to the database but the captcha has hit the error for null. i have try it a few time but even i have key in the true key, the captcha will hit null exception after the process. Anyone know how to solve this problem?
Pero
Telerik team
 answered on 07 Sep 2009
4 answers
159 views
Hey,

I am using a FormTemplate to create my edit form on a web app.  I am trying to DataBind a field in the form with Data from the text boxes inside that form. 

This is the code I am trying to bind:

ConfirmationText='<%# string.Format("tht{0}tn euattn{1}", Eval("YourOffer"), Eval("SecretOffer")) %>'

YourOffer and SecretOffer are both text boxes on the form.  The confirmation text is part of a server control that my boss created and I am trying to bind the data from the text boxes into the confirm text to make sure that the user is sure they are doing what they want to do.  Any help trying to figure this out would be greatly appreciated.


Thanks,


Kyle



Yavor
Telerik team
 answered on 07 Sep 2009
1 answer
102 views
I have wrapped my grid in an updatepanel and now all my RadComboBoxes that are
located in my FilterTemplate don't work.  They won't even drop down and show what
is in them.  I get a error on my page indication that the onclientchanged function
located in my RadScriptBlock is undefined.  It worked perfectly before the updatepanel
and works perfectly after removing it.  Any ideas?

Joshua
Vlad
Telerik team
 answered on 07 Sep 2009
1 answer
155 views
I have the below Visual Basic .net code to export data from a RadGrid to Excel.
 

RadGrid1.MasterTableView.ExportToExcel()

However, the data has an .xlsm extension. 

Are additional settings required?

Thanks in advance for any insight.  Rob

Vlad
Telerik team
 answered on 07 Sep 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?