Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
1.1K+ views
keep getting:

Invalid attempt to call FieldCount when reader is closed.

calling rlv.Rebind() on page load.

<telerik:RadListView ID="rlv" OnNeedDataSource="rlv_NeedDataSource" ItemPlaceholderID="ProductItemContainer" runat="server"
            <LayoutTemplate> 
             
                <fieldset> 
                    <legend>Parent Contacts</legend> 
                    <table cellpadding="0" cellspacing="0" class="tblDisplay" width="auto"
                    <tr> 
                        <td>Name</td> 
                        <td>Relation</td> 
                        <td>Phone</td> 
                        <td>Work #</td> 
                        <td>Cell #</td> 
                    </tr> 
                    <asp:PlaceHolder ID="ProductItemContainer" runat="server" /> 
                    </table> 
                </fieldset> 
            </LayoutTemplate>             
             <ItemTemplate> 
                 <tr> 
                    <td><%#DataBinder.Eval(Container.DataItem, "FullName")%>"</td> 
                    <td><%#DataBinder.Eval(Container.DataItem, "RelationDesc")%>"</td> 
                    <td><%#DataBinder.Eval(Container.DataItem, "Phone")%>"</td> 
                    <td><%#DataBinder.Eval(Container.DataItem, "WorkPhone")%>"</td> 
                    <td><%#DataBinder.Eval(Container.DataItem, "CellPhone")%>"</td> 
                 </tr> 
            </ItemTemplate>             
            </telerik:RadListView> 

.List() below returns a datareader.
        Protected Sub rlv_NeedDataSource(ByVal sender As ObjectByVal e As Telerik.Web.UI.RadListViewNeedDataSourceEventArgs) Handles rlv.NeedDataSource 
 
            Dim sqlDR As SqlDataReader 
            sqlDR = ObjectTest.List() 
            rlv.DataSource = sqlDR 
        End Sub 





Paul J
Top achievements
Rank 1
 answered on 16 Jun 2010
7 answers
140 views
I've got this error message Unknown server tag 'radP:RadPanelBar'  Then I have found this link  http://www.telerik.com/community/forums/aspnet-ajax/panelbar/unknown-server-tag-telerik-radpanelbar.aspx for this saying that 2008 version is needed for RadPanelBar. but I have Q 2007 RadControls version..  First of all, is this really true that I need to have this version otherwise with 2007 it doesnt work? Is that anyway I can download this for free since I have 2007 version?
One thing makes me confused though if I really need to have 2008 version , why under the folder Q 2007 RadControls , RadPanelBar dll and documents etc comes with it, that's why I automatically thought that I am ok to use Radpanelbar... Please advice!!
jaws1021
Top achievements
Rank 1
 answered on 16 Jun 2010
4 answers
120 views
I am doing a cross-page post using something similar to this...

Dim

 

amount As RadNumericTextBox = Me.PreviousPage.FindControl("txAmount")

 


If the end-user types in an amount, such as 12.50 on the original page, the cross page post will drop the 0.

How can i retain the zero buring a cross-page post?
Patrick Wilson
Top achievements
Rank 1
 answered on 16 Jun 2010
11 answers
276 views
Hello,

It seems the latest version of the telerik controls has an in-built loading panel, which is very nice...  but I was wondering if each control now has an API to show or hide that loading panel?  Is that a CSS thing, or something else?

Thanks.
Brian Mains
Top achievements
Rank 1
 answered on 16 Jun 2010
1 answer
147 views
Hi.

I have placed 4 RadSliders on my page and am struggling to get the RadSlider selection to start at the left and end at the right of the RadSlider. See attachment below. The first slider starts about 3mm from the left and ends 3mm from the right. This seems to happen if there are less than about 5 selections to choose from. The other 3 have alot more than 5 available selections and start/end in the expected place. Do you know why this may be happening and how it can be resolved?

Thank you for your time.

Dave
Tsvetie
Telerik team
 answered on 16 Jun 2010
2 answers
173 views
Hi Telerik,

I have a issue with RadWindow, I don't know how to do post back button event when I get values return from a Dialog.
Please help me with below code. Thanks
VnDevil
Top achievements
Rank 2
 answered on 16 Jun 2010
1 answer
420 views
I would like to have a radconfirm message on my aspx page, and depending on the answer, would like to do some server-side code.
I have found many, many different forums with multiple solutions for how to implement this logic. I could probably piece something together from what I have found, but I was curious as to the Best practices. I have never really had to communicate between client side and server side like this, so I really don't know what advantages/disadvantages there are to various methods. Would someone be able to "wrap it all up" for me in once post?

My requirements are as follows:
Situation One:
I have a Linkbutton to "Clear". When the user clicks this, I pop up a radConfirm asking them if they are sure. If they answer No, then I do nothing more. If they answer Yes, then I need to run some server-side code. I thought in this situation I would have my "CallBack" function from the radconfirm check the yes/no answer, and if yes, then call some server-side code, otherwise do nothing.   Does this sound like a logical method? Best way to call some server-side code from this javascript callback function?

Situation Two:
I have a "Clear" linkbutton inside of a repeater. This linkbutton has a CommandArgument bound to an ID, and I am using a CommandName; when clicked, I "delete" based on the specific ID. Simple enough. Now they want to add a "confirm" prompt to this process, and I would like to use radConfirm for this.  I would thing the process I have identified above would be okay, but how would I pass my desired bound ID to my callback function - can I just pass this into the parameter of the callback function?

Thanks for the help!
Stacey
Stacey Haslag
Top achievements
Rank 1
 answered on 16 Jun 2010
2 answers
219 views
How do I access Edit mode in RadGrid1_ItemCreated.

(Example)
    Private Sub RadGrid1_ItemCreated(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridItemEventArgs) Handles RadGrid1.ItemCreated
        If (something here) Then
                          'my code here
        End If
End Sub



Richard M
Top achievements
Rank 1
 answered on 16 Jun 2010
5 answers
277 views
I'm sure this is not what you wanted your demo to do, but it is something that happens all too often with all telerik controls I've used so far...
Kamen Bundev
Telerik team
 answered on 16 Jun 2010
1 answer
92 views
Is it possible somehow to set the WebMethodName clientside?
Pero
Telerik team
 answered on 16 Jun 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
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
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
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
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?