I have several questions regarding the Rad Image Editor:
1) I would like to pass two values (crop x & y) from the main page code behind to the imageEditor? Thus allowing the user to select an area of the image they want to use in the calling page. In addition I would like crop to be enabled in the imageEditor (by default)
2) Can the number of controls available to the user be reduced (e.g. remove opacity, flip, rotate and crop) what is the best way to customise the imageEditor.aspx file?
3) Is it possible to have a maximise/restore default icon (in the top right of the window, next to ‘x’ Close) to increase the page size is the user has a large image?
4) If the user uploads an image that is too big to fit in the imageEditor, is it possible to automatically resize the image to fit the available size?
Please note:
I am opening the image manager directly using the dialog opener.
Telerik Controls Q2 2009 Version 2009.2.826.20
I look forward to your reply

<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<telerik:RadWindowManager ID="ohsRadWindowManager" runat="server" KeepInScreenBounds="true" ReloadOnShow="true" ShowContentDuringLoad="false" VisibleStatusbar="false" >
<windows>
<telerik:RadWindow ID="radObserverAdd" NavigateUrl="Popup/Observer.aspx" OpenerElementID="<%# lnkObserverAdd.ClientID %>" OnClientClose="ReloadParent" runat="server" Title="Add observer">
</telerik:RadWindow>
</windows>
</telerik:RadWindowManager>
...
<telerik:RadGrid runat="server" GridLines="None" ID="rgObservedBy" AutoGenerateColumns="False" EnableViewState="false" Visible="true">
<mastertableview CssClass="DataTable" CommandItemDisplay="Top" >
<Columns>
<telerik:GridBoundColumn HeaderText="Name" HeaderTooltip="Name" ReadOnly="True" UniqueName="colName" DataField="EmployeeNetworkUsername">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn HeaderText="Contact Number" HeaderTooltip="Contact Number" ReadOnly="True" UniqueName="colContactNumber">
</telerik:GridBoundColumn>
<telerik:GridTemplateColumn ReadOnly="True" UniqueName="colActions">
<ItemTemplate>
<asp:ImageButton ID="ibtnEdit" AlternateText="Edit" ImageUrl="/aspnet_client/system_web/2_0_50727/Themes/images/btn_vs_edit.gif" ToolTip="Edit" runat="server" AccessKey="e" />
<asp:ImageButton ID="ibtnRemove" AlternateText="Remove" ImageUrl="/aspnet_client/system_web/2_0_50727/Themes/images/btn_vs_remove.gif" ToolTip="Remove" runat="server" AccessKey="r" />
</ItemTemplate>
</telerik:GridTemplateColumn>
</Columns>
<CommandItemTemplate>
<asp:HyperLink ID="lnkObserverAdd" ToolTip="Add observer (opens new window)" Target="_blank" ImageUrl="/aspnet_client/system_web/2_0_50727/Themes/images/btn_vs_add.gif" runat="server" NavigateUrl="Popup/Observer.aspx"/>
</CommandItemTemplate>
</mastertableview>
</telerik:RadGrid>
***
Many Thanks,
Ryan Bartsch
We bought the package of controls and enjoy your very use it!
In use Grid - are there a possibility to catch events of grid controls?
We have two GridDropDownColumn one of the city and other of the street - we want that on choice of the GridDropDown city the GridDropDown street, will be refresh by the selected city.
The question is how catch the event on server side GridDropDown events?
We tried to register to the event on Grid_itemDataBound event but apparently it's too late Because It did not register.
protected
void Grid_mdr_Midrasha_ItemDataBound(object sender, GridItemEventArgs e)
{
if (e.Item is GridEditableItem && e.Item.IsInEditMode)
{
RadComboBox list = (e.Item as GridEditableItem)["iCityId"].Controls[0] as RadComboBox;
list.MarkFirstMatch =
true;
list.SelectedIndexChanged +=
new RadComboBoxSelectedIndexChangedEventHandler(list_SelectedIndexChanged);
}
}



| RadGridAudioFileReport = New RadGrid |
| Dim boundColumnClientID, boundColumnClient, boundColumnTotal As New GridBoundColumn |
| Dim templatecolumnActive, templatecolumnSupport, templatecolumnFinal As New GridTemplateColumn |
| RadGridAudioFileReport.DataSource = Nothing |
| RadGridAudioFileReport.DataSource = Fill_Allocation_Report_Grid() |
| RadGridAudioFileReport.Width = Unit.Pixel(2600) |
| RadGridAudioFileReport.Skin = "Office2007" |
| RadGridAudioFileReport.AutoGenerateColumns = False |
| RadGridAudioFileReport.MasterTableView.DataKeyNames = New String() {"Client_ID"} |
| boundColumnClientID.HeaderText = "Client_ID" |
| boundColumnClientID.DataField = "Client_ID" |
| boundColumnClientID.UniqueName = "Client_ID" |
| boundColumnClientID.Visible = False |
| RadGridAudioFileReport.MasterTableView.Columns.Add(boundColumnClientID) |
| boundColumnClient.HeaderText = "Client" |
| boundColumnClient.DataField = "Client" |
| boundColumnClient.UniqueName = "Client" |
| RadGridAudioFileReport.MasterTableView.Columns.Add(boundColumnClient) |
| boundColumnTotal.HeaderText = "Total" |
| boundColumnTotal.DataField = "Total" |
| boundColumnTotal.UniqueName = "Total" |
| templatecolumnActive.HeaderTemplate = New MyTemplateActiveHeader() |
| templatecolumnActive.ItemTemplate = New MyTemplateActiveItems() |
| RadGridAudioFileReport.MasterTableView.Columns.Add(templatecolumnActive) |
| Dim tableViewAccounts As New GridTableView(RadGridAudioFileReport) |
| Dim boundColumnAccountID, boundColumnAccount As New GridBoundColumn |
| tableViewAccounts.DataSource = Accounts_FileAllocation_Report_Data() |
| tableViewAccounts.Width = Unit.Percentage(100) |
| tableViewAccounts.AutoGenerateColumns = False |
| tableViewAccounts.DataKeyNames = New String() {"accountid"} |
| Dim relationFields As GridRelationFields = New GridRelationFields() |
| tableViewAccounts.ParentTableRelation.Add(relationFields) |
| RadGridAudioFileReport.MasterTableView.DetailTables.Add(tableViewAccounts) |
| boundColumnAccountID.DataField = "accountid" |
| boundColumnAccountID.HeaderText = "accountid" |
| boundColumnAccountID.UniqueName = "accountid" |
| 'boundColumnAccountID.Visible = False |
| tableViewAccounts.Columns.Add(boundColumnAccountID) |
| boundColumnAccount.DataField = "account" |
| boundColumnAccount.HeaderText = "Account" |
| boundColumnAccount.UniqueName = "Account" |
| tableViewAccounts.Columns.Add(boundColumnAccount) |
| RadGridAudioFileReport.DataBind() |
| Me.PlaceHolder1.Controls.Add(RadGridAudioFileReport) |
| Public Function Accounts_FileAllocation_Report_Data(ByVal client_id As String) |
| MsgBox(client_id.ToString()) |
| cmd = New MySqlCommand("SELECT id as accountid,accname as account FROM account_master where ccode='" & client_id & "' and delflag=0;", con) |
| myda = New MySqlDataAdapter(cmd) |
| AccountsActiveDT = New DataTable |
| myda.Fill(AccountsActiveDT) |
| Return AccountsActiveDT |
| End Function |