Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
97 views
Hello guys,
we followed the demo and the other examples about cusotm filter templates and did everything so far well, until one last important point.
We have 5 columns and the last one has a filter template, actually a radcombobox:
    LINK
Now the problem, our input are not kept from one column to the other, why? How to control it?
First we enter let say "A" in the 1st column, the grid is well filtered and we can still see "A" in the filter header. Good.
Next we enter "B" in the 2nd column. The Grid is again well filtered, BUT "A" is gone and we can only see "B".
Next we select "OK" from the last column (radcombobox). The Grid is again well filtered, BUT "B" is gone and we can only see "OK".
So finally, we can only see the last input in the filter header, but the filter expression of the grid contains 3 inputs.
Why are they masked? How to make them visible again? What did we missed in our code?
In other words... HELP!

Here some code:

 

 

 

Thank you

 

 

 

 

Fresh
Top achievements
Rank 1
 answered on 17 Sep 2010
4 answers
142 views
Hello guys,
we actually bought the new RadGrid and it's our first time to deal with it.
We have a RadGrid with winodws7 skin and when with drop a column to the header group, the Grid doesn't look good.
Here the screenshots (they are also attached):
  • before grouping: link
  • after grouping: link

Here the declaration:
<telerik:RadGrid runat="server" ID="GridProjectListRad" Skin="Windows7" AutoGenerateColumns="False" AllowSorting="true" Width="100%" AllowFilteringByColumn="true" AllowPaging="true" PageSize="10" ShowHeader="true" ShowFooter="false" ShowGroupPanel="true" > <ClientSettings ReorderColumnsOnClient="True" AllowDragToGroup="True" AllowColumnsReorder="True"> <Selecting AllowRowSelect="True"></Selecting> <Resizing AllowRowResize="True" AllowColumnResize="True" EnableRealTimeResize="True" ResizeGridOnColumnResize="False"></Resizing>

 

<Scrolling AllowScroll="True" UseStaticHeaders="true" SaveScrollPosition="True" FrozenColumnsCount="1"></Scrolling>

 

</ClientSettings<HeaderContextMenu EnableAutoScroll="True"></HeaderContextMenu> <ExportSettings IgnorePaging="true" OpenInNewWindow="true"> </ExportSettings> <GroupingSettings ShowUnGroupButton="false" />
<MasterTableView DataKeyNames="ProjectUID" AutoGenerateColumns="false" CommandItemDisplay="Bottom" AllowMultiColumnSorting="true" AllowFilteringByColumn="True" > <RowIndicatorColumn Visible="True"></RowIndicatorColumn 

 

 

 

<Columns>

 

<telerik:GridHyperLinkColumn HeaderText="ProjectName" UniqueName="ProjectName" DataTextField="ProjectName"

 

SortExpression="ProjectName" HeaderStyle-Width="40%" FilterControlWidth="95%" />

 

<telerik:GridBoundColumn HeaderText="ProjectLeader" DataField="ProjectLeader" UniqueName="ProjectLeader"

 

SortExpression="ProjectLeader" HeaderStyle-Width="15%" FilterControlWidth="85%" />

 

<telerik:GridDateTimeColumn HeaderText="LastReport" DataField="LastReport" UniqueName="LastReport" SortExpression="LastReport" HeaderStyle-Width="15%" FilterControlWidth="85%" /> <telerik:GridBoundColumn HeaderText="LastModifiedBy" DataField="LastModifiedBy" UniqueName="LastModifiedBy" SortExpression="LastModifiedBy" HeaderStyle-Width="15%" FilterControlWidth="85%" />  

<telerik:GridBoundColumn HeaderText="Status" DataField="Status" UniqueName="Status"

SortExpression="Status" HeaderStyle-Width="15%" FilterControlWidth="85%" ReadOnly="true" > <FilterTemplate> <telerik:RadComboBox runat="server" ID="FilterComboStatus" AutoPostBack="true" Filter="Contains" Skin="Windows7" Width="99%" OnSelectedIndexChanged="FilterComboStatus_SelectedIndexChanged"  

OnClientLoad="OnClientSelectedIndexChangedHandler" > </telerik:RadComboBox> </FilterTemplate> 

<HeaderStyle HorizontalAlign="Center"></HeaderStyle> <ItemStyle HorizontalAlign="Center"></ItemStyle> </telerik:GridBoundColumn>

 

 

</Columns>

</MasterTableView> <SortingSettings EnableSkinSortStyles="false" /> </telerik:RadGrid>

So, did we miss something? Why does the RadGrid look so bad after grouping?
Plus, how to allow multi grouping? Because each time we drop a column in the group header, it will replace the older one.

Thank you
William

Fresh
Top achievements
Rank 1
 answered on 17 Sep 2010
3 answers
108 views
I'm binding a radMenu to database data. I'm setting my DataNavigateUrlField to "MenuLink" field. for the most part, the MenuLink field simply contains page names, i.e. Default.aspx, page1.aspx, etc. I have one  that I wish to link to an external site, i.e. http://www.google.com, but when i set this item's MenuLink field to http://www.google.com, on binding of the menu it throws an error:

'~/http://www.google.com' is not a valid virtual path.

obviously it's automatically putting the ~ symbol. how do i get it to not do this?

Thanks.
Paul J
Top achievements
Rank 1
 answered on 17 Sep 2010
8 answers
266 views
Scenario:

Grid with filtering on.

I turned off AutoPostBackOnFilter as I want the user to have to press the filter button to filter. However, once I turned AutoPostBackOnFilter off, clicking the Filter button poups a list of filtering functions to use first. I don't want this list to show up, and instead for the filter to use the function I set with the CurrentFilterFunction attribute. So as soon as the user clicks the filter button, it actually filters the grid.

How can I achieve this? I couldn't find any attribute that turns off the displaying of the filter functions. Thanks.
Nikita Gourme
Top achievements
Rank 1
 answered on 17 Sep 2010
1 answer
52 views
Hi,

I'm having a problem with the RadDataPagerGoToPageField - no matter what I try, it keeps wrapping the text and splitting it to two lines.  I want it to only display one line.  I've copied the code and CSS directly from Telerik's site, I've tried it without any CSS or styling, etc. but nothing seems to resolve it.

Could you help, please?

Thanks!
<telerik:RadDataPager ID="RadDataPager2" runat="server" PagedControlID="PhotosListView" PageSize="24" Skin="Black" Width="100%" >
                                        <Fields>
                                            <telerik:RadDataPagerGoToPageField CurrentPageText="Page: " TotalPageText="of" SubmitButtonText="Go" TextBoxWidth="15" />
                                        </Fields>
                                    </telerik:RadDataPager>
Dimo
Telerik team
 answered on 17 Sep 2010
1 answer
208 views
I am using a radwindow. In single aspx page its working correctly. But now am using a master page and its content page; Rad window palced in content page inside a ContentPlace Holder. But now its throws a following javascript error.

1)    "Microsoft JScript runtime error: Object expected"

How to solve this? My codes given below.


<script type="text/javascript">
  
    function openRadWindow(Url, WindowName) {
        var oWnd = radopen(Url, WindowName);
        oWnd.center();
    }
  
</script>

protected void RadToolBar1_ButtonClick(object sender, Telerik.Web.UI.RadToolBarEventArgs e)
    {
  
        switch (e.Item.Value)
        {
            case "FileAttachment": FileAttachment();
                break;
            case "PredefinedWorkFlow": PredefinedWorkFlow();
                break;
            case "ManualWorkFlow": ManualWorkFlow();
                break;
        }
  
    }
 protected void PredefinedWorkFlow()
    {
        RadWindowPredefinedWorkFlow.VisibleOnPageLoad = true;
  
        string nm = RadWindowPredefinedWorkFlow.ClientID;
  
        string Script1 = "<SCRIPT LANGUAGE='JavaScript'> ";
        Script1 += "openRadWindow('PredefinedWorkFlow.aspx','RadWindowPredefinedWorkFlow')";
        Script1 += "</SCRIPT>";
  
        ScriptManager.RegisterClientScriptBlock(this.Page, this.GetType(), "open", Script1, false);
    }
Fiko
Telerik team
 answered on 17 Sep 2010
4 answers
112 views
I have a Rad Ticker in a User Control Page where it is acting as a system information widget. When the RadTicker is scrolling text across the area,  it pauses the responses of my other controls. Did I forget to set something for the RadTicker. An example is if I move my mouse over the menu it will not show me menu options till the ticker has finished.
Michael
Top achievements
Rank 1
 answered on 17 Sep 2010
1 answer
62 views
Hi, has anyone seen this? I have a rotator that is horizontally scrolling through 5 images. In IE8 only, after the first image, there's an extra couple-pixels-wide sliver on the right edge of each image that scrolls through. I can't tell if it's the left edge of the next image in the rotation. I've set the itemheight and itemwidth properties as suggested in a similar thread, in addition to height and width on the rotator and image, and I've played with setting itemwidth and width to narrower than the actual width of the images. Even at a narrower width, that sliver appears.

Any suggestions? Again, this is IE8 only.

Thanks!
Lauren
Fiko
Telerik team
 answered on 17 Sep 2010
1 answer
83 views
I have modified an example I found on the Telerik site to determine content size in order to adjust a pane and splitter to the size of the content. All works in the example when you hard code some content. However if I set the ContentURL of the pane to an external URL, the sizing no longer works. Any ideas?
<%@ Page Title="Home Page" Language="C#" AutoEventWireup="true"
    CodeBehind="Default.aspx.cs" Inherits="FrameTest._Default" %>
 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
 
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<head id="Head1" runat="server">
    <title>Untitled Page</title>
</head>
<body>
 
    <script type="text/javascript">
        function SplitterLoaded(splitter, arg) {
            var pane = splitter.getPaneById('<%= RadPane2.ClientID %>');
            var height = pane.getContentElement().scrollHeight;
            splitter.set_height(splitter.get_height() - pane.get_height() + height);
            pane.set_height(height);
        }
    </script>
 
    <form id="form1" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server" />
        <telerik:RadSplitter ID="RadSplitter1" runat="server" Width="200px" Height="200px"
            OnClientLoaded="SplitterLoaded" Orientation="Horizontal">
               <telerik:RadPane ID="RadPane2" runat="server" ContentUrl="http://google.com" Scrolling="None">
                
            </telerik:RadPane>
        </telerik:RadSplitter>
    </form>
</body>
</html>
Svetlina Anati
Telerik team
 answered on 17 Sep 2010
2 answers
63 views
And is there a example that is similiar you can point me to ?

Basically right now its done totally manually building a html table programmatically.  Iwant to avoid that. So I just need to know how to approach having one row that contains 3 rows and one being a editable textbox.

help .

(we are buying your product soon)
Shinu
Top achievements
Rank 2
 answered on 17 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?