Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
485 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
285 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
109 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
352 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 { getset; } 
        public string ItemNumber { getset; } 
    } 
 
    public interface IBase 
    { 
        string ItemNumber { getset; } 
    } 
 
    public interface IItemInterface : IBase 
    { 
        string Name { getset; } 
    } 

Thanks for your help,
/Dennis Riis
Nikita Gourme
Top achievements
Rank 1
 answered on 10 Nov 2009
1 answer
243 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
1 answer
234 views
Hello,

I have a problem getting my sort operation to work properly. I have set up a grid with viewstate disabled.
The grid is used for viewing only and all row-actions are done clientside, so no need for the grid to remember its data

I use custom paging and sorting and in the NeedDataSource event I supply the grid with data.
The LINQ query in that event also applies sorting. When i have viewstate enabled the SortCommand event is fired before the needdatasource, so i can determine the desired sorting and fetch the data all at once in the NeedDataSource event.

But when i disable the viewstate, the SortCommand event is fired after the NeedDataSource event. So i need to execute the LINQ query twice.

So my question is this
Is there any way to determine on posback/callback if the grid is going to fire the SortCommand? and can i use that info to passthe sorting info to the query in the NeedDataSource event implementation?
Or is there a way to force the SortCommand to be fired before NeedDataSource at all times?
When i try to intercept the NeedDataSource event and execute it after the sortcommand, i get no data.

I use 2009 Q2 for Ajax

Thanks
Sebastian
Telerik team
 answered on 10 Nov 2009
4 answers
194 views
Hi

I have a combobox that uses LoadOnDemand

<

 

telerik:RadComboBox ID="rcCostLocation" AutoPostBack="true" CausesValidation="false" SkinId="RadCombo" Runat="server"

 

 

DropDownWidth="318px" Height="190px" Width="318px" EmptyMessage="Please select" EnableLoadOnDemand="True"

 

 

DataValueField="Id" ShowMoreResultsBox="true">

 

</

 

telerik:RadComboBox>

If I click on a item in the list, the SelectIndexChanged and TextChanged fires okey, but if I clear the text from the DropDownBox and then click anywhere on my page, the default text "Please select" is shown but the TextChange even never fires.

I need to check if the user has cleared the text in the combobox and then disable another control on the page.
Any suggestions on how I can accomplice this ?

Regards
Per

 

Yana
Telerik team
 answered on 10 Nov 2009
1 answer
113 views
I have tabs within a RadXmlHttpPanel and the tabs work fine, until I reload the panel with images based on an id passed, then you are no longer able to click the tabs,

Why is this?
Pero
Telerik team
 answered on 10 Nov 2009
5 answers
223 views
I want to know if there is away to do some validation before the user uploads the files, in an Editor. Reason is I want to limit the uploading to a particular IP.


                    <telerik:RadEditor ID="txtContent" runat="server" Width="100%">  
                        <ImageManager ViewPaths="~/Files" UploadPaths="~/Files" DeletePaths="~/Files"  /> 
                        <MediaManager ViewPaths="~/Files" UploadPaths="~/Files" DeletePaths="~/Files" /> 
                        <FlashManager ViewPaths="~/Files" UploadPaths="~/Files" DeletePaths="~/Files" /> 
                        <TemplateManager ViewPaths="~/Files" UploadPaths="~/Files" DeletePaths="~/Files" /> 
                        <DocumentManager ViewPaths="~/Files" UploadPaths="~/Files" DeletePaths="~/Files" /> 
                    </telerik:RadEditor> 
Fiko
Telerik team
 answered on 10 Nov 2009
1 answer
107 views
I'm using the "Paste from word" function and am running into a couple of issues. (see attached for screenshots)

1. sometimes the same line with a soft return in Word is generating an <p></p> in the editor HTML and sometimes it's a <br /><br />. I've copied and pasted from Word from the same clipboard instance, in the same editor within the same session and seen different results.

2. when I do get the <p></p> tags... sometimes that is rendered in the design view as no returns, one return, two returns or three returns. Togelling back and forth between design and HTML changes it until it settles at the one return and then it seems to hold consistently.
Rumen
Telerik team
 answered on 10 Nov 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?