Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
95 views
I have an existing project that was using the Q1 2009 ASP.NET AJAX controls. I upgraded to the Q2 2009 ASP.NET AJAX control set and am now receiving a validation error on my date picker. I have set the MaxDate property to 12/31/2999, but the control will not accept a date beyond 12/31/2099 (the default).
Dimo
Telerik team
 answered on 06 Aug 2009
5 answers
459 views
Hi,

Let's assume there is a grid displaying application users. There are various columns and among them: name, surname and login. I would like this grid to behave this way:
- when I click the "name" column header it sorts by: name, surname
- when I click the "surname" column header it sorts by: surname, name
- when I click the "login" column header it sorts by: login

In the MS DataGrid it can be easily achieved setting SortExpression values. accordingly:
- "name, surname"
- "surname, name"
- "login"

Is it possible to do the same using RadGrid? The SortExpression property must contain a single field name. If AllowMultiColumnSorting = true, clicking columns' headers just adds or subtracts columns from the current set of sorting expressions. The above is possible but requires too much clicking and unneccessary intermediate sortings (e.g.: the current sorting is "name, surname"; I want to sort by "login"; I must click "name", then "surname" and "login" at last; three click and sortings instead of one).

Can you help me?

Regards
Tomasz

PS. Multi value SortExpression properties ("name, surname") worked in the "classic" RadGrid...
tmlipinski
Top achievements
Rank 1
 answered on 06 Aug 2009
8 answers
120 views
I get this information -
Error Creating Control - RADChart1
Failed to create designer'Telerik.Web.UI, version=2009.1.3111.35, culture=neutral, PublicKeyToken=...

And I had put in VB files this code

Imports

 

System

 

Imports

 

System.Configuration

 

Imports

 

System.Collections

 

Imports

 

System.Web

 

Imports

 

System.Web.Security

 

Imports

 

System.Web.UI

 

Imports

 

System.Web.UI.WebControls

 

Imports

 

System.Web.UI.WebControls.WebParts

 

Imports

 

System.Web.UI.HtmlControls

 

Imports

 

Telerik.Charting

 


So maybe is there something i don't undertand how this work?
I wounder about the platform Win Server 2008 x64 is also a part of the problem?
Brian
Top achievements
Rank 1
 answered on 06 Aug 2009
3 answers
109 views
Hi,

I was using RAD Controls Q3  2007 release version. I was using almost most of the controls such as DatePicker, Textbox, drop down, litsbox, radgrid etc. 

Since the "export to excel" feature of the Q3 2007 release doesn't support "ExcelML" format, i am going to upgrade Q2 2009 release of RAD Grid. Considering the migration time of all the controls to the latest version, i planned to upgrade only the RAD Grid control of the particular page. 

Does that cause any issue now (using mixed versions of RAD Controls in a page/project)?

Please let me know.

Thanks
Viswa
Dimo
Telerik team
 answered on 06 Aug 2009
1 answer
65 views
Hi,

  I'm using MOSSRadEditor in my custom webpart for sharepoint.I need to validate this control as required field.

Please help me!
Stanimir
Telerik team
 answered on 06 Aug 2009
3 answers
164 views
Hi
i use radGrid with GridTemplateColumn, which hold link buttons for doing many action, but when i try to sort any column, and then click at any of these buttons, the grid forget the sort order,
here is my grid
<telerik:RadGrid ID="grdNewContent" runat="server" AllowPaging="True" AllowSorting="True"
                        CssClass="listItems" AutoGenerateColumns="False" GridLines="None" AutoGenerateEditColumn="false"
                        Skin="SitefinityItems" EnableEmbeddedSkins="false" PageSize="50" AllowMultiRowSelection="true"
                        AllowFilteringByColumn="false">
                        <PagerStyle AlwaysVisible="true" Mode="NumericPages" />
                        <ClientSettings>
                            <Selecting AllowRowSelect="true" />
                        </ClientSettings>
                        <MasterTableView>
                            <RowIndicatorColumn Visible="false">
                            </RowIndicatorColumn>
                            <ExpandCollapseColumn Resizable="false" Visible="false">
                            </ExpandCollapseColumn>
                            <Columns>
                                <telerik:GridClientSelectColumn ItemStyle-CssClass="gridActions">
                                </telerik:GridClientSelectColumn>
                                <telerik:GridTemplateColumn UniqueName="Action" HeaderText="<%$Resources:Action %>"
                                    ItemStyle-CssClass="gridActions edit" Reorderable="true">
                                    <ItemTemplate>
                                        <asp:LinkButton ID="btnPublish" Text="<%$Resources:Publish %>" runat="server" CommandName="Publish"
                                            Visible="false" />
                                        <asp:LinkButton ID="btnEdit" Text="<%$Resources:Edit %>" runat="server" CommandArgument='<%#Eval("Id") %>'
                                            Visible="false" />
                                        <asp:LinkButton ID="btnReject" Text="<%$Resources:Reject %>" runat="server" CommandName="Reject"
                                            Visible="false" CommandArgument='<%#Eval("Id")%>' />
                                        <asp:LinkButton ID="btnRestore" Text="<%$ Resources:Restore %>" runat="server" CommandArgument='<%#Eval("Id") %>'
                                            Visible="false" />
                                    </ItemTemplate>
                                </telerik:GridTemplateColumn>
                                <telerik:GridButtonColumn ConfirmText="<%$ Resources:AreYouSure %>" CommandName="Delete"
                                    ItemStyle-CssClass="gridActions delete" HeaderText="<%$ Resources:Delete %>"
                                    ButtonType="LinkButton" UniqueName="Delete">
                                </telerik:GridButtonColumn>
                                <telerik:GridTemplateColumn HeaderText='<%$Resources:PostTitle %>' UniqueName="Title"
                                    SortExpression="Title" ItemStyle-CssClass="gridContentTitle">
                                    <ItemTemplate>
                                        <asp:LinkButton runat="server" ID="btnPreview" CommandArgument='<%# Eval("Id") %>'
                                            Text='<%# Eval("TruncatedTitle") %>'></asp:LinkButton>
                                    </ItemTemplate>
                                </telerik:GridTemplateColumn>
                                <telerik:GridBoundColumn HeaderText="<%$Resources:Author %>" UniqueName="Author"
                                    SortExpression="AuthorName" DataField="Author">
                                    <FilterTemplate>
                                    </FilterTemplate>
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn HeaderText="<%$Resources:Created %>" UniqueName="Created"
                                    SortExpression="PostDate" DataField="PostDate" DataFormatString="<%$Resources:DateFormat %>">
                                </telerik:GridBoundColumn>
                                <telerik:GridTemplateColumn UniqueName="Status" SortExpression="StatusId" HeaderText="<%$Resources:Status %>">
                                    <ItemTemplate>
                                        <asp:Label ID="lblStatus" runat="server" Text='<%#Eval("Status.Title") %>'> </asp:Label>
                                    </ItemTemplate>
                                </telerik:GridTemplateColumn>
                            </Columns>
                            <EditFormSettings>
                                <EditColumn UniqueName="EditCommandColumn1">
                                </EditColumn>
                            </EditFormSettings>
                        </MasterTableView>
                    </telerik:RadGrid>

can you help me at this issue,
than you in advance


Schlurk
Top achievements
Rank 2
 answered on 06 Aug 2009
1 answer
131 views
Hi,

I have a RadWindow in which I have radGrid with three radio buttons(CSV,Excel and PDF). I have two buttons SaveAs and Close. When the user selects any radio button(export type) and click on SaveAs, the user should be able to download the file and SaveAs  should be closed automatically. If the user clicks on Close without clicking on SaveAs, the window should close.

I am able to close radwindow when I click on close button. But, when I click on SaveAs, the file download is popping up and the RadWindow is not closing. Is there any issue with my code???

Default.aspx.cs

        protected void btnSaveAs_Click(object sender, EventArgs e)
        {
           if (Session["ReportPager"] != null)
            {
                reportPager = (ReportPager)Session["ReportPager"];
                SetExportSettings();
                DownloadData();
                lblCloseWindow.Text = StringHelper.GetRadWindowCloseScript();
            }
        }

        protected void btnClose_Click(object sender, EventArgs e)
        {
            lblCloseWindow.Text = StringHelper.GetRadWindowCloseScript();
        }

        private void DownloadData()
        {
            //CSV
            if (SelRadioButtonList1.SelectedItem.Text == SelRadioButtonList1.Items[0].Text)
                this.radGrid.MasterTableView.ExportToCSV();
            //Excel
            else if (SelRadioButtonList1.SelectedItem.Text == SelRadioButtonList1.Items[1].Text)
                this.radGrid.MasterTableView.ExportToExcel();
            //PDF
            else if (SelRadioButtonList1.SelectedItem.Text == SelRadioButtonList1.Items[2].Text)
                this.radGrid.MasterTableView.ExportToPdf();
        }

        private void SetExportSettings()
        {
            this.radGrid.ExportSettings.ExportOnlyData = true;
            this.radGrid.ExportSettings.IgnorePaging = true;
            this.radGrid.ExportSettings.OpenInNewWindow = true;
        }

         /// <summary>
        /// This function returns script which is used to close RadWindow at runtime.
        /// </summary>
        /// <returns></returns>
        private static string GetRadWindowCloseScript()
        {
            return @"
            <script type='text/javascript'>
                var oWindow = null;
                if (window.radWindow)
                    oWindow = window.radWindow;
                else if(window.frameElement.radWindow)
                    oWindow = window.frameElement.radWindow;
                var currentWindow = oWindow;
                currentWindow.Close();
            </script>";
        }
Fiko
Telerik team
 answered on 06 Aug 2009
1 answer
151 views
I'm using a RadComboBox with a definition like this:
<tel:RadComboBox ID="ChooseCustomer" runat="server" Width="200" DropDownWidth="300"  EmptyMessage="Type a customer name" AllowCustomText="true" MarkFirstMatch="true" > 
     <CollapseAnimation Duration="50" /> 
     <ExpandAnimation Duration="50" /> 
</tel:RadComboBox> 

in the code behind:
During page load and ! postback... something like this:
IList<Customer> all = EntityPersister.GetAll<Customer>(); 
ChooseCustomer.DataSource = all; 
ChooseCustomer.DataTextField = "CustomerName"; 
ChooseCustomer.DataValueField = "ID"; 
ChooseCustomer.DataBind(); 

now... the problem comes when a CustomerName is a blank string.

in a subsequent postback, then SelectedIndex property is set to the first "Blank" databound item.  but the front end still says "Type a customer name" 

Obviously the user has not changed the drop down, but its still reporting erroneously that the selected index is chosen.

Thanks
Sean
Genady Sergeev
Telerik team
 answered on 06 Aug 2009
0 answers
151 views
Hi
I dont want to text wrap in the appointment just like this demo.If the appoint text is large its wraping to the next and next to next line so the appointments are overlapping. how can i avoid this?
http://demos.telerik.com/aspnet-ajax/scheduler/examples/outlook2007/defaultcs.aspx
Regards
Vairamuthu
vairam
Top achievements
Rank 1
 asked on 06 Aug 2009
1 answer
174 views
I have a table with a foreign key which is set via a RadComboBox control on an Edit Form Template.  All works well if a value is picked from the combo box, but it is possible for this field to be null.  To allow this, I have set up an item in the combo which has "unknown" as its text and a blank value property.  The lookup values via a datasource are appended to this in the standard manner.

However, despite Linq defining this field as being nullable, unless I pick a value from the combo box the RadGrid won't save it.  Unbinding the combo box (thus effectively ignoring the field) is fine - the new row is added without fuss, so the field can be null, it's just that a blank value field in the RadComboBox obviously doesn't equate to this at save time.

So my question is, what's the best way to handle lookups for foreign key fields where the foreign key can be null?  (I should add that the foreign key field is an Int32, in case that matters).

Thanks,
Peter
Veli
Telerik team
 answered on 06 Aug 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?