Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
1.2K+ views

Hi! I have two questions. I hope for for your help

1. How i know if the radgrid is empty?

2. How i can change the text to show when the radgrid is empty?

Thanks!!!!!

Briayan

Brygom
Top achievements
Rank 1
 answered on 01 Jun 2009
3 answers
142 views
Here's an example of what I'm working with:

http://www.mccsokinawa.com/functionalfitness/

Why is it that only the appointments for the current month get added into the ToolTipManager's TargetControls? I need all appointments on the calendar to have tooltips, but if you go to June, for example, none of the appointments have tooltips because they weren't displayed on the current month.

Here is my insert code:

        protected void RadScheduler1_AppointmentCreated(object sender, AppointmentCreatedEventArgs e)  
        {  
 
            string clientID = e.Appointment.ClientID;  
            RadToolTipManager1.TargetControls.Add(clientID, e.Appointment.ID.ToString(), true);   
 
        }  
 
        protected void RadToolTipManager1_AjaxUpdate(object sender, ToolTipUpdateEventArgs e)  
        {  
 
            int toolTipID = Convert.ToInt16(e.Value);  
            DataExercisesTableAdapters.ExercisesTableAdapter adapter = new DataExercisesTableAdapters.ExercisesTableAdapter();  
            string description = "<p><strong>Click exercise name to watch video</strong></p>" + adapter.GetDescription(toolTipID).ToString();  
            Label lblText = new Label();  
            lblText.Text = description;  
            e.UpdatePanel.ContentTemplateContainer.Controls.Add(lblText);  
 
        } 

I could use some quick help as I have an important meeting regarding this application coming up on Monday. Thanks.
David
Top achievements
Rank 1
 answered on 31 May 2009
3 answers
120 views
HI,

I need a ToolTip ( Server Side) with 4 rows and 2 Colums..... as shown Below

Name  |       (Value of name from DB)
Address  |       (Value of Address from DB)
Phone  |       (Value of Phone from DB)
Age  |       (Value of Age from DB)

The lefthand side is default and right hand side is from Db......

Hope u got my issue ....

looking forward for a Positive and Quick Reply...

Regards,
Suresh S

suresh
Top achievements
Rank 1
 answered on 31 May 2009
0 answers
79 views
Hi
Is it possible to change sliding PanelBar expand and collapse animation type?
Behnam
Top achievements
Rank 1
 asked on 31 May 2009
3 answers
103 views
Hello,

 would appreciate to have the following behavior with sliding panelbar sample, similar to Spliting Pane :

1) when expanded, collapse on a click outside its area
2) auto collapse when mouse in no more over panelbar
3) auto collapse after a time delay


Many thanks for help.
CS
Behnam
Top achievements
Rank 1
 answered on 31 May 2009
2 answers
67 views

I have a problem wiht the asp.net ajax controls, i can't see the controls designer, but running Ok.

I have reinstall de controls and the visual studio,but no is the solution for this problem

Here a capture from de problem..

Thanks for your help..!

http://img505.imageshack.us/img505/918/errora.png

Brygom
Top achievements
Rank 1
 answered on 30 May 2009
1 answer
121 views
Hi,
I have three drop-down lists in the FormTemplate section of a MasterTableView. The lists are part of about 10 fields which are edited for the current record. Depending on the value of two of the drop-down lists, I need to change the sqldatasource query behind the third drop-down list. I've implemented code in the past where I'm intercepting thing in this EditForm after a user clicks a command button, but I can't figure out how a.) determine the row's index value for the row holding the FormTemplate, and b.)grab the selectedValue of a drop-down list in that FormTemplate. 

thanks in advance !
StringTheory
Top achievements
Rank 1
 answered on 30 May 2009
1 answer
204 views
Hi

I am trying to figure out how to trim the trailing spaces off the Url and the Text fields.   Both are coming from a linqdatasource.

I have tried a couple things but without success.

Hope someone can lead me in the right direction.

Thanks Paul
 
                            <telerik:GridHyperLinkColumn DataNavigateUrlFields="Item_Info_Url" DataTextField="Item_Description" 
                                UniqueName="column" DataNavigateUrlFormatString="{0:G}"  
                                DataTextFormatString="{0:G}"
                            </telerik:GridHyperLinkColumn> 
Dimo
Telerik team
 answered on 30 May 2009
1 answer
112 views
I have a RadGrid inside a div element,I set client setting allow columns resizing and allow columns reordering to true,I resized a column then I drag and drop this column with another column, the width of these two columns swapped between each other.

ex. if the first column width = 500px and the second column width =100px ,then the first column width become 100px and the second column width become 500px.this issue already persist in the following demo http://demos.telerik.com/aspnet-ajax/grid/examples/client/resizing/defaultcs.aspx

Thank you for any help.
Georgi Krustev
Telerik team
 answered on 30 May 2009
1 answer
107 views
I have subscribed to the OnCommand event in my grid. I have a GridButtonColumn that I'm catching the command on, and setting a global JS variable. No cancelling... I just need to know it was clicked basically. Once I did this, I noticed that when I have more than one record, the server side ItemCommand event has the wrong RowIndex/DataKeyValues. If I do nothing but take the clientevents out, all is well, and the indexes and operations are fine. Here is the JS I have in my OnCommand:

function estGridCommandClicked(sender, eventArgs) { 
    var command = eventArgs.get_commandName(); 
 
    if (command == "Update"
        _containsDirtyEstimates = true

If it's any consellation, here's the MasterTableView declaration:
            <telerik:RadGrid ID="GridView1" runat="server" AutoGenerateColumns="false" 
                onitemcommand="GridView1_ItemCommand" AllowAutomaticUpdates="false" OnItemDataBound="GridView1_RowDataBound"  
                OnUpdateCommand="GridView1_UpdateCommand"
                <MasterTableView Width="100%" CommandItemDisplay="Top" DataKeyNames="ID" ClientDataKeyNames="ID"
and everything after columns:
<EditFormSettings EditFormType="Template"
                        <FormTemplate> 
                            <OKS_Controls:EstimateAdd runat="server" id="EstimateAdd1" ValidationGroup="EstValidationGroup" /> 
                        </FormTemplate> 
                        <EditColumn UniqueName="EditCommandColumn1"
                        </EditColumn> 
                    </EditFormSettings> 
                    <CommandItemSettings AddNewRecordText="Request a New Estimate" /> 
                </MasterTableView> 
                <ClientSettings> 
                    <ClientEvents OnCommand="estGridCommandClicked" OnRowCreated="estGridRowCreated" />                    
                </ClientSettings> 



Tsvetoslav
Telerik team
 answered on 30 May 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
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
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?