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

Hi guys!

Sorry, dumb question:

How can I show a lightbox automatically when the page loads?

I have a login form that I would like to pop up after the page "login.aspx" is loaded ... all I get is an empty page ....

"<asp:LoginView ID="LoginView1" runat="server">
<AnonymousTemplate>
<asp:Login ID="Login1" runat="server">"

How can I achieve that?

Thanks in advance for your help

Tom

Attila Antal
Telerik team
 answered on 10 Jun 2020
6 answers
589 views
I am trying to use the AutoCompleteBox on the home page of a real estate web site.  I want the users to be able to enter a city name, zip code, MLS number, etc. and have the AutoCompleteBox identify the item to be searched and continue with the search processing.

The problem I am having is trying to change the textbox height, width, font, etc.  It seems to always revert back to a default size.  I seem to be able to change the width, but no other properties.  And in its default size, the AutoCompleteBox is just way too small on a home page to attract the users' attention.

Does anyone know how I can accomplish these changes?

Please note: I have already eliminated the RadFormDecorator from the page so there is no issue caused by it.

Thanks in advance!

Lynn
Vessy
Telerik team
 answered on 10 Jun 2020
4 answers
290 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
779 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
146 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
224 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
242 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
151 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
110 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
220 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?