Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
140 views
Hello,

The bind does work, but i have <GridTemplateColumn> and I am using the approach to matching it, but it isn't working correctly.  Instead, it's binding nothing.  I am binding using set_data and calling dataBind, and I do see the rows, but the rows are empty.

I have a control like:
<asp:Label id="MyField" runat="server" />

And I do have a MyField field in the data source, but nothing is binding.  Also, my data keys collection is null... something isn't right...  I also tried GridBoundColumn and that isn't binding correctly either...
Todd Anglin
Top achievements
Rank 2
 answered on 23 Sep 2009
4 answers
168 views
Hi

In a RadGrid I created a FormTemplate for the EditFormSettings. This looks like following:

 <telerik:RadGrid ID="PartnerListGrid" runat="server" 
        AllowSorting="True" GridLines="None" Skin="Vista" ShowGroupPanel="True"  
        OnItemDataBound="PartnerListGrid_ItemDataBound" AutoGenerateColumns="False"  
        OnCancelCommand="PartnerListGrid_CancelCommand"  
        oninsertcommand="PartnerListGrid_InsertCommand"  
        onupdatecommand="PartnerListGrid_UpdateCommand"> 
 
... 
 
<EditFormSettings EditFormType="Template"> 
                <FormTableItemStyle Width="100%"></FormTableItemStyle> 
                <FormTableStyle GridLines="None" CellSpacing="0" CellPadding="2"></FormTableStyle> 
                <FormStyle Width="100%" BackColor="white"></FormStyle> 
                <EditColumn UniqueName="EditCommandColumn1"> 
                </EditColumn> 
                <FormTemplate> 
                    <table id="Table2" cellspacing="2" cellpadding="1" width="100%" border="0" rules="none" 
                        style="border-collapse: collapse"> 
                        <tr>...</tr> 
                        <tr>...</tr> 
                        <tr> 
                            <td align="right" colspan="2"> 
                                <asp:Button ID="btnUpdate" Text="Update" runat="server" CommandName="Update"></asp:Button> 
                                <asp:Button ID="btnInsert" Text="Insert" runat="server" CommandName="PerformInsert"></asp:Button>&nbsp; 
                                <asp:Button ID="btnCancel" Text="Cancel" runat="server" CausesValidation="False" CommandName="Cancel"></asp:Button> 
                            </td> 
                        </tr> 
                    </table> 
                </FormTemplate> 
            </EditFormSettings> 

There we have the three buttons for update, insert and cancel. In the code behind I have...

protected void PartnerListGrid_CancelCommand(object source, GridCommandEventArgs e) 
        { 
            PartnerListGrid.MasterTableView.ClearEditItems(); 
        } 

...but the event just doesn't get fired. I made it all over the gui. I have no idea what went wrong.
(Since I had several errors before about invalid postback or callback arguments I switched off EventValidation. Thought this probably has to be mentioned..)

Thanks in advance for some help
Regards
Roman

PS: Please don't hesitate to tell me if you require further information.






Daniel
Telerik team
 answered on 23 Sep 2009
2 answers
208 views
hi


How to display selected items of a radcombo in the textbox of radcombo  in tooltip.
For example i have selected any 4 items of the radcombo , when i keep the mouse over the  radcombo these selected items should be shown in tooltip.

Please give me some solution..
Thanks in advance
Laila
Simon
Telerik team
 answered on 23 Sep 2009
5 answers
113 views
Hi,

is there example or demo on this site,  similar to the existing one - "Put All items in edit mode ...", but with hierarchical grid.
After expanding some of the DetalTable child grids, all child items should be putted in edit mode automattically.

Thanks in advance. 
Mr. Plinko
Top achievements
Rank 1
 answered on 23 Sep 2009
1 answer
113 views
The web calendar that ships with vs.2008 allows a programmer to set a past/future date and the calendar will move to that date. How do you do this with the RadCalendar. For example, I want to set the calendar 100 days in the future from today's date. How do you set the future date in the calendar and get it to render to that new date? What am I missing??  I am doing this server-side in vb.net. Any help would be appreciated.
dhuss
Top achievements
Rank 1
 answered on 23 Sep 2009
7 answers
361 views
I am disabling my grid (so that the users cannot edit the contents), but noticed that pagination also gets disabled. Is there anyway to enable pagination alone when the grid is disabled ?
Mr. Plinko
Top achievements
Rank 1
 answered on 23 Sep 2009
2 answers
191 views
Is it a known limitation that the CSV export doesn't export the contents of the detail tables?  I've got a single method to handle the export and when i export to either Word, Excel or PDF the detail table is included.  But when i choose CSV only the parent table is included in the results.  The code is very simple and was pulled mostly from some other posts i saw on here about other peoples export problems.

        void lbtnExport_Click(object sender, EventArgs e)
        {
            rgComparativeReport.ExportSettings.FileName = "Comparative Report Export";
            rgComparativeReport.ExportSettings.ExportOnlyData = true;
            rgComparativeReport.ExportSettings.IgnorePaging = true;
            rgComparativeReport.ExportSettings.OpenInNewWindow = false;
            rgComparativeReport.MasterTableView.HierarchyDefaultExpanded = true;
            
            for (int i = 0; i < rgComparativeReport.MasterTableView.DetailTables.Count; i++)
            {
                rgComparativeReport.MasterTableView.DetailTables[i].HierarchyDefaultExpanded = true;
            }
            
            rgComparativeReport.Rebind();
        
            if (ddlExport.SelectedValue == "Excel")
            {
                rgComparativeReport.MasterTableView.ExportToExcel(); //this works fine
            }
            else if (ddlExport.SelectedValue == "Text")
            {
                rgComparativeReport.MasterTableView.ExportToCSV();  //This only exports the parent table
            }
            else if (ddlExport.SelectedValue == "Word")
            {
                rgComparativeReport.MasterTableView.ExportToWord(); //this works fine
            }
            else if (ddlExport.SelectedValue == "PDF")
            {
                rgComparativeReport.MasterTableView.ExportToPdf();//this works fine
            }
}

Thanks!
Mark


Mark Kucera
Top achievements
Rank 1
 answered on 23 Sep 2009
2 answers
94 views
I've been using Fasthosts for several years and like most hosting companies they have the ups and downs. I've got dozzens of sites using the ASP.Net Telerik components prior to the Ajax versions and no real problems. However my initial ventures using the newer ASP.Net Ajax components have resulted in security and memory problems. The sites work for a while and then simply cease to work, and the hosting company goes away and fixes it again and again.

Therefore can anyone recommend a UK Hosting company that they know to work with the Telerik ASP.Net components reliably.
Andy Hudson
Top achievements
Rank 2
 answered on 23 Sep 2009
2 answers
260 views
I am using the AdvancedForm user control, pretty successfully.  I am able to add my own controls, both textboxes and dropdowns.  Moving forward, my requirement is basically to have two different sets of input based on a selection of one of the dropdown Resource Controls.  If the selection is A, show inputs 1, 2, and 3, and if they select B, show input controls 4, 5 and 6, or something like that.  I'd like to know what you guys think the best course of action should be.

Thanks
Shawn
Shawn Tracy
Top achievements
Rank 1
 answered on 23 Sep 2009
1 answer
161 views
I have a RadCalendar initialized as follows:

<telerik:RadCalendar ID="radCalendar" runat="server" AutoPostBack="true"
            Skin="Special" EnableEmbeddedSkins="false"
            EnableMonthYearFastNavigation="false" NavigationNextToolTip="Next Month" NavigationPrevToolTip="Last Month"             
            DayNameFormat="Short" ShowRowHeaders="false" ShowOtherMonthsDays="false"
            OnDefaultViewChanged="RadCalendar1_DefaultViewChanged" OnDayRender="RadCalendar1_DayRender" >

My code behind handles calling a web service and populating the correct events into each day. What I want to be able to achieve is limiting the user from jumping ahead more than three months into the future. I know you can achieve this by the following line of code:

radCalendar.RangeMaxDate = now.AddMonths(3);

However, when the user clicks on next month to progress to say the 4th month the calendar is popping up a Javascript alert informing the user of an invalid date? Is there a way to turn that off or better, is there a way to either customize the message or to have the calendar navigation controls hide (per direction hopefully) when you hit the Min/Max Date for the calendar?

What I would like is for the user to never be able to look at a month in the past and only be able to view months within a 3 month window but without the default Javascript alert that pops up.

Any thoughts?

Thanks,
Derek







Schlurk
Top achievements
Rank 2
 answered on 23 Sep 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?