Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
100 views
Hi,

I have couple of queries. Please let me know how we can implement them?

1. Can we have different detail table view for each row of a master table view?

MasterTableView

Item1 (Row1)  ---------------------------------------------------------------------------------------
        DetailTableView 1
Item2 (Row 2) ---------------------------------------------------------------------------------------
        DetailTableView2

2. Can we drag and drop the items of DetailTableView1 to DetailTableView2 and vice-versa?

Please let me know if this possible.

Thanks in advance.

Arvind Singh
Top achievements
Rank 2
 answered on 28 Aug 2009
3 answers
368 views
<MasterTableView ShowGroupFooter="True" Width="100%">
                        <GroupHeaderItemStyle Font-Bold="true" ForeColor="Yellow" />
                      
                        <%--   <Columns>
                            <telerik:GridBoundColumn  HeaderText="Proposals" SortExpression="Proposal_ID" UniqueName="Proposal_ID">
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn  DataType="System.Int32" FooterText="Total : " Aggregate = "Count"
                                HeaderText="EstTrials" SortExpression="EstTrials" UniqueName="Trials :">
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn DataType="System.Decimal" Aggregate="Sum"
                               DataFormatString ="{0:c}"  HeaderText="EstCost" SortExpression="EstCost" UniqueName="Cost :">
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn  HeaderText="CropName" Visible ="false"
                                SortExpression="CropName" UniqueName="CropName">
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn HeaderText="ProdName"  Visible ="false"
                                SortExpression="ProdName" UniqueName="ProdName">
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn  HeaderText="TerritoryName"  Visible ="false"
                                ReadOnly="True" SortExpression="TerritoryName" UniqueName="TerritoryName">
                            </telerik:GridBoundColumn>
                            <telerik:GridButtonColumn ButtonType ="ImageButton" ImageUrl ="images/Delete.gif" HeaderText ="Remove">
                                          
                            </telerik:GridButtonColumn>
                        </Columns>--%>
                    </MasterTableView>


I want to set the all above property through code behind in VB.net ...... I want to hide last 3 columns
I hv bind the data to radgrid throght databind from codebehind, but it binds all columns from code .... How to set visiblilty of columns?

Thnkas
Regards
Rahul
Rahul
Top achievements
Rank 1
 answered on 28 Aug 2009
1 answer
106 views
I am using a RadDatePicker with a DateInput and a Calendar.

- How do I remove the built-in validation for the DateInput control?

- Is it possible to use a standard asp:Textbox instead of the DateInput control?

Roy
Princy
Top achievements
Rank 2
 answered on 28 Aug 2009
2 answers
289 views
aspx:
<telerik:RadTextBox runat="server" ID="rtxtUserName" ReadOnly="true"></telerik:RadTextBox>
<input type="button" value="Assign Value" onclick="assignValue()">
<asp:Button runat="server" ID="Button1" OnClick="Button1_OnClick"></asp:Button>
js:

function assignValue()
{
var userName = $find('<%= rtxtUserName.ClientID %>');
userName.set_value('Thomas');
}

cs:

Button1_Click
{
string userName = rtxtUserName.Text;
}

when clicking the "Assign Value" button, nothing happens on rtxtUserName if ReadOnly set to be true.



Miao Weibin
Top achievements
Rank 1
 answered on 28 Aug 2009
1 answer
164 views
Hi,
I have a radgrid and an ajax manager on my page.
The add new button in the grid uses the onitemcommand event and redirects the user to another page.
But when clicking on the button the grid first makes an ajax request and the loading panel is showing up, then redirects the user.
Is it possible to disable the ajax function for the add new button so the user is redirected instantly?

Regards,
Mattias
Daniel
Telerik team
 answered on 27 Aug 2009
5 answers
317 views
Hi experts

I am exporting a plain excel spreadsheet with a header row, and I am already
using the 'Caption' property for the Title. But I also need to add
the Company name and address on several lines at the top of the table.

How can I achieve this?

Thanks

Clive.
Daniel
Telerik team
 answered on 27 Aug 2009
3 answers
558 views
Hi

I have an export to excel (plain, not ExcelML)  that looks fine, and the cell contens is aligned correctly
(eg numbers are aligned right), but i have not been able to find a way to set the default font for
the entire excel worksheet. It comes out Times New Roman, although the visible version of the
grid is default skin.

I have looked at various code snippets in the docs but no joy so far.

I guess this is really simple and I'll kick myself when I see it...

Thanks for your help

Clive

Daniel
Telerik team
 answered on 27 Aug 2009
8 answers
253 views
Hey another quandary with the ExportToPDF method.
I've been going though the examples and forums learning how to apply some styling to the PDF as it's being exported. Currently I'm able to apply the styles I want for the most part, however whenever I set the 'ignorePaging' setting to True on the export settings, it also seems to ignore my applied styles and also truncates the last column from even being shown.

Here's my export settings:
<ExportSettings Pdf-PageWidth="350mm" Pdf-PaperSize="C5_Envelope" IgnorePaging="true" ExportOnlyData="true"></ExportSettings> 

and here's how I apply my styles (via a ASP button click event):

protected void btnExport_Click(object sender, EventArgs e) 
        {      
            ApplyPDFStyles(); 
            RadGrid1.MasterTableView.ExportToPdf();    
        } 
 protected void ApplyPDFStyles() 
        { 
            foreach (GridColumn col in RadGrid1.MasterTableView.RenderColumns) 
            { 
                if (col.UniqueName == "exCol"
                { 
                    col.Visible = false//this is a manual expand/collapse collumn I'm hiding. 
                } 
            } 
            GridItem headerItem = RadGrid1.MasterTableView.GetItems(GridItemType.Header)[0]; 
            headerItem.Style["horizaontal-align"] = "left"
            headerItem.Style["background-color"] = "#777"
            RadGrid1.MasterTableView.GetColumn("ItemNumber").HeaderStyle.Width = Unit.Pixel(35); 
            RadGrid1.MasterTableView.GetColumn("ItemNumber").HeaderStyle.HorizontalAlign = HorizontalAlign.Left; 
            RadGrid1.MasterTableView.GetColumn("COURSE_ID").HeaderStyle.Width = Unit.Pixel(70); 
            RadGrid1.MasterTableView.GetColumn("COURSE_ID").HeaderStyle.HorizontalAlign = HorizontalAlign.Left; 
            RadGrid1.MasterTableView.GetColumn("COURSE_TITLE").HeaderStyle.Width = Unit.Pixel(130); 
 
// 
// many more column styles removed for simplicity...these all apply when ignorePaging is set to false 
// 
 
            foreach (TableCell cell in headerItem.Cells) 
            { 
                cell.Style["text-align"] = "left"
            } 
        } 

Adam
Top achievements
Rank 1
 answered on 27 Aug 2009
1 answer
128 views
I am creating Comboboxes dynamically and adding them to a RadGrid during the ItemDataBound event, which works great.  They are using load on demand, virtual scrolling, and marksfirstmatch.

However, when users tab through the comboxes extremely fast, the previous combos are in a dropdown state and are not collapsing on their own.  When you click anywhere on the page they do collapse.  But the requirement is that they should collapse on their own.  This also happens on declared comboboxes.  My concern is for the dynamic server-side combos.

I can't seem to find javascript that will automatically collapse the combos onBlur or onUnfocus or whatever.  I would like to hook it up to my dynamic comboboxes.  I then thought of turning the collapse animation off, however, it is readonly. 

Any help please.

Tad Rhodes
Top achievements
Rank 1
 answered on 27 Aug 2009
2 answers
556 views
These methods are in the documentation, but when I try to use them, I get an error that they are undefined.  Breaking within my javascript reveals that they in fact do NOT exist.  How does one determine whether or not an item is already in the RadListBox on the client-side?

My code is below.  rlbOtherCSRs is a RadListBox and rcbOtherCSRs is a RadComboBox.  I'm trying to copy the item from the combo box to the list box, but only if the list box doesn't already have it.

                function AddOtherCSRClick() {  
                    var rcbOther = $find("<%= rcbOtherCSRs.ClientID %>");  
                    var rlbOther = $find("<%= rlbOtherCSRs.ClientID %>");  
 
                    if (rcbOther.get_selectedIndex() > 0) {  
                        var selected = rcbOther.get_selectedItem();  
                        var existingitem = rlbOther.findItemByValue(selected.get_value());  
                        if (!existingitem) {  
                            var newitem = new Telerik.Web.UI.RadListBoxItem();  
                            newitem.set_value(selected.get_value());  
                            newitem.set_text(selected.get_text());  
                            rlbOther.trackChanges();  
                            rlbOther.get_items().add(newitem);  
                            newitem.select();  
                            rlbOther.commitChanges();  
                        }  
                    }  
                }  
 
mlandauer
Top achievements
Rank 1
 answered on 27 Aug 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?