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

Hi

My auto complete box gets populated with tokens programmatically by other actions on my page, I would like the user to be able to delete these tokens but not to be able to type in free text - is this possible?

 

Al
Top achievements
Rank 1
Iron
Iron
Iron
 answered on 10 Jul 2015
1 answer
259 views

Good Morning,
I use a RadPanelBar to hide or show the filter of a grid .

I use the same code in two webform identically (in both pages the PanelBar and the grid are within
a RadPageView,It could be an important detail) .

Image Bug 001 : Initial scenario panel bar filters initial uncompressed (Page correct)
Image Bug 002 : panel expanded bar after pressing the button "+" (Page correct)

In the second page, the filter part already expanded but it is not visible the entire structure of
panel bar but only its content . ( Image Bug 003 )
If I click on any part near the filter panel scomapre ( Image Bug 004 ) .

Does anyone know help me ?
I tried to replace the element ContentTemplate RadPanelItem with an ItemTemplate
but reading the documentation is it correct  use a ContentTemplate (in fact
the first page works ).

 

This is the code of first page (OK)

      <telerik:RadPageView ID="rpwCompany" runat="server">
          <div class="divFilters">
              <telerik:RadPanelBar runat="server" ID="pnlBarFilterCompany" Width="100%" ExpandMode="MultipleExpandedItems" Font-Bold="true">
                  <Items>
                      <telerik:RadPanelItem Expanded="false">
                          <ContentTemplate>
                              <div class="filterBox">
                                  <div class="filterItemContainer">
                                      <div class="filterItem">
                                          <asp:Label ID="lblTagFilterCompanyCode" runat="server" SkinID="TagFilter" CssClass="filterLabel" />
                                          <telerik:RadTextBox ID="txtFilterCompanyCode" runat="server" MaxLength="16" Width="100px" />
                                      </div>
 
                                      <div class="filterItem">
                                          <asp:Label ID="lblTagFilterCompanyName" runat="server" SkinID="TagFilter" CssClass="filterLabel" />
                                          <telerik:RadTextBox ID="txtFilterCompanyName" runat="server" MaxLength="16" Width="180px" />
                                      </div>
                                  </div>
                                  <div class="filterButton">
                                      <telerik:RadButton ID="btnSearchCompany" runat="server" Width="140px" Height="65px" Font-Bold="true"
                                          Font-Size="16px" ForeColor="#0167B1" OnClick="btnSearchCompany_Click">
                                          <Icon PrimaryIconUrl="~/Images/24x24/search.png" PrimaryIconHeight="24px" PrimaryIconWidth="24px" />
                                      </telerik:RadButton>
                                      <telerik:RadButton ID="btnResetFilterCompany" runat="server" Width="140px" Height="35px" Font-Bold="true"
                                          Font-Size="16px" ForeColor="Red" OnClick="btnResetFilterCompany_Click" Skin="Sunset">
                                      </telerik:RadButton>
                                  </div>
                              </div>
                          </ContentTemplate>
                      </telerik:RadPanelItem>
                  </Items>
              </telerik:RadPanelBar>
          </div>
          <telerik:RadGrid ID="gvListCompany" runat="server" AllowPaging="True" ...............

 This is the code of second page (Error)

<telerik:RadPageView ID="rpwValidity" runat="server">           
            <div class="divFilters">
                <telerik:RadPanelBar runat="server" ID="pnlBarFilterValidity" Width="100%" ExpandMode="MultipleExpandedItems" Font-Bold="true">
                    <Items>
                        <telerik:RadPanelItem Expanded="false">
                            <HeaderTemplate></HeaderTemplate>
                            <ContentTemplate>
                                <div class="filterBox">
                                    <div class="filterItemContainer">
                                        <div class="filterItem">
                                            <asp:Label ID="lblTagFilterValidityCode" runat="server" SkinID="TagFilter" CssClass="filterLabel" />
                                            <telerik:RadTextBox ID="txtValidityCodeFilter" runat="server" MaxLength="16" Width="100px" />
                                        </div>
 
                                        <div class="filterItem">
                                            <asp:Label ID="lblTagFilterValidityName" runat="server" SkinID="TagFilter" CssClass="filterLabel" />
                                            <telerik:RadTextBox ID="txtValidityNameFilter" runat="server" MaxLength="16" Width="180px" />
                                        </div>
 
                                        <div class="filterItem">
                                            <asp:Label ID="lblTagFilterOPTExpression" runat="server" SkinID="TagFilter" CssClass="filterLabel" />
                                            <telerik:RadTextBox ID="txtOPTExpressionFilter" runat="server" MaxLength="16" Width="180px" />
                                        </div>
 
                                        <div class="filterItem">
                                            <asp:Label ID="lblTagFilterStartProductionDateFrom" runat="server" SkinID="TagFilter" CssClass="filterLabel" />
                                            <telerik:RadDatePicker ID="rdpStartProductionDateFromFilter" runat="server" Width="180px" AutoPostBack="true" OnSelectedDateChanged="rdpStartProductionDateFromFilter_SelectedDateChanged" />
                                        </div>
 
                                        <div class="filterItem">
                                            <asp:Label ID="lblTagFilterStartProductionDateTo" runat="server" SkinID="TagFilter" CssClass="filterLabel" />
                                            <telerik:RadDatePicker ID="rdpStartProductionDateToFilter" runat="server" Width="180px" AutoPostBack="true" OnSelectedDateChanged="rdpStartProductionDateToFilter_SelectedDateChanged" />
                                        </div>
 
                                        <div class="filterItem">
                                            <asp:Label ID="lblTagFilterLanguage" runat="server" SkinID="TagFilter" CssClass="filterLabel" />
                                            <telerik:RadComboBox ID="ddlLanguageFilter" runat="server" Width="120px" />
                                        </div>
 
                                    </div>
                                    <div class="filterButton">
                                        <telerik:RadButton ID="btnSearchValidity" runat="server" Width="140px" Height="65px" Font-Bold="true"
                                            Font-Size="16px" ForeColor="#0167B1" OnClick="btnSearchValidity_Click">
                                            <Icon PrimaryIconUrl="~/Images/24x24/search.png" PrimaryIconHeight="24px" PrimaryIconWidth="24px" />
                                        </telerik:RadButton>
                                        <telerik:RadButton ID="btnResetFilterValidity" runat="server" Width="140px" Height="35px" Font-Bold="true"
                                            Font-Size="16px" ForeColor="Red" OnClick="btnResetFilterValidity_Click" Skin="Sunset">
                                        </telerik:RadButton>
                                    </div>
                                </div>
                            </ContentTemplate>
                        </telerik:RadPanelItem>
                    </Items>
                </telerik:RadPanelBar>
            </div>
            <telerik:RadGrid ID="gvListValidity" runat="server" AllowPaging="True" ......


Nencho
Telerik team
 answered on 10 Jul 2015
3 answers
210 views

I have many dropdowns in my webform application and they all behave correctly except on one page. On the page in question the dropdown behaves differently

  • If I click on the arrow the dropdown list appears
    • as I move the mouse it will highlight an item only when the mouse is hovering over the actual text in the list
  • If instead of the arrow I click on the control to get a dropdown the dropdown will only appear if I click an area where text exists.  
  • When trying to make a selection this will only happen if I click the area of the highlighted row where text exists.
  • If I just click a highlighted row with the mouse pointer over a clear bit of highligting it will not select.

Any ideas why this may be happening?

Aneliya Petkova
Telerik team
 answered on 10 Jul 2015
1 answer
94 views

Currently we are using Telerik Radeditor for our web application but the end users are having issues in copying & pasting content from word document to the radeditor. Also the html getting generated from pasting the word content is having some issues like some unwanted characters are generated leading to formatting isuue.

 Please suggest some word like editor that will be helpful in this regard.

Ianko
Telerik team
 answered on 10 Jul 2015
11 answers
1.0K+ views

 

Hi All

I have a RadCombobox, and the very first item on the list is added in the code behind.

With ddlApptClinic

.Items.Clear()
.Items.Insert(0, New RadComboBoxItem("Any Clinic", -1))
.Items.Insert(0, New RadComboBoxItem("", 0))

I have now added a template item, and the above are missing. How do I add items when I have an item Template

<ItemTemplate>

 <%# DataBinder.Eval(Container.DataItem, "ClinicCode")%><br />
 <%# DataBinder.Eval(Container.DataItem, "ClinicDescription")%>

</ItemTemplate>

Andy

Sujath
Top achievements
Rank 1
 answered on 10 Jul 2015
1 answer
103 views

Ho can I highlight the row when the checkbox is selected?

I added the following, but it doen't work after a filter or sort because the rowIdx is correct only when all rows are displayed. 

Any idea

CODE BEHIND: 
----------------------

  int rowIdx = 0;
  protected void grdLegalEntities_ItemCreated(object sender, GridItemEventArgs e)
        {
              if (e.Item is GridDataItem)
            {
                GridDataItem item = (GridDataItem)e.Item;
                CheckBox chk = (CheckBox)item["clmyesno"].Controls[0];
                chk.Enabled = true;
                chk.Attributes.Add("onclick", "SelectCurrentRow(" + rowIdx + ");");
                rowIdx++;
            }
        }

JAVASCRIPT:
---------------------
function SelectCurrentRow(rowIdx) 
{
    var grid = $find('<%=grdLegalEntities.ClientID %>');               
    grid.get_masterTableView().get_dataItems()[rowIdx].set_selected("true");
}

 

Eyup
Telerik team
 answered on 10 Jul 2015
2 answers
637 views

hi,

i am using your telerik datagrid, every thing works fine but i need to pass the filter values to the sql datasource (or a simple objectdatasource).

Can you help me?

thanks!

<asp:SqlDataSource ID="SqlDataSource1"
                    ConnectionString="***"
                    ProviderName="System.Data.OracleClient" SelectCommand="select * from MAINITEMS" runat="server">
 </asp:SqlDataSource>
 
<telerik:RadGrid runat="server" ID="RadGrid1" Width="99%" Height="600px"
                    DataSourceID="SqlDataSource1"
                    AllowFilteringByColumn="True" AllowSorting="True"
                    ShowFooter="False" ShowHeader="True"
                    OnPreRender="RadGrid1_OnPreRender"
                    AllowAutomaticDeletes="False"
                    AllowAutomaticUpdates="False"
                    AllowAutomaticInserts="False"
                    AutoGenerateColumns="True"
                    AllowPaging="True" PageSize="30"
                    ShowGroupPanel="True" >
             
                        <GroupingSettings CaseSensitive="false" ShowUnGroupButton="true"></GroupingSettings>
                        <%--configurazione per spostare le colonne--%>
                        <ClientSettings AllowColumnsReorder="true" ReorderColumnsOnClient="true" AllowKeyboardNavigation="true" AllowDragToGroup="True">
                            <Scrolling AllowScroll="True" UseStaticHeaders="True" SaveScrollPosition="true"></Scrolling>
                        </ClientSettings>
 
                        <MasterTableView CommandItemDisplay="None" DataKeyNames="ID" AllowFilteringByColumn="True" >
                        </MasterTableView>
 
                </telerik:RadGrid>

Eyup
Telerik team
 answered on 10 Jul 2015
1 answer
49 views

Hi,

when I selected a row on my grid (A) I load another grid (B) based on the selection.

Grid B is always open on edit mode

When I click on button located into grid A I need to find the edited items on grid B

I try to be more clear...

1. Select row on grid A

2. Open grid B in edit mode

3. Edit cells on grid B

4. Press button on grid A and find the edited cells on grid B

How can I find the edited cells on grid B?

 

Thank you

Kostadin
Telerik team
 answered on 10 Jul 2015
3 answers
115 views

Hello, 

2 questions:

1. I am currently trying to implement a functionality that can expand/collapse all tasks in grantt view. Are there some build-in tools that can be used to implement these functionalities?

2. I also want to load the subtasks of a root task if it is expanded. So I am looking for a function that notifies if a task is expanded.

Thanks.

 

 

 

SANJAY
Top achievements
Rank 1
 answered on 10 Jul 2015
3 answers
53 views

The adaptive datapager is almost unusable on my android phone.

 It starts off fine with

1,2,3, ....

When I click the ...(3dots)  it takes me to the end.  Still good.

It shows

..., 11,12,13

 But when I click the ...(3dots) it only takes me to:

8,9,10, ...

How do I get back to the beginning. The way this works in useless.

 Marty

Pavlina
Telerik team
 answered on 09 Jul 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?