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

I have an RadSlider (ItemSlider):

<telerik:RadSlider ID="RadSlider1" runat="server" ItemType="item" Width="325px"
                              Height="45px" AnimationDuration="400" CssClass="ItemSlider"
                              ThumbsInteractionMode="Free" TrackPosition="BottomRight" Value="5" >
                            <Items>
                                <telerik:RadSliderItem Text="1" Value="1"></telerik:RadSliderItem>
                                <telerik:RadSliderItem Text="2" Value="2"></telerik:RadSliderItem>
                                <telerik:RadSliderItem Text="3" Value="3"></telerik:RadSliderItem>
                                <telerik:RadSliderItem Text="4" Value="4"></telerik:RadSliderItem>
                                <telerik:RadSliderItem Text="5" Value="5"></telerik:RadSliderItem>
                                <telerik:RadSliderItem Text="6" Value="6"></telerik:RadSliderItem>
                                <telerik:RadSliderItem Text="7" Value="7"></telerik:RadSliderItem>
                                <telerik:RadSliderItem Text="8" Value="8"></telerik:RadSliderItem>
                                <telerik:RadSliderItem Text="9" Value="9"></telerik:RadSliderItem>
                                <telerik:RadSliderItem Text="10" Value="10"></telerik:RadSliderItem>                                
                            </Items>
</telerik:RadSlider>     

 

How do I shift the "ticks" so that they line up exactly with the "Text"?

 

Requirements: I need the ability to click and have the slide go to my click position.  I also need tick marks that line up with the slider Text.

Young
Top achievements
Rank 1
 answered on 14 May 2015
2 answers
85 views

I would like to fill in some custom footer information after search results are returned from a web service.  In the RadComboBox it was as easy as setting the RadcomboBoxData.Message property - how does one go about doing it for a SearchBox?  I would like to display either the number of items found + total search time, or a message saying "Please enter 3 characters to search".  

One possible solution is to return only 1 item with the message to display, and a null value; then upon client items requesting has ended look through the results in javascript, remove it if it fits the critieria and set the footer - but I don't even see any client events for when the search results are received.

Thank you in advance,
John

John
Top achievements
Rank 1
 answered on 14 May 2015
2 answers
160 views

Hi,

I am trying to add a RadWindow as popup which will show at page load.

I don't want to use Javascript. I am a beginner to Telerik. Any answer is appreciated.

Thanks!

Simon
Top achievements
Rank 1
 answered on 14 May 2015
3 answers
749 views

Hello,

I have two columns of button with a fixed width header (HeaderStyle-Width) and all columns automatically fit the width of the grid, but to enable the scroll (<Scrolling AllowScroll ="true" UseStaticHeaders="true" />), the scroll does not appear.

<telerik:RadGrid ID="dbgCuentasCorreos" runat="server" AutoGenerateColumns="False" AllowPaging="True" AllowSorting="True" AllowMultiRowSelection="false">
                <MasterTableView ShowFooter="True" DataKeyNames="IdEmpresa, IdCuenta" CommandItemDisplay="Top" PagerStyle-Mode="NextPrevNumericAndAdvanced" InsertItemDisplay="Top" InsertItemPageIndexAction="ShowItemOnFirstPage" TableLayout="Fixed">
                    <Columns>
                        <telerik:GridEditCommandColumn UniqueName="EditCommandColumn"  ButtonType="ImageButton" HeaderStyle-Width="30" EditImageUrl="../imagenes/Edit.png" InsertImageUrl="../imagenes/Edit.png"></telerik:GridEditCommandColumn>
                        <telerik:GridBoundColumn UniqueName="IdCuenta" DataField="IdCuenta" HeaderText="Cuenta" DataType="System.Int64"></telerik:GridBoundColumn>
                        <telerik:GridBoundColumn UniqueName="Nombre" DataField="Nombre" HeaderText="Nombre" DataType="System.String" MaxLength="100"></telerik:GridBoundColumn>
                        <telerik:GridBoundColumn UniqueName="Descripcion" DataField="Descripcion" HeaderText="Descripción" DataType="System.String" MaxLength="200"></telerik:GridBoundColumn>
                        <telerik:GridBoundColumn UniqueName="Estado" DataField="Estado" HeaderText="Estado" DataType="System.String" Display="false"></telerik:GridBoundColumn>
                        <telerik:GridButtonColumn ConfirmText="Desea eliminar este registro?" HeaderStyle-Width="30" ConfirmDialogType="RadWindow" ConfirmTitle="Eliminar" ButtonType="ImageButton"
                            CommandName="Delete" ImageUrl="../imagenes/Delete.png" UniqueName="DeleteColumn" Text="Eliminar" FilterControlAltText="Filter DeleteColumn column">
                        </telerik:GridButtonColumn>
                    </Columns>
                    <PagerStyle Mode="NextPrevNumericAndAdvanced"></PagerStyle>
                </MasterTableView>
                <ClientSettings>
                    <Selecting AllowRowSelect="true" />
                    <Scrolling AllowScroll ="true" UseStaticHeaders="true" />
                </ClientSettings>
            </telerik:RadGrid>

 

If remove the header fixed width of the two columns, the scroll if it appears.

 

Thanks for your help.

Pavlina
Telerik team
 answered on 14 May 2015
7 answers
431 views
When I have a device that is small enough to  show the hamburger part, how can I only show the hamburger button.  I want to put some text to the left of the button where is now only dead space.

Marty
Magdalena
Telerik team
 answered on 14 May 2015
1 answer
219 views

I have a telerik DDL like so:

 

 

<telerik:RadDropDownList ID="rddlNames" runat="server" DataSourceID="NamesDataSource" DataTextField="Name" DataValueField="ID" OnSelectedIndexChanged="rddlNames_SelectedIndexChanged" OnDataBound="rddlNames_DataBound" AutoPostBack="True" CausesValidation="false"></telerik:RadDropDownList>

​

protected void rddlNames_SelectedIndexChanged(object sender, Telerik.Web.UI.DropDownListEventArgs e)
        {
            radTileList.Visible = true;
            radTileK.NavigateUrl = "KSignOut.aspx?DC=" + rddlNames.SelectedItem.Text;
            radTileT.NavigateUrl = "TSignOut.aspx?DC=" + rddlNames.SelectedItem.Text;
            radTileManageT.NavigateUrl = "ManageT.aspx?DC=" + rddlNames.SelectedItem.Text;
            radTileManageK.NavigateUrl = "ManageK.aspx?DC=" + rddlNames.SelectedItem.Text;
            radTileManageR.NavigateUrl = "ManageR.aspx?DC=" + rddlNames.SelectedItem.Text;
        }
 
        protected void rddlNames_DataBound(object sender, EventArgs e)
        {
            rddl.Items.Insert(0,new Telerik.Web.UI.DropDownListItem("---"));
                rddlNames.Items[0].Enabled = false;// Attributes.Add("disabled", "disabled");
            rddlNames.Items[0].Selected = true;
        }

 

 There is one major issue with it in that the selectedIndexChanged doesn't trigger when navigating to the root of the website i.e. http://locahost:1234

But if I navigate to http://localhost:1234/Default it works fine.

This is causing huge confusion among the users which keep reporting the website as not working.

 

Please suggest a fix for this as it is quite urgent.

 

Thank you.

Nencho
Telerik team
 answered on 14 May 2015
2 answers
164 views
when you double click on a task in the gantt chart, it's easy enough to change the contents of the editor popup that comes up using the gantt's editable => template feature.  This does not allow you to change the title though, which still says 'task' at the top.  Where can you change that?
BRAD
Top achievements
Rank 1
 answered on 14 May 2015
2 answers
254 views

Greetings,

I have applied a site-wide skin in my web.config file like so:

<appSettings>

   <add key="Telerik.Skin" value="Default" />
</appSettings>

 

I have specified a loading panel in my master page(s) like so:

<telerik:RadAjaxLoadingPanel runat="server" ID="MainLoadingPanel" CssClass="load-panel" IsSticky="true" Skin="Metro" />

 

Please note the difference in skins. My objective is to have all loading panels observe the Metro skin while all other controls side-wide observe the Default skin. As it currently stands, the Default skin is applied to the loading panel when opening a Rad Window.  All other actions display the Metro loading panel as desired - it's only the loading panel that is visible when opening a Rad Window that fails.  What am I doing wrong?

 Many Thanks,

Paul

Paul
Top achievements
Rank 1
 answered on 14 May 2015
1 answer
171 views

I have the following code in the " radGrid1_OnInfrastructureExporting" method:

 

foreach (Cell cell in e.ExportStructure.Tables[0].Columns[1].Cells)
               {
                   var count = 0.00;
                   count++;
 
                   var numStyles = NumberStyles.AllowParentheses | NumberStyles.AllowThousands |
                                   NumberStyles.AllowDecimalPoint;
                   var cellValue = string.Empty;
 
                   cellValue = cell.Text;
 
                   cellValue = cellValue.Replace("<b>", "").Replace("</b>", "").Replace("--", "").Replace(" ", "");
                   cell.Value = cellValue;
 
                   var outCellValue = 0.00;
                   var isNumeric = double.TryParse("cellValue", out outCellValue);
                   var isEmptyOrNull = string.IsNullOrEmpty(cellValue);
 
                   var isText = !isNumeric && !string.IsNullOrEmpty(cellValue) ? true : false;
 
 
                   //if (cellValue.Length >0 && !)
                   if (!isText && !isEmptyOrNull)
                   {
                       cellValue = Double.Parse(cellValue, numStyles).ToString();
                       cell.Value = GetLocalizedValueForExcelExport(Convert.ToDouble(cellValue));
                   }
               }

 

Now I know i have columns[1].Cells so i'm only touching one column but for the life of me I cannot seem to get at all the columns in the grid?

If I type the following into a watch at run time I get:

e.ExportStructure.Tables[0].Columns.Count = 1

So this should be a simple fix. How can I iterate all columns.

Every way that I have tried to get access to all columns in the OnInfrastructureExporting has failed?

 

thanks


Konstantin Dikov
Telerik team
 answered on 14 May 2015
1 answer
145 views

Hi 

I am not able to read detail table oldvalues and newvalues  from the below code, i am able to read the master table cells 

 

 Protected Sub radDataEntry_BatchEditCommand(sender As Object, e As Telerik.Web.UI.GridBatchEditingEventArgs) Handles radDataEntry.BatchEditCommand
        Dim newValues As Hashtable
        Dim oldValues As Hashtable

        For Each command As GridBatchEditingCommand In e.Commands
            If (command.Type = GridBatchEditingCommandType.Update) Then
                newValues = command.NewValues
                oldValues = command.OldValues
                '  Dim ID As String = newValues("ID").ToString()
            End If
        Next
       
    End Sub

 

Please let me know how to get the detail table cell values using GridBatchEditingCommand , i have attached the structure of the grid where i am not able to read  9999 whereas i am able to read 8888

 

Thanks

Eyup
Telerik team
 answered on 14 May 2015
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
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
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?