Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
135 views

In my application I have given many filters with RadComboBox that works fine.

Today when I first time try to apply filter inside Detail Tables in Hierarchical grid, it display value in Combobox filter template but when I try to filter using Combobox all record disappear in grid. Please let me know if I miss here.

I am not sure but I have doubt that it shold be some special code inside RadScript Block for Hierarchical Detail Tables.

Here is my code

<telerik:GridBoundColumn DataField="ContactPerson" HeaderText="Person"

ReadOnly="True" SortExpression="ContactPerson" UniqueName="ContactPerson" AutoPostBackOnFilter="true"ShowFilterIcon="false" FilterControlWidth="100%" >

<HeaderStyle Width="20%" />

<ItemStyle HorizontalAlign="Left" />

<FilterTemplate>

<telerik:RadComboBox ID="RadComboBoxContactPerson" runat="server"

DataSourceID="linq_ContactPersons" DataTextField="ContactPerson" DataValueField="ContactPerson"

SelectedValue='<%# ((GridItem)Container).OwnerTableView.GetColumn("ContactPerson").CurrentFilterValue %>'

AppendDataBoundItems="true" OnClientSelectedIndexChanged="ContactPersonChanged">

            <Items>

                  <telerik:RadComboBoxItem Text="Show All" />

            </Items>

      </telerik:RadComboBox>

     

<telerik:RadScriptBlock ID="rsb_Contact" runat="server">

<script type="text/javascript">

                  function ContactPersonChanged(sender, args) {

                        var tableView = $find("<%# ((GridItem)Container).OwnerTableView.ClientID %>");

tableView.filter("ContactPerson", args.get_item().get_value(), "EqualTo");

}

</script>

</telerik:RadScriptBlock>

</FilterTemplate>

</telerik:GridBoundColumn>

 

Princy
Top achievements
Rank 2
 answered on 05 Oct 2009
1 answer
87 views
hey guys

telerik has component that worke like igoogle.com?
wanna drag and drop and change panel(userconrol)  place  with other?

thnx guys
Ivo
Telerik team
 answered on 05 Oct 2009
1 answer
128 views
Anyone written a custom content provider to work with Windows' Indexing Service?  I'm trying to allow users to view a given directory, or search that directory. (Not showing the Tree view, so it's less complicated going between "explore" vs "search" mode)

I'm working on adapting the demo DBContentProvider class to work with Indexing Service, but if anyone's already done it and can share, I'd appreciate saving some time by checking out yours.

I've got Indexing Service populating a dataset, but not sure what to do yet for ViewPaths, etc.

Thanks
Fiko
Telerik team
 answered on 05 Oct 2009
2 answers
100 views
I have a menu. Weeee!! :-)

The menu is bound to a sitemap file, and both top-level menu items and child items are displayed horizontally using "flow" and "DefaultGroupSettings-Flow". There are only two levels in my sitemap structure (apart from root)

Wonderful.

What I would like, is to always have the selected top-level items' child-items displayed. Kinda like this:

File      Edit      Functions      About
Copy     Cut     Paste     Undo      Redo 

The menu does this when i hover over a top-level item, but how to I get the menu to always display two levels?

Jeppe Jespersen
Denmark



Soren Michelsen
Top achievements
Rank 1
 answered on 05 Oct 2009
1 answer
77 views

Problem in FileBrowserContentProvider.

we used version 2008_3_1308 of Telerik library. After we started using Q2 2009 Image Manager in Editor and cookieless session, the Image Manager doesn't show any images from DB. But in debug mode ResolveRootDirectoryAsTree returns structure as 


{Telerik.Web.UI.Widgets.DirectoryItem}
base {Telerik.Web.UI.Widgets.FileBrowserItem}: {Telerik.Web.UI.Widgets.DirectoryItem}
Directories: {Telerik.Web.UI.Widgets.DirectoryItem[0]}
Files: {Telerik.Web.UI.Widgets.FileItem[2]}
FullPath: ""
Location: "/"
Path: ""


Directories
{Telerik.Web.UI.Widgets.DirectoryItem[0]}


{Telerik.Web.UI.Widgets.FileItem[2]}
[0]: {Telerik.Web.UI.Widgets.FileItem}
[1]: {Telerik.Web.UI.Widgets.FileItem}




Files[0]
{Telerik.Web.UI.Widgets.FileItem}
base {Telerik.Web.UI.Widgets.FileBrowserItem}: {Telerik.Web.UI.Widgets.FileItem}
Extension: ".jpg"
Length: 90911
Location: ""
Path: ""
Url: "http://localhost/site/Pages/ImagePHandler.ashx?RID=7"

Here is screenshot from Image Manager

p.s. Changing params in DirectoryItem initialization did a trick (in previous version other set of params worked ok)

Lini
Telerik team
 answered on 05 Oct 2009
3 answers
74 views

<telerik:GridDropDownColumn  DataField="UserName" DataSourceID="ObjectDataSource2"

                        DropDownControlType="DropDownList" EmptyListItemText="--Select User--"

                        EmptyListItemValue="--Select User--" EnableEmptyListItem="true" HeaderText="User"

                        ListTextField="FullName" ListValueField="UserName" UniqueName="FullName">

 

How can I get

Username in  
Private Sub validator3_ServerValidate()

Using

Dim clickedItem As Telerik.Web.UI.GridDataItem = CType(CType(source, CustomValidator).NamingContainer, Telerik.Web.UI.GridDataItem)

from here what to do ? to get the seleted value

Princy
Top achievements
Rank 2
 answered on 05 Oct 2009
1 answer
165 views
hi,
I want to display the radprompt on clicking on the Linkbutton using code-behind(vb).How to perform this?
Also in the radprompt ,I need to display 1  textbox .If the user edit in the textbox and click OK , I need to insert the value in the database.How can I do this using code-behind(vb).Because i m a beginner in scripts.
Thanks & regards
Kadar
Princy
Top achievements
Rank 2
 answered on 05 Oct 2009
1 answer
142 views
Not sure how to set the delete command dynamically. Here is the code...


<telerik:RadGrid AutoGenerateColumns="False" ID="RADGRIDUnread" DataSourceID="SqlDataSource1" 
            Width="760px" AllowFilteringByColumn="True" AllowSorting="True" 
            PageSize="15" ShowStatusBar="True" ShowFooter="True" AllowPaging="True" runat="server" 
            GridLines="None" EnableLinqExpressions="False" AutoGenerateDeleteColumn="True"  
                    Skin="Sunset" AllowAutomaticDeletes="True" ShowGroupPanel="True"
            <PagerStyle Mode="NextPrevAndNumeric" /> 
            <GroupingSettings CaseSensitive="false" /> 
            <MasterTableView OnSelectedIndexChanged="Test" AutoGenerateColumns="false" EditMode="InPlace" AllowFilteringByColumn="True" DataKeyNames="MessageID" 
                ShowFooter="True" TableLayout="Auto"
                <Columns> 
                    <telerik:GridBoundColumn DataField="MessageID" Display="false" UniqueName="MessageID"></telerik:GridBoundColumn> 
                     <telerik:GridBoundColumn FilterControlWidth="100px" DataField="MessageSubject" HeaderText="Subject" SortExpression="MessageSubject" UniqueName="MessageSubject"></telerik:GridBoundColumn> 
                     <telerik:GridBoundColumn FilterControlWidth="100px" DataField="FromName" HeaderText="From" SortExpression="FromName" UniqueName="FromName"></telerik:GridBoundColumn> 
                     <telerik:GridBoundColumn FilterControlWidth="100px" DataField="MessageDate" HeaderText="Sent" SortExpression="MessageDate" UniqueName="MessageDate"></telerik:GridBoundColumn> 
                </Columns> 
            </MasterTableView> 
            <ClientSettings AllowDragToGroup="True"
                <Selecting AllowRowSelect="True" /> 
            </ClientSettings> 
        </telerik:RadGrid> 
                 
                <asp:SqlDataSource ID="SqlDataSource1" ConnectionString="<%$ ConnectionStrings:AbsorbConnectionString %>" 
            ProviderName="System.Data.SqlClient" runat="server"
         
        <DeleteParameters> 
                <asp:Parameter Name="MessageID" Type="Int32" /> 
            </DeleteParameters> 
         
        </asp:SqlDataSource>

And the codebehind...

string sSQLDelete = "delete from messages where MessageID = ?"
 
SqlDataSource1.DeleteCommand = sSQLDelete; 

Vlad
Telerik team
 answered on 05 Oct 2009
2 answers
196 views
Hi Telerik Team.
I am using client side binding via WCF service and have the following issue.
In my grid there is bound column of DateTime type.
<telerik:GridBoundColumn DataField="LastUpdated" HeaderText="Last Updated" AllowFiltering="false"
DataType=
"System.DateTime"  DataFormatString="{0:MM/dd/yyyy hh:mm tt}"
<HeaderStyle Width="15%" Wrap="false"/> 
</telerik:GridBoundColumn> 

My project is deployed to server which current time is GMT -7. My current time is GMT +3

On the screenshot you will find two grids.
On the left there is my local browser which shows incorrect value in the column
On the right - browser on the same server with the  project. It shows correct date values.

If i change column type to string and perform date formatting in WCF service - date is shown correctly.

Can you please suggest what i am doing wrong (possibly some flag for grid?)

Thank you.
Oleg Medyanik
Top achievements
Rank 1
 answered on 05 Oct 2009
3 answers
64 views
I need the color of the tab strip to be the YUI Theme

This is so important to me.
Paul
Telerik team
 answered on 05 Oct 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?