Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
68 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
137 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
703 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
378 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
191 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
141 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
226 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
144 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
130 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
2 answers
274 views

Hi

 

I am working on Batch Edit on heirarchical grid, I am able to read the  cell values bound to master grid, but not able to read the detail grid cell values. I am binding both master and detail grid using the datasource .

 .aspx

   <telerik:RadGrid ID="radDataEntry" runat="server" MasterTableView-NoDetailRecordsText=""
                                                                    AllowAutomaticDeletes="true"   AllowAutomaticUpdates="false"
                                                                      OnItemDeleted="radDataEntry_ItemDeleted" 
                                                                    MasterTableView-NoMasterRecordsText="" EnableEmbeddedSkins="false" Skin="DV"   OnBatchEditCommand="radDataEntry_BatchEditCommand"  OnItemUpdated="radDataEntry_ItemUpdated"
                                                                    SortingSettings-EnableSkinSortStyles="false" BorderStyle="None" EnableEmbeddedBaseStylesheet="false">
                                                                   <MasterTableView ShowFooter="false" EditMode="Batch" CommandItemDisplay="Top" AutoGenerateColumns="false" Name="source" Width="100%" ExpandCollapseColumn-Visible="true"
                                                                        TableLayout="Auto">
                                                                        <ItemStyle Height="30px" HorizontalAlign="Center" />
                                                                        <AlternatingItemStyle Height="30px" />
                                                                        <BatchEditingSettings EditType="Cell" />
                                                                       <CommandItemSettings ShowAddNewRecordButton="false" SaveChangesText="Update" CancelChangesText="Cancel" />

    <DetailTables>

               <telerik:GridTableView HierarchyDefaultExpanded="true" Name="AccountDetails" AutoGenerateColumns="False"  AllowAutomaticDeletes="true"  AllowAutomaticInserts="true" AllowAutomaticUpdates="true"    NoDetailRecordsText="<%$ Resources:Generic,NoResults %>" ShowHeader="false" EditMode="Batch"    AllowPaging="false" HierarchyLoadMode="Client">
       <ItemStyle Height="30px" HorizontalAlign="Center" />
       <AlternatingItemStyle Height="30px" />
       <BatchEditingSettings EditType="Cell" />
      <CommandItemSettings ShowAddNewRecordButton="false" SaveChangesText="Update" CancelChangesText="Cancel" />
             <Columns>
                   <telerik:GridBoundColumn DataField="Account.AccountID" HeaderText="" Display="false" />
                   <telerik:GridBoundColumn DataField="Account.AccountNumber" ReadOnly="true"  HeaderText="" />...........

                 <telerik:GridBoundColumn HeaderText="<%$ Resources:Generic,Total %>" UniqueName="Total"
                                                                                DataField="<%$ Resources:Generic,Total %>" HeaderStyle-Width="3%" ItemStyle-Width="3%">
                                                                            </telerik:GridBoundColumn>
             </Columns>
      </telerik:GridTableView>
    </DetailTables>

    <Columns>
          <telerik:GridBoundColumn HeaderText="Locations" UniqueName="Source"    DataField="<%$ Resources:Generic,Source %>" HeaderStyle-Width="10%"          ItemStyle-Width="10%"   ItemStyle-Font-Bold="true">

  </Columns>
 </MasterTableView>                                   
</telerik:RadGrid>

 

.vb

   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

Here i am getting e.Commands  count as 0 when trying to read the detail grid edited cell values., I have attached a screenshot where i am able to read the 8888 value which is bind to master grid and not able to read the 9999 value which is bind to the detail grid.

 

Please let me know to read the detail grid cell values

Thanks

Ramesh

Eyup
Telerik team
 answered on 14 May 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?