Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
236 views
Hi,

I have created a tab strip consisting of 3 tabs.
Each tab has different pageview ID's and each RADPAGEVIEW  had different widths.

I have used "scroll" property to enable scrolling in radpageview which has more width than normal.

Every things are working fine except the "RadListbox" control.

When i use scrollbar(Horizontal scroll bar), the postion of the listbox is not updated with respect to scroll amount. The Listbox just stays in the same position even after scrolling.

It comes back to its original alignment only when mouse is moved over on it.

I checked with other rad controls like radcombobox, radtextbox and everything is able to relocate. But radlistbox keeps floating away irrespective of the scroll positon.

You can refer the attachment to get clear idea about my scenario.

Any help would be appreciated.


Regards,

Muthusamy
Muthusamy V
Top achievements
Rank 1
 answered on 27 Sep 2010
3 answers
532 views

Hello Everyone,

I Have a problem regarding a particular Grid Column.
I have a grid with many column. One Column is called "Description". In this column there is a posibility that the string is too long that it would wrap.

I already look this tutorial: "No wrap for grid cell content"  and my column did not wrap.
I also added

<style type="text/css">

 

.MasterTable_WebBlue td

{

overflow:hidden;

}

.GridHeader_WebBlue

{

overflow: hidden;

}

 

</style>

My problem now is that i need to display an Ellipsis "..."  on that column only.
I need to display ... before the string ends.

 

 

 


or 

Is there a way to dispaly "..." after a certain number of character?






 

Andrea
Top achievements
Rank 2
Iron
 answered on 27 Sep 2010
3 answers
123 views
i have a treeView in master page which is generated compltly on code behind and it is added to a place holder.
Problem is that the tree view is always in its first state when navigate from a page to new page.
Data is taken from dataBase
eg: TreeView look like

Select
    *Company
    *Company Role

intialy its like

Select

and when i select Company, the treeview is in the state

Select
itself

but i need

Select
    *Company
    *Company Role

My Code Look Like

 

public partial class Home : System.Web.UI.MasterPage
{
    protected void Page_Init(object sender, EventArgs e)
    {
        RadTreeView m1 = new RadTreeView();
  
        DynamicMenuBLL objDynMainMenu = new DynamicMenuBLL();
        m1 = objDynMainMenu.GetMenuTree();
  
        placeHolder.Controls.Add(m1);
    }
  
    protected void Page_Load(object sender, EventArgs e)
    {
  
    }
}

please give a solution.

Thank You.

 

 

 

Nikolay Tsenkov
Telerik team
 answered on 27 Sep 2010
0 answers
196 views
Hi,

We have an issue with the select and clear functionality within the text area of the Telerik Editor and hope that you can provide a resolution to it. In general when a user uses their mouse cursor to select a some text (within a small paragraph and including spaces or returns) then deletes it the related selected text formatting span, strong, em and paragraph tags remain within the HTML with the contents cleared.

The steps to re-produce this issue are as follows:

1.     Clear any contents from the editor including HTML.

2.     Add some text with varying formats and paragraph/line breaks.

3.     Select some or all of this text using the mouse cursor.

4.     Delete this text using the delete key on the keyboard.

5.     Open up the HTML view tab within the editor.

6.     It can be seen that the empty HTML tags are left.


Note:These steps were attempted within your editor demonstration page and the same results were acchieved
Address Used http://demos.telerik.com/aspnet-ajax/editor/examples/default/defaultcs.aspx


I am aware of the ability to use filtering in javascript using 'getHtmlContent' or 'getDesignContent' and then use a '/<([a-zA-Z]+) ?[^>]*?>\s*<\/\1>/gi' regular expression to remove single instances of empty tags however this will not always work with multiple embedded spans and strong/em tags.

I have also noted that when the "select all" functionality used either as a shortcut 'Ctrl+A' or through the toolbar button is used then the contents deleted the HTML tags are also cleared however this does not occur if the editor contents are selected through the use of the mouse cursor 'Highlighted'.

Idealy we need the editor contents be updated as the user is inputting them (dynamically) and not on update or view change. This is a necessity as the editor contents need to be kept in close synchronisation with the saved/updated contents. If a filter is applied on update using the 'getHtmlContent' or 'getDesignContent' to remove empty HTML tags after we have found that it causes inconsistencies in the formatting result due to the removal of these empty HTML tags therefore we need to remove them before the update/save operation (dynamically).

Thanks.
Graham C
Graham
Top achievements
Rank 1
 asked on 27 Sep 2010
14 answers
456 views
HI,

I created radgrid with show or hide filter option on button click.  when i click show filter option Its looking good No issues. My problem is when i re-size the column to click on the filter button there is empty space is coming in the first row (Please see the image 3). Because of that the pagination is not displaying. I tried it by removing div tags but no luck... Can any one help me how to fix this. Thanks...

<div style="width: 100%; height: 650px; overflow: auto; overflow-y: hidden">
    <telerik:RadGrid ID="gvPjtMnt" runat="server" Height="550px" Width="99%" AutoGenerateColumns="false"
        BorderWidth="2px" BorderStyle="Solid" BackColor="White" AllowPaging="True" PagerStyle-AlwaysVisible="true"
        PageSize="20" AllowSorting="True" AllowFilteringByColumn="true" OnNeedDataSource="gvPjtMnt_OnNeedDataSource"
        OnItemCommand="gvPjtMnt_ItemCommand" OnItemCreated="gvPjtMnt_ItemCreated" OnItemDataBound="gvPjtMnt_ItemDataBound">
        <HeaderStyle Height="20px" BackColor="#004000" Font-Size="8pt" Font-Bold="True" ForeColor="White"
            HorizontalAlign="Center" BorderColor="White" BorderWidth="1px" />
        <AlternatingItemStyle Font-Size="8pt" BackColor="#F5F5E9" HorizontalAlign="Center"
            BorderWidth="1px" BorderColor="White" />
        <ItemStyle HorizontalAlign="Center" />
        <ExportSettings ExportOnlyData="true" IgnorePaging="true" FileName="Project Management">
        </ExportSettings>
        <MasterTableView GridLines="None" CommandItemDisplay="Top" DataKeyNames="ProjectId"
            HorizontalAlign="Center" AllowFilteringByColumn="true">
            <CommandItemTemplate>
                <table style="width: 100%">
                    <tr>
                        <td align="right" style="width: 78%">
                            <asp:LinkButton ID="lnkshwFilter" Text="ShowFilter" Font-Underline="true" ForeColor="MidnightBlue"
                                runat="server" OnClientClick="return showFilterItem()" />
                            <asp:LinkButton ID="lnkhdFilter" Text="HideFilter" Font-Underline="true" ForeColor="MidnightBlue"
                                runat="server" OnClientClick="return hideFilterItem()" />
                        </td>
                        <td align="right" style="height: 10px;">
                            Total Records found: <asp:Label ID="lblTotRecCount" runat="server" Font-Bold="True"
                                Font-Size="10pt" ForeColor="Black" Text="0"></asp:Label>
                        </td>
                        <td align="right">
                            <asp:LinkButton ID="lnkExportAll" Text="ExportAll" Font-Underline="true" ForeColor="MidnightBlue"
                                runat="server" OnClick="ExportAll_Click" />
                        </td>
                        <td align="right" style="width: 2%">
                               
                            <asp:ImageButton ID="ExportToExcelButton" runat="server" ImageUrl="~/images/ExportToExcel.gif"
                                ToolTip="Export to Excel" OnClick="ExportExcel_Click" />
                        </td>
                    </tr>
                </table>
            </CommandItemTemplate>
            <Columns>
                ..... few columns here ............
            </Columns>
            <ItemStyle ForeColor="#3C5F22" Font-Size="8pt" BackColor="White" BorderWidth="0px"
                BorderColor="White" />
            <PagerStyle Mode="NextPrevAndNumeric" AlwaysVisible="true" />
        </MasterTableView>
        <ClientSettings AllowColumnsReorder="true">
            <ClientEvents OnGridCreated="GridCreated" />
            <Scrolling AllowScroll="true" UseStaticHeaders="true" />
            <Resizing AllowColumnResize="true" />
        </ClientSettings>
    </telerik:RadGrid>
</div>

function showFilterItem() {
    $find('<%=gvPjtMnt.ClientID %>').get_masterTableView().showFilterItem();
    document.getElementById('ctl00_PagePlaceholder_gvPjtMnt_ctl00_ctl02_ctl00_lnkhdFilter').style.display = 'block';
    document.getElementById('ctl00_PagePlaceholder_gvPjtMnt_ctl00_ctl02_ctl00_lnkshwFilter').style.display = 'none';
    return false;
 
}
function hideFilterItem() {
    document.getElementById('ctl00_PagePlaceholder_gvPjtMnt_ctl00_ctl02_ctl00_lnkhdFilter').style.display = 'none';
    document.getElementById('ctl00_PagePlaceholder_gvPjtMnt_ctl00_ctl02_ctl00_lnkshwFilter').style.display = 'block';
    $find('<%=gvPjtMnt.ClientID %>').get_masterTableView().hideFilterItem();
    return false;
}
function GridCreated(sender, args) {
    sender.get_masterTableView().hideFilterItem();
}



Dimo
Telerik team
 answered on 27 Sep 2010
5 answers
245 views
Hi,

I have a tree view control (generated from DB) which opens in a rad window.
I want to select a particular node of the tree and then click on the "Select" button.

After clicking the select button - the radwindow should close and the selected data should be displayed in a textbox.
All this is working, however when I click the select button - a pop up comes over saying to resend data to the server - which is irritating. I guess this is beacuse I am trying to pass data via server side.

Any idea how this data should be tranferred via client side? May be using JS or sort of.

Thanks.

Debashis Pyne
Top achievements
Rank 1
 answered on 27 Sep 2010
1 answer
115 views

Hi

I am using Ajaxmanage manger in my page .Below is the code
 

<telerik:RadAjaxManager runat="server">
 <ajaxsettings>
<telerik:AjaxSetting AjaxControlID="btnContact">
 <updatedcontrols>
 <telerik:AjaxUpdatedControl ControlID="pnlContact" UpdatePanelHeight="" />
</updatedcontrols>
</telerik:AjaxSetting>
<telerik:AjaxSetting AjaxControlID="btnDelete">
<updatedcontrols>
 <telerik:AjaxUpdatedControl ControlID="btnDelete" UpdatePanelHeight="" />
<telerik:AjaxUpdatedControl ControlID="dgvContactList" UpdatePanelHeight="" />
</updatedcontrols>
</telerik:AjaxSetting>
</ajaxsettings>
</telerik:RadAjaxManager>

btnDelete has an OnClientClik function .it does not firing. btnDelete  is inside the pnlContact panel.

<asp:Button ID="btnDelete" runat="server" CausesValidation="False" CssClass="sbttn"
TabIndex="19" Text="Delete" OnClientClick="return JF_ConfirmDelete('dgvContactList','hidContactRowCount');"
OnClick="btnDelete_Click" />

How can i call   JF_ConfirmDelete function in OnClientClick. Please provide a solution as soon as possible

Thanks

.

 

 

 

 

Maria Ilieva
Telerik team
 answered on 27 Sep 2010
1 answer
80 views

Any help is greatly appreciated.

Aspx code:
<

 

telerik:RadMenu ID="USSRadMenu" runat="server" DataSourceID="USSsmd" Skin="">

 

 

</telerik:RadMenu>

 

 

<asp:SiteMapDataSource ID="USSsmd" runat="server" ShowStartingNode="false" SiteMapProvider="USSMenu" />

css that is NOT working:

 

.RadMenu

 

.rmGroup .RightArrow,

 

 

 

.RadMenu

 

.rmGroup .RightArrowDisabled

 

{

 

background-image: url(Images/RightArrow.gif) no-repeat rightright !important;

 

}

 

Sitemap example expecting to see right arrow to go to Level 2

 

 

<

 

siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" >

 

<

 

siteMapNode url="Root#" title="" description="">

 

<

 

siteMapNode url="ContractAdmin#" title="ContractAdmin" description="" >

 

    <

siteMapNode url="~/ContractAdmin/Branding.aspx" title="Branding" description="" >

 

        <

 

siteMapNode url="Level2#" title="Level 2" description="" />

 

    </

 

siteMapNode>

 

</

 

siteMapNode>

 

<

 

siteMapNode url="" title="LogOut" description="" />

 

</

 

siteMapNode>

 

</

 

siteMap>

 

Yana
Telerik team
 answered on 27 Sep 2010
1 answer
65 views
I have the following situation:
- RadGrid with server-side paging and context menu (per row, programmatically added);
- Some rows don't have context menu items;
- On the first page in the grid everything works fine, some rows have a context menu;
- On the second page and further, the context menu isn't showing anymore although the menu items are present in the controls collection;
- When I add a dummy menu item for every row so that the context menu contains at least one item for every row, everything works again as expected on page 2 and further;

Am I running into a weird bug or am I missing something?

Thanks!
Yana
Telerik team
 answered on 27 Sep 2010
6 answers
170 views
I am getting this error after leaving the detail grid (on page load) that displays the users information that is connected to another grid that is used for selecting a users name. THe error is reported in the ScriptResource.axd on line 2560 the bold line
RadGridNamespace.RadGridTable.prototype.InitializeEvents=function(_1a9){
for(clientEvent in _1a9){
if(typeof (_1a9[clientEvent])!="string"){
continue;
}
if(!this.Owner.IsClientEventName(clientEvent)){
if(_1a9[clientEvent]!=""){
var _1aa=_1a9[clientEvent];
if(_1aa.indexOf("(")!=-1){
this[clientEvent]=_1aa;
}else{
this[clientEvent]=eval(_1aa);
}
}else{
this[clientEvent]=null;
}
}
}
};

any ideas?
Maria Ilieva
Telerik team
 answered on 27 Sep 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?