Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
56 views
Nevermind, I realized the child should not have access to the parent. I found another way of doing what I needed. Please delete this thread.
Thomas Frohe
Top achievements
Rank 1
 asked on 11 Nov 2009
2 answers
229 views
I'm trying to add/remove different sections from the NestedView details section based on some user selection made outside the grid.

The MasterTableView.NestedViewTemplate property does not seem to be stored in ViewState so I'm currently trying to set the MasterTableView.NestedViewTemplate in the PreRender with no success.

Does anyone have an idea how this might be possible?

PS. For efficiency my child data needs to only be databound when expanded.
Enigma
Top achievements
Rank 1
 answered on 11 Nov 2009
1 answer
641 views
HI, I got this error when I try to disply a image in the listview:

Microsoft JScript runtime error: Sys.WebForms.PageRequestManagerServerErrorException: The RadListView control does not have an item placeholder specified.

here the listviews
                                <telerik:RadListView runat="server" ID="RadLVPhotos" Enabled="false" 
                                    AllowPaging="true" PageSize="10" DataKeyNames="Id" OverrideDataSourceControlSorting="true" 
                                     OnNeedDataSource="RadLVPhotos_NeedDataSource" ItemPlaceholderID="ProductsHolder">  
                                    <EmptyDataTemplate> 
                                        <legend>Photos</legend>Aucune photo...  
                                    </EmptyDataTemplate> 
                                    <ItemTemplate> 
                                        <fieldset style="float: left; margin: 5px 5px 5px 5px; padding: 2px 2px 2px 2px;  
                                            background: #eeeeee" class="myClass" onmouseover="containerMouseover(this)" onmouseout="containerMouseout(this)">  
                                            <telerik:RadBinaryImage Style="cursor: pointer;" runat="server" ID="RadBinaryImage1" 
                                                DataValue='<%#Eval("Fichier.Content") %>' Height='60' Width="60" 
                                                ResizeMode="Fit" /> 
                                            <br /> 
                                        </fieldset> 
                                    </ItemTemplate> 
                                </telerik:RadListView> 

here the databinding:
    Protected Sub RadLVPhotos_NeedDataSource(ByVal source As Object, ByVal e As Telerik.Web.UI.RadListViewNeedDataSourceEventArgs)  
        Dim radLVPhotos As RadListView = DirectCast(source, RadListView)  
 
        If radLVPhotos.Enabled = True Then 
            Dim scope As IObjectScope = ScopeFactory.GetPerRequestScope(HttpContext.Current)  
            Dim nID As Int32 = Convert.ToInt32(hfID.Value)  
 
            radLVPhotos.DataSource = From ProdFich In scope.Extent(Of ProduitsFichier)() Select ProdFich Where ProdFich.ProdID = nID And ProdFich.EstImage = True 
        End If 
    End Sub 

any suggestion?
Thanks
Pierre
Top achievements
Rank 2
Iron
Iron
 answered on 10 Nov 2009
1 answer
235 views
The data format string on my calculated columns is not functioning. I've tried a variety of different format strings, including the same dataformatstring I use on the data bound columns, "{0:N0}", but on the calculated column ( a simple ratio of two of the data bound values) the grid displays all the decimals.

Any special trick for assigning a data format to a calculated column?
Jay
Top achievements
Rank 1
 answered on 10 Nov 2009
2 answers
179 views
I want to implement only spell checker in the radeditor. When I use the attribute 

ToolsFile

 

="~/App_Data/ToolsFile.xml", everything toolbars work except the spell checker.
I get an error that "spell check command not implemented yet. Let me know if I have to use a different toolsFile.xml.
Thanks
Anil

 

Ken Gunderman
Top achievements
Rank 1
 answered on 10 Nov 2009
0 answers
494 views
Hi,

I am not sure, whether i can post this issue here or not.
I have been struggling with this issue for 3 days.

I was provided with IBM wehsphere webservice WSDL file. Using svcutil, did generated proxy class and output.config files.

I was able to create the object of proxy class without any issue. But when i am trying to make a call to webservice operation, getting following error.

I am catching the error with FaultException catch block. Exception details are as follows:
FaultException.Code.Name = server
faultException.Code.Namespace = http://schemas.xmlsoap.org/soap/envelope/
faultException.Code.SubCode = null

Please help me, is this client error or service error. If it is client error, please provide the solution.

Error Message : BIP3113E : Exception detected in message flow MF_MVDA_HTTP.SOAP HTTP Input (broker CARBRKD01)
Stack Trace : System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime operation, ProxyRpc& rpc)
   at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
   at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs)
   at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
   at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)

Exception rethrown at [0]: 
   at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
   at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
............................
.............................

Any help is appreciated.

Thank you.
Veshala
Top achievements
Rank 1
 asked on 10 Nov 2009
5 answers
299 views
I am using radgrid and GridClientSelectColumn. When I select a row, the row is highligted with gray color. I guess thats like default skin. How I can set the selected row background color to none. I just want to be able to check the box and uncheck with no background color for the row.

Do I have to use onRowSelecting or onRowSelected event? If so, how can I get the selected row item on the clientside.
Schlurk
Top achievements
Rank 2
 answered on 10 Nov 2009
1 answer
112 views

Hi everyone,

Let me start by apologising for this question - despite being a competent VB6 programmer, I'm new to .NET and am aware that this question is the sort of one that would probably cause sniggers at the back of the class-room.

I'm trialling ASP.NET RadTools AJAX which I must say looks tremendous. I am slowly trying to get it to replicate the functionality I need before deciding on the direction to take to migrate some aging systems.

I don't normally post for help (I can normally work stuff out) but after spending two solid days piecing together various examples I can honestly say I'm stuck.

I am trying to create a RadGrid that allows me to drill down on related tables. I've seen various examples which include SQL markup within the actual page - but I'm trying to use an ObjectDataSource pointing to a SQL DataSet. This is to centralise the SQL markup making maintanence a tad easier.

My Main table is a table called LanSubnet with a PK of LanSubnetID and a FK of SiteID

The "drill down" table is called Site - with a PK of ID. The association between the two is "LanSubnet.SiteID=Site.ID"

So when someone drills down on a specific item, it shows all the associated sites - simple eh?

I'm trying to achieve this without coding - although if that is the only way, then so be it (I prefer VB.NET). My attempts either cause the details table to show all sites, or show none. I can't get it to only show the ones associated with the chosen master table and I've not got a clue why?


The SQL for LanSubnet is this:

SELECT LanSubnetID, SiteID, StartIP, EndIP, NTDomain, AdminUserName, AdminPassword, SNMPCommunityString, AuditStartDate, AuditFinishDate, AuditDevicesFound, AuditDevicesFailed, LastUpdatedUserID FROM dbo.LanSubnet

The SQL for the details (Site) table is this:

SELECT ID, CompanyID, PrimaryEmployeeID, Name, Description, [Address 1], [Address 2], County, [Post Code], [WWW Map Page], [Phone Number], [Fax Number], ScheduleNotes, Directions, [Local Station], IPaddress, OldData, Created, tmpSiteID, tmpCompanyID, longitude, latitude, Modified FROM dbo.Site WHERE ID=@SiteID

I'm attempting to pass to it @SiteID which will fix the issue! I'm assuming the GridRelationFields will filter the results? I've been trying to get it to work in the same way I got a drop-down to work?

As a side question - any suggestions what I should be reading to get my head around binding in general?

Many thanks in advance.

Here is my code:-

<%

@ Control Language="VB" AutoEventWireup="false" CodeFile="ProductsVB.ascx.vb" Inherits="TabStrip_Examples_ApplicationScenarios_LoadOnDemand_CustomersVB" %>

 

<%

@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>

 

<

 

telerik:RadGrid runat="server" ID="RadGrid1" Skin="Office2007"

 

 

DataSourceID="ObjectDataSource1" AllowPaging="True" GridLines="None"

 

 

AutoGenerateEditColumn="True">

 

<

 

MasterTableView DataSourceID="ObjectDataSource1"

 

 

DataKeyNames="LanSubnetID">

 

<

 

RowIndicatorColumn>

 

<

 

HeaderStyle Width="20px"></HeaderStyle>

 

</

 

RowIndicatorColumn>

 

<

 

ExpandCollapseColumn>

 

<

 

HeaderStyle Width="20px"></HeaderStyle>

 

</

 

ExpandCollapseColumn>

 

 

 

 

<Columns>

 

 

<telerik:GridBoundColumn DataField="LanSubnetID" DataType="System.Int32"

 

 

HeaderText="LanSubnetID" ReadOnly="True" SortExpression="LanSubnetID"

 

 

UniqueName="LanSubnetID">

 

 

</telerik:GridBoundColumn>

 

 

<telerik:GridBoundColumn DataField="SiteID" HeaderText="SiteID"

 

 

SortExpression="SiteID" UniqueName="SiteID">

 

 

</telerik:GridBoundColumn>

 

 

<telerik:GridBoundColumn DataField="StartIP" HeaderText="StartIP"

 

 

SortExpression="StartIP" UniqueName="StartIP">

 

 

</telerik:GridBoundColumn>

 

 

<telerik:GridBoundColumn DataField="EndIP" HeaderText="EndIP"

 

 

SortExpression="EndIP" UniqueName="EndIP">

 

 

</telerik:GridBoundColumn>

 

 

<telerik:GridBoundColumn DataField="NTDomain" HeaderText="NTDomain"

 

 

SortExpression="NTDomain" UniqueName="NTDomain">

 

 

</telerik:GridBoundColumn>

 

 

<telerik:GridBoundColumn DataField="AdminUserName" HeaderText="AdminUserName"

 

 

SortExpression="AdminUserName" UniqueName="AdminUserName">

 

 

</telerik:GridBoundColumn>

 

 

<telerik:GridBoundColumn DataField="AdminPassword" HeaderText="AdminPassword"

 

 

SortExpression="AdminPassword" UniqueName="AdminPassword">

 

 

</telerik:GridBoundColumn>

 

 

<telerik:GridBoundColumn DataField="SNMPCommunityString"

 

 

HeaderText="SNMPCommunityString" SortExpression="SNMPCommunityString"

 

 

UniqueName="SNMPCommunityString">

 

 

</telerik:GridBoundColumn>

 

 

<telerik:GridBoundColumn DataField="AuditStartDate" DataType="System.DateTime"

 

 

HeaderText="AuditStartDate" SortExpression="AuditStartDate"

 

 

UniqueName="AuditStartDate">

 

 

</telerik:GridBoundColumn>

 

 

<telerik:GridBoundColumn DataField="AuditFinishDate" DataType="System.DateTime"

 

 

HeaderText="AuditFinishDate" SortExpression="AuditFinishDate"

 

 

UniqueName="AuditFinishDate">

 

 

</telerik:GridBoundColumn>

 

 

<telerik:GridBoundColumn DataField="AuditDevicesFound" DataType="System.Int32"

 

 

HeaderText="AuditDevicesFound" SortExpression="AuditDevicesFound"

 

 

UniqueName="AuditDevicesFound">

 

 

</telerik:GridBoundColumn>

 

 

<telerik:GridBoundColumn DataField="AuditDevicesFailed" DataType="System.Int32"

 

 

HeaderText="AuditDevicesFailed" SortExpression="AuditDevicesFailed"

 

 

UniqueName="AuditDevicesFailed">

 

 

</telerik:GridBoundColumn>

 

 

<telerik:GridBoundColumn DataField="LastUpdatedUserID" DataType="System.Int32"

 

 

HeaderText="LastUpdatedUserID" SortExpression="LastUpdatedUserID"

 

 

UniqueName="LastUpdatedUserID">

 

 

</telerik:GridBoundColumn>

 

 

</Columns>

 

<

 

DetailTables>

 

 

 

<telerik:GridTableView runat="server" DataKeyNames="ID" AutoGenerateColumns="true" DataSourceID="ObjectDataSource2" HierarchyLoadMode="ServerOnDemand">

 

 

<ParentTableRelation>

 

 

<telerik:GridRelationFields DetailKeyField="ID" MasterKeyField="SiteID" />

 

 

</ParentTableRelation>

 

 

</telerik:GridTableView>

 

 

 

</DetailTables>

 

 

</

 

MasterTableView>

 

</

 

telerik:RadGrid>

 

<

 

asp:ObjectDataSource ID="ObjectDataSource1" runat="server"

 

 

DeleteMethod="Delete" InsertMethod="Insert"

 

 

OldValuesParameterFormatString="original_{0}" SelectMethod="GetData"

 

 

TypeName="DataSet1TableAdapters.LanSubnetTableAdapter" UpdateMethod="Update">

 

 

<DeleteParameters>

 

 

<asp:Parameter Name="Original_LanSubnetID" Type="Int32" />

 

 

</DeleteParameters>

 

 

<UpdateParameters>

 

 

<asp:Parameter Name="SiteID" Type="Int32" />

 

 

<asp:Parameter Name="StartIP" Type="String" />

 

 

<asp:Parameter Name="EndIP" Type="String" />

 

 

<asp:Parameter Name="NTDomain" Type="String" />

 

 

<asp:Parameter Name="AdminUserName" Type="String" />

 

 

<asp:Parameter Name="AdminPassword" Type="String" />

 

 

<asp:Parameter Name="SNMPCommunityString" Type="String" />

 

 

<asp:Parameter Name="AuditStartDate" Type="DateTime" />

 

 

<asp:Parameter Name="AuditFinishDate" Type="DateTime" />

 

 

<asp:Parameter Name="AuditDevicesFound" Type="Int32" />

 

 

<asp:Parameter Name="AuditDevicesFailed" Type="Int32" />

 

 

<asp:Parameter Name="LastUpdatedUserID" Type="Int32" />

 

 

<asp:Parameter Name="Original_LanSubnetID" Type="Int32" />

 

 

</UpdateParameters>

 

 

<InsertParameters>

 

 

<asp:Parameter Name="SiteID" Type="Int32" />

 

 

<asp:Parameter Name="StartIP" Type="String" />

 

 

<asp:Parameter Name="EndIP" Type="String" />

 

 

<asp:Parameter Name="NTDomain" Type="String" />

 

 

<asp:Parameter Name="AdminUserName" Type="String" />

 

 

<asp:Parameter Name="AdminPassword" Type="String" />

 

 

<asp:Parameter Name="SNMPCommunityString" Type="String" />

 

 

<asp:Parameter Name="AuditStartDate" Type="DateTime" />

 

 

<asp:Parameter Name="AuditFinishDate" Type="DateTime" />

 

 

<asp:Parameter Name="AuditDevicesFound" Type="Int32" />

 

 

<asp:Parameter Name="AuditDevicesFailed" Type="Int32" />

 

 

<asp:Parameter Name="LastUpdatedUserID" Type="Int32" />

 

 

</InsertParameters>

 

</

 

asp:ObjectDataSource>

 

<

 

asp:ObjectDataSource ID="ObjectDataSource2" runat="server"

 

 

OldValuesParameterFormatString="original_{0}" SelectMethod="GetOneSite"

 

 

TypeName="SiteTableAdapters.SiteTableAdapter">

 

 

<SelectParameters>

 

 

<asp:Parameter Name="SiteID" Type="Int32" />

 

 

</SelectParameters>

 

</

 

asp:ObjectDataSource>

 

Sebastian
Telerik team
 answered on 10 Nov 2009
1 answer
371 views
I am binding the RADGrid to a collection of business objects. These business objects implement an interface, that inherits another interface.

When I am trying to sort (or do any other operation) on a column bound to a property, that only exists on the base interface, I get this exception:
[IndexOutOfRangeException: Cannot find column ItemNumber.] 
   System.Data.DataTable.ParseSortString(String sortString) +4826462 
   System.Data.DataView.CheckSort(String sort) +32 
   System.Data.DataView.set_Sort(String value) +128 
   Telerik.Web.UI.GridEnumerableFromDataView.PerformTransformation() +5028 
   Telerik.Web.UI.GridEnumerableFromDataView.TransformEnumerable() +41 
   Telerik.Web.UI.GridTableView.GetEnumerator(Boolean useDataSource, GridEnumerableBase resolvedDataSource, ArrayList dataKeysArray) +171 
   Telerik.Web.UI.GridTableView.CreateControlHierarchy(Boolean useDataSource) +861 
   Telerik.Web.UI.GridTableView.CreateChildControls(IEnumerable dataSource, Boolean useDataSource) +786 
   System.Web.UI.WebControls.CompositeDataBoundControl.PerformDataBinding(IEnumerable data) +57 
   System.Web.UI.WebControls.DataBoundControl.OnDataSourceViewSelectCallback(IEnumerable data) +114 
   System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback) +31 
   System.Web.UI.WebControls.DataBoundControl.PerformSelect() +142 
   Telerik.Web.UI.GridTableView.PerformSelect() +28 
   System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +73 
   Telerik.Web.UI.GridTableView.DataBind() +354 
   Telerik.Web.UI.GridSortCommandEventArgs.ExecuteCommand(Object source) +326 
   Telerik.Web.UI.RadGrid.OnBubbleEvent(Object source, EventArgs e) +191 
   System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +37 
   Telerik.Web.UI.GridItem.OnBubbleEvent(Object source, EventArgs e) +61 
   System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +37 
   Telerik.Web.UI.GridItem.OnBubbleEvent(Object source, EventArgs e) +165 
   System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +37 
   System.Web.UI.WebControls.LinkButton.OnCommand(CommandEventArgs e) +118 
   System.Web.UI.WebControls.LinkButton.RaisePostBackEvent(String eventArgument) +135 
   System.Web.UI.WebControls.LinkButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10 
   System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13 
   System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +175 
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1565 
How do I get around this issue ?

This issue arises if I try to bind to IItemInterface instances and sort on the ItemNumber column, where IItemInterface is declared as follows:

    public class Item : IItemInterface 
    { 
        public string Name { get; set; } 
        public string ItemNumber { get; set; } 
    } 
 
    public interface IBase 
    { 
        string ItemNumber { get; set; } 
    } 
 
    public interface IItemInterface : IBase 
    { 
        string Name { get; set; } 
    } 

Thanks for your help,
/Dennis Riis
Nikita Gourme
Top achievements
Rank 1
 answered on 10 Nov 2009
1 answer
250 views
Hi Guys,

I have a Grid that shows catagories and I have set up a NestedViewTemplate that comprises of a DataList (this datalist basically contains checkboxes). what I want to do is bind the a datalist programmatically.
That is I need to get the items of the expanded catagory and fill it up on the checkboxes of the datalist. How can I do this?, and also I should be able to read the checked values back.
Can someone help me on this?

Regards,
Nairooz Nilafdeen
Sebastian
Telerik team
 answered on 10 Nov 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?