Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
255 views
Hi!
I would like to resize files that are being uploaded automatically. But I only want to resize the width. Regarding the height of the file, this should auto adjust it self. Forexample; If I'm uploading a file that is 1000 px in width and 2000px in height and then resize it to 500px in width, then I want the height to be auto resized to 1000px. In other words the height and width has to be proportional.

This is the code that I'm using right now.

  int width = 500;
  int height = 500;
  using (System.Drawing.Image thumbnail = originalImage.GetThumbnailImage(width, height, thumbnailImageAbortDelegate, IntPtr.Zero))
  {
      string thumbnailFileName = Path.Combine(target, string.Format("{0}_BigPicture{1}", file.GetNameWithoutExtension(), file.GetExtension()));
      thumbnail.Save(thumbnailFileName);

The problem with this is that is has to take both the height and the width. I cannot leave out the height parameter.

P.S. My DLL version is 2009.3.1208.35 > Telerik.Web.UI.dll (ASP.NET Ajax)

So I hope someone can help.

Thanks
sammy ymmas
Top achievements
Rank 1
 answered on 15 Jun 2010
1 answer
288 views

Sir ,

I want to open rad window in maximize mode through Client Side Code my code is below.

but its not working pls add Maximize  Code in my code.


return

 

string.Format("var win = window.radopen('DisplayImage.aspx?id={0}&regno={1}&hosid={2}','Details');win.center();", Convert.ToString(id), Session["registrationno"].ToString(), Session["HospitalLocationId"].ToString());

Thanks.
Chandan Kumar

 

Princy
Top achievements
Rank 2
 answered on 15 Jun 2010
1 answer
897 views
I'm getting a strange error and thought I'd inquire about how it's happening. I have a MultiPageView, the way it is controlled is through a radiobuttonlist at the top of the page. When I switch the index of the radiobuttonlist, say from 0 to 2 (going from the first page, to the third page in the view) I get a java error that says "Message: 'undefined' is null or not an object" then down in the URI field which I read it lists my page and then "/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_RadScriptManager1_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d3.5.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-US%3a0d787d5c-3903-4814-ad72-296cea810318%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%2c+Version%3d2010.1.309.35%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3a30afb63f-e6ac-41db-9851-11879733de0a%3a16e4e7cd%3aed16cbdc%3af7645509%3a24ee1bba%3ae330518b%3a1e771326%3a8e6f0d33%3a6a6d718d%3a58366029%3aaa288e2d%3a874f8ea2%3a19620875%3a33108d14%3abd8f85e4%3ac8618e41%3ae4f8f289%3ae524c98b

I'm wondering if this is an AJAX Toolkit error? I don't know why it's happening, although I can generate it. I'm using Visual Studio 2010 with Framework 3.5 if that matters. Any suggestions or assistance is really appreciated.



T. Tsonev
Telerik team
 answered on 15 Jun 2010
2 answers
106 views
hi,

  i've got a grid populated with data.

  i now want to alter the ordering of this data by dragging and dropping rows within this grid.

  i've looked at your drag/drop example ...

      http://demos.telerik.com/aspnet-ajax/grid/examples/programming/draganddrop/defaultcs.aspx

  and it's more involved than i need.

  simply put, i want to re-order content, client side, without going back to the server -- or at least without having to load up my data again ... as it seems to be doing in your example - see GetOrders()

  are there any examples out there to do this ?

  thanks. info appreciated.

Andy
Yavor
Telerik team
 answered on 15 Jun 2010
5 answers
384 views
Hi All,

I gave empty data source to rad grid.
Empty data source is bonded successfully from client side. but when i want to add new record then i call web service method which inserts record in data base successfully after that i call getAllRecords method to which get all records from data base and returns list.

But when i bind it rad grid, it throws javascript error. tableView12 is null. Here is my code.

function InsertUpdateRecord(result)
    {              
        //var tableView12 = tableView1.get_masterTableView();
        var tableView12 = $find("ControlsStudentRecordAdd_rgAddress").get_masterTableView();      
        tableView12.set_dataSource(result[0].objStudentAddressCollection);
        tableView12.dataBind();
    }

I hope i have clear my point of view. if it is not then do let me know i will try to explain it.

how can i do this task.

Veli
Telerik team
 answered on 15 Jun 2010
1 answer
234 views
I am using the EditForm in my RadGrid.  The controls are all lined up to the left side and I would like to move them to the right about 100px.  I tried <FormMainTableStyle CellPadding="100"/> , but it also created a 100px padding on the top and bottom also.  Is there a way to only create padding on the left side?
Shinu
Top achievements
Rank 2
 answered on 15 Jun 2010
1 answer
110 views

Hey,

I'm currently using version 2010.1.309.35

I can't "find" rad docks or zones in JavaScript like what is shown http://demos.telerik.com/aspnet-ajax/dock/examples/clientsideapi/defaultcs.aspx

var zone = $find('ctl00_ph_rdzMain'); 

This ALWAYS returns null. 

The HTML has the element:

<div id="ctl00_ph_rdzMain" class="RadDockZone RadDockZone_Default rdVertical " style="border-color:Transparent;border-width:1px;border-style:solid;width:870px;min-width:10px;min-height:10px;"> 

$find is working fine tho because I can find any other telerik control. The only ones I can't fine a anything to do with docking.

What am i doing wrong :(

NaturalCause
Top achievements
Rank 1
 answered on 15 Jun 2010
1 answer
58 views
Hi,

I have created two RadGrid's each of which is contained in a RadDock.

I have tried to implement rows drag and drop functionality between the two RadGrid's.

But the RadGrid on which some taken rows are dropped is not refreshed right after the taken rows have been dropped on it,

while the RadGrid from which the rows are taken refreshes fine.

If the two RadGrid's are not cotained in RadDocks, they work fine.

So I guess that it happens because the RadGrid's are contained in RadDock's

Please help me.

Thank you
Rob Van Dullemen
Top achievements
Rank 1
 answered on 15 Jun 2010
2 answers
197 views
Hi,

I am porting an old asp application to .net and I need to replicate a fairly complex grid scenario.

I have a list of resources which are heirachical with only 2 levels at the moment. So Parent Child relationships. I then have a set of Roles which are editable by the user so the grid will have to be generated dynamically.

Basically I need a grid with the first column showing the resources using the heirachical layout and then the remaining columns need to be the generated at run-time from the Roles with checkboxes in edit mode. Each check box needs to post back on selectedindexchanged to allow the role to be added to the resource.

Obviously the checkboxes need to be databound to the roles as well to check or uncheck appropriately.

I have attached a screen shot of the classic asp version. This one uses a save button but I want to do the postback automatically if possible.

Is this easily do-able with Rad Grid?

Thanks for any help.
Jacob
Top achievements
Rank 1
 answered on 15 Jun 2010
2 answers
177 views
I have a weird problem with client data binding in the Chrome browser. All other browsers work fine. I haven't spent a lot of time investigating - mostly because I have no idea where to start.

I have a RadGrid (2010.1.415.35) with several columns, two of which are date columns and are right next to each other (Invoice Date and Due Date). The grid is bound on the client using results from a web service. The Invoice Date always populates correctly, but the Due Date only displays data for the top row in the grid. All of the other rows have a blank Due Date. All other columns are populated correctly.

As I said, everything works fine in IE, FireFox, Safari, etc. It is only Chrome that has the problem.

You can see a working example (or, non-working example as the case may be) by logging in to our demo site:
http://sandbox.invoicesmadeeasy.com/Login/UserLogin.aspx
Username: demo@invoicesmadeeasy.com
Password: demopass

Once you log in, click on the "Open (Unpaid)" folder on the left side of the screen to view the grid. You will see that all 3 rows have a Due Date in IE/FireFox/Safari, but if you log in using Chrome then only the top row displays the Due Date.

Any ideas?
Scott R
Top achievements
Rank 1
 answered on 14 Jun 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?