Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
292 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
338 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
188 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
164 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
278 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
212 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
301 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
5 answers
376 views
Hi.

I've been having some trouble getting the ASP.NET Ajax Controls to look as they should with certain CSS Stylesheets.  I've been mostly been "hacking" by trial/error the base CSS files for some sites and somewhat have gotten the controls to look similar to what they should although not achieving the exact look and feel they have with "standard" CSS stylesheets.  

I know this this because of the way CSS cascade their styles, but I would like to know if there is a way to either have the stylesheets for the controls "override" the site styles for the elements that the controls use, or if you could provide us with stylesheets for each skin to "reset" the telerik controls styles.

One example of this could be seen by using the Telerik ASP.NET Controls with  with the popular bootstrap css framework (http://twitter.github.com/bootstrap).  But other style sheets, buying a website template, for example, also results in the same behavior.

Is there a way around this?

Thanks.
Vessy
Telerik team
 answered on 09 Jun 2020
3 answers
424 views

I don't know if this is a bug or by design for some reason when you have the MaxSelectedItems attribute set and you have TagMode="Single" once you reach the max number of selections allowed you can no longer click in the control and have it dropdown so you can see what you have actually selected. You have to hit the displayed "x" in the control to clear the values in order to have the dropdown list of values appear again.

Does anyone know of a way around this? I know our clients are going to want to actually be able to see what they have selected when they are editing the form values.

Thanks!

Vessy
Telerik team
 answered on 08 Jun 2020
1 answer
268 views

Hi, I have a radHtmlChart and have set it to 100% height and width - but it does not seem to stretch.  It goes to a deafult value of about 800px

My code is below 

  <div id="Manufacturers" class="w3-container city" style="display:block; height:1800px; width:1800px; ">
     <telerik:RadHtmlChart runat="server" Transitions="true" Skin="Silk" Width="100%" Height="100%" ID="ChartManufacturers"   ChartTitle-Text="Car Manufacturers"            PlotArea-XAxis-DataLabelsField="Manufacturer" PlotArea-XAxis-LabelsAppearance-RotationAngle="50"   >
     <PlotArea>
         <Series>
             <telerik:ColumnSeries DataFieldY="Count" />
         </Series>
     </PlotArea>
     </telerik:RadHtmlChart>
  </div>

Any ideas as to why it does not strecth the full 100% - see attached pic of how it looks

Many thanks in advance

Vessy
Telerik team
 answered on 08 Jun 2020
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?