Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
310 views

I'm using the RadCloudUpload to load files to S3 but want to resize them before they are uploaded.  I can't seem to find any examples of how to do this.  Is this possible and if so, can you point me in the right direction?

 

Thanks!

Peter Milchev
Telerik team
 answered on 10 Jun 2020
7 answers
887 views

Issue 1:

I'm trying to add a radcolorpicker to a grid such that when inserting or updating a row, the color picker will display and it's selected value will show in the "Color" column field.

Using a templates i've added it to the edit column, but it doesn't do anything, can't even select colors, and when compiled and ran I get a javascript error: "Sys" is undefined.

I'm sure I have the basic idea of how to use it wrong.  Of course. :)

I have a scriptmanager in place, although I'm not going to speculate on what that does. :)

Any ideas on what I'm missing, or doing wrong?

Issue 2:

protected void RadColorPicker1_ColorChanged(object sender, EventArgs e)  
{  
   Label1.Text = ColorTranslator.ToHtml(RadColorPicker1.SelectedColor);  

When compiling this gives me a compile time Error -- 
"The name 'RadColorPicker1' does not exist in the current context ..."

How do I ensure it's context?

Al

<radG:RadGrid   
    ID="RadGrid2" runat="server" 
    Height="100px" 
    Width="500px" 
    Title="Rules" 
    BorderStyle="Solid"   
    BorderWidth="1px" 
    DataSourceID="ObjectDataSource1"   
    GridLines="None" 
    AllowAutomaticInserts="True" 
    AllowAutomaticUpdates="True" 
    AutoGenerateColumns="False" 
    MasterTableView-AllowPaging="true" 
    OnDeleteCommand="RadGrid2_DeleteCommand"   
    OnPreRender="RadGrid2_PreRender"   
    OnItemEvent="RadGrid2_ItemEvent"   
    OnItemInserted="RadGrid2_ItemInserted"   
    OnItemUpdated="RadGrid2_ItemUpdated"   
    OnCancelCommand="RadGrid2_CancelCommand"   
    OnDataBound="RadGrid2_DataBound" > 
    <MasterTableView  
        DataKeyNames="idExceptionRule"   
        DataSourceID="ObjectDataSource1" 
        AllowPaging="True" > 
        <ExpandCollapseColumn Visible="False">  
            <HeaderStyle Width="19px" /> 
        </ExpandCollapseColumn> 
        <RowIndicatorColumn Visible="False">  
            <HeaderStyle Width="20px" /> 
        </RowIndicatorColumn> 
        <Columns> 
            <radG:GridBoundColumn DataField="decMin" HeaderText="From" UniqueName="From">  
            </radG:GridBoundColumn> 
            <radG:GridBoundColumn DataField="decMax" HeaderText="To" UniqueName="To">  
            </radG:GridBoundColumn> 
            <radG:GridBoundColumn DataField="hexColourFont" HeaderText="Color" UniqueName="Color">  
                <ItemStyle BackColor="White" BorderColor="#404040" BorderStyle="Solid" BorderWidth="1px" 
                    HorizontalAlign="Left" VerticalAlign="Middle" /> 
            </radG:GridBoundColumn> 
            <radG:GridTemplateColumn DataField="hexColourFont" ShowSortIcon="False" UniqueName="TemplateColumn">  
                <EditItemTemplate> 
                   <telerik:RadColorPicker ID="RadColorPicker1" runat="server" Preset="Web216" 
                        ShowIcon="True" OnDataBinding="RadColorPicker1_ColorChanged" AutoPostBack="True" OnColorChanged="RadColorPicker1_ColorChanged">  
                    </telerik:RadColorPicker> 
                    <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label> 
                </EditItemTemplate> 
            </radG:GridTemplateColumn> 
            <radG:GridEditCommandColumn> 
            </radG:GridEditCommandColumn> 
            <radg:GridButtonColumn CommandName="Delete" Text="Delete" 
               UniqueName"DeleteColumn" ButtonType="ImageButton" ImageUrl=".\delete.gif" /> 
 
        </Columns> 
        <EditFormSettings> 
            <EditColumn UniqueName="EditCommandColumn1">  
            </EditColumn> 
        </EditFormSettings> 
    </MasterTableView> 
    <ValidationSettings CommandsToValidate="PerformInsert,Update,Delete" /> 
</radG:RadGrid>    
Attila Antal
Telerik team
 answered on 10 Jun 2020
1 answer
172 views
When I use RadColorPicker, select color and click on Apply button I get my page refreshed and I lost selected color. How this can be fixed. Is this some RadColorPicker functionality.

Rumen
Telerik team
 answered on 10 Jun 2020
3 answers
243 views

It is possible resize icon added in searchboxbutton?. I'have a bootstrap page that changes font size

<telerik:RadSearchBox ID="rsbGenero" runat="server" Skin="Bootstrap" RenderMode="Lightweight" Width="100%"
    MaxResultCount="10" DataValueField="ID" DataTextField="NOM"
    DataKeyNames="ID, NOM"
    DataSourceID="SqlDataSource"
    OnDataSourceSelect="rsbGenero_DataSourceSelect"
    OnSearch="radsearchbox_Search"
    OnButtonCommand="radserchbox_ButtonCommand"
    OnClientSearch="OnClientSearch"
    OnClientButtonCommand="OnClientButtonCommand">
    <DropDownSettings Height="300">
    </DropDownSettings>
    <Buttons>
        <telerik:SearchBoxButton CommandName="AddGenero" Position="Left" AlternateText="<%$ Resources:appGlobales,Alta %>" ImageUrl="../../imagenes/Telerik/Add-icon.png" />
    </Buttons>
</telerik:RadSearchBox>

 

I've tried it by CSS (cssclass on the button) but I can't do it. I also add another button dynamically (on search):

SearchBoxButton btnClean = new SearchBoxButton();
btnClean.ImageUrl = "~/imagenes/Telerik/close-icon.png";
btnClean.Position = SearchBoxButtonPosition.Right;
btnClean.CommandName = "Clean";
searchBox.Buttons.Add(btnClean);

 

Thank you in advance

Rumen
Telerik team
 answered on 10 Jun 2020
1 answer
282 views

Hi sir,

 

           I use radradiobuttonlist in that i have two item on item i too long and i use radwindow in that i show the radio button. in that first item is go outside the window.

the example is show in screenshot.

 

Note : 

              I need wrap text pls reply ASPA

 

Vessy
Telerik team
 answered on 10 Jun 2020
1 answer
165 views

Hi !

Is the first time i've got this problem and i'm sure is not unique for my next years.

Explanations :

A listview (with 5 records for example) generate 5 rows with link, data and buttons(full postback) and 2 buttons for ajaxPostback.

<asp:ListView runat="server" ID="lvTest" OnItemCommand="lvTest_ItemCommand" DataKeyNames="Idkey" >  
....  
</asp:ListView>


2 buttons : 
- One :

CommandArgument='<%#Eval("MyIDForTreatment1") %>' CommandName="CmNameButton1"

- Second : 

CommandArgument='<%#Eval("MyIDForTreatment2") %>' CommandName="CmNameButton2"

RadAjaxManager (conditional is for specifics button for fullpostback (example : download document):
 

<telerik:RadAjaxManager ID="RAM1" runat="server" UpdatePanelsRenderMode="Inline" ClientEvents-OnRequestStart="conditionalPostback" >
  
<telerik:AjaxSetting AjaxControlID="lvTest" EventName="ItemCommand">
<UpdatedControls>                   
<telerik:AjaxUpdatedControl ControlID="Zone1" />  
        </UpdatedControls>
</telerik:AjaxSetting>
 </telerik:RadAjaxManager>

 in code behind :
 

Protected Sub lvTest_ItemCommand(sender As Object, e As ListViewCommandEventArgs) 
   Case "CmNameButton1"
             'update content of zone 1 and visible true
   Case "CmNameButton2"
             'update content of zone 2 and visible true
   End Select
End Sub

 
 how to specify if i click on button1 : update Zone1
 how to specify if i click on button2 : update Zone2
 
 can't set commandName in AjaxSetting eventname ? for distinguished sender event ?

 

 

thanks for your help !

Attila Antal
Telerik team
 answered on 10 Jun 2020
2 answers
139 views

I've done drag and drop on other grids but for some strange reason, when I add the drag and drop column to the grid I get another (first) postback when I click on the containing tab.  No client side script, no events on tab clicks for the tab control. So strange.

<telerik:GridDragDropColumn HeaderStyle-Width="18px" >
</telerik:GridDragDropColumn>
Steven
Top achievements
Rank 1
Iron
 answered on 09 Jun 2020
1 answer
239 views

    I am using a javascript to check for unsaved changes, but when editing, adding a new line or refreshing the grid, the unsaved changes message box appears.  how can i stop this?   javascript code below:

 

<script type="text/javascript">
    // Store form state at page load
    var initial_form_state = $('#form1').serialize();

    // Store form state after form submit
    $('#form1').submit(function () {
        initial_form_state = $('#form1').serialize();
    });

    // Check form changes before leaving the page and warn user if needed
    $(window).bind('beforeunload', function (e) {
        var form_state = $('#form1').serialize();
        if (initial_form_state != form_state) {
            var message = "You have unsaved changes on this page. Do you want to leave this page and discard your changes or stay on this page?";
            e.returnValue = message; // Cross-browser compatibility (src: MDN)
            return message;
        }
    });
</script>

Doncho
Telerik team
 answered on 09 Jun 2020
1 answer
162 views

Hi,

We have a radgrid in our .aspx page with batchedit functionality, in which we have a column that contains checkboxes.
We will disable/enable the checkboxes based on the value from DB. 
We found an issue here, that is, when a checkbox is disabled based on DB value, and if a user comes and clicks beside the disabled checkbox (outside the checkbox; and inside the same cell in radgrid where this checkbox is present), the disabled checkbox is getting enabled.

Not sure why it is happening. Can someone please help?

Thanks in advance.

Doncho
Telerik team
 answered on 09 Jun 2020
4 answers
258 views
Hi,

I would like to know what happens or what are the restrictions if a trial period expires for UI for ASP.NET AJAX?

I am planning to download and try the free trial for my in-house project and demonstrate it with my management. However I do not have the whole 30 days to develop my business case.

What will happen to my project? Will the controls still work if the 30 day period lapsed?
Andy
Top achievements
Rank 1
 answered on 09 Jun 2020
Narrow your results
Selected tags
Tags
+? more
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?