Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
113 views
I am confused over the use of "default" skin terminology

In the Configure Project dialog I select a skin that is supposedly the "default".

Let's use Metro, since it is very distinctive.

If I go to RadMenu tasks I can also select a "default" skin which is different from Metro. (basically shades of gray)


If I edit the HTML and change "skin="default" to "skin="" then I get something else entirely.

Removing "skin=" completely gives the the default project skin of Metro, as intended.

However, when I go back to RadMenu tasks, the skin remains listed as "default".

It seems to me that the term is overloaded.

I am also finding differences with Metro Touch, where I don't get the project default, and need to specify the skin explicitly for certain controls. Since that skin was just released, I think it will take a while for consistent integration. But those issues brought the confusion (in my mind) to the forefront.

Can anyone explain what is going on?




Tsvetina
Telerik team
 answered on 28 Sep 2012
8 answers
566 views
Hi.
I have a doubt, i need to export from a radgrid to an excel file, i'm using 

RadGrid4.ExportSettings.ExportOnlyData =

False

RadGrid4.ExportSettings.IgnorePaging =

True

RadGrid4.ExportSettings.OpenInNewWindow =

True

RadGrid4.MasterTableView.ExportToExcel()

and it works just fine, but i would like to know if there is a way to export columns that are hidden, because i'm only showing 4 columns and there are like 50 columns on the table and i need to export all of them but i'm just getting the ones that are not hidden, is there a way get them all?

thanks in advanced.

Sumit
Top achievements
Rank 1
 answered on 28 Sep 2012
5 answers
278 views
Hi
I'm currently finding my way on radgrid client side scripting
i want to open the insert row (when client click on "add new record") without postback - is there a way to do it?

or even better - how can i work with radgrid entirly from the client side
I mean that my ultimate goal is to get the records from my data source when the page is initialized
but then work "offline" when inserting/updaing/deleting records will be made only in the grid itself
(and later when the client submit the page - i will extract the changes and do stuff on the server side...)

thank you
Yotam

Eyup
Telerik team
 answered on 28 Sep 2012
2 answers
45 views
I am looking at the example on the Telerik website in several browsers and in IE9 progress bar does not work.
AsyncUpload / Progress Demo

Progress working in:

Chrome
Firefox
Opera
Safari

Should the progress bar work in IE9?

Thanks,
Marty
moegal
Top achievements
Rank 1
 answered on 28 Sep 2012
9 answers
89 views
Hi,
I have a scheduler with Appointments that have two Resources (Room, User) and two Custom Attributes (Status, Treatment). I have customised the Advanced Form as per your documentation.
My requirement is to relate the Treatment combobox (Custom Attribute) to the User combobox (Resource) such that the User combobox populates depending on the value selected in the Treatment combobox.
Please could you advise me on how I can acheive this (relate a Custom Attribute to a Resource)?
I have successfully managed to implement a Related Combobox example on a separate page for testing purposes so I can see the related combobox working.
My Advanced Form uses the ResourceControl.ascx for the resources on the advanced form.

Many thanks in advance.
Tas.
Jill-Connie Lorentsen
Top achievements
Rank 1
 answered on 28 Sep 2012
1 answer
220 views
Hai,

         I have used Telerik Controls in my Project.I have added reference for the dll in my project.Iam getting error
"the type or namespace telerik could not be found in the global namespace".Can anyone pls tell me how to solve this issue.
Thanks in Advance
Pavlina
Telerik team
 answered on 28 Sep 2012
1 answer
84 views
1. When display Current Month should shows as well as 6 months before and 6 months after.
2. Date selection should be available only for Day option. It should be hidden for Week, Month or Timeline.

Question, is there any way to achieve these functions?
Boyan Dimitrov
Telerik team
 answered on 28 Sep 2012
6 answers
350 views
I've hit a road block trying to figure this out. Here's how my rad grid is setup:

<maui:RadGrid ID="grdBeast" runat="server" OnNeedDataSource="grdBeast_OnNeedDataSource" OnDetailTableDataBind="grdBeast_OnDetailTableDataBind"
      OnDataBound="grdBeast_OnDataBound" OnColumnCreated="grdBeast_ColumnCreated" OnPreRender="grdBeast_OnPreRender" OnItemDataBound="grdBeast_ItemDataBound">
  <MasterTableView DataKeyNames="Combined1" TableLayout="Auto" AllowPaging="True" PageSize="25" AutoGenerateColumns="True" ShowFooter="True">
    <DetailTables>
      <maui:GridTableView runat="server" DataKeyNames="Combined2" Name="Combined2" AutoGenerateColumns="True" BorderWidth="0" >
        <DetailTables>
          <maui:GridTableView runat="server" Name="Combined3" DataKeyNames="Combined3" AutoGenerateColumns="True" BorderWidth="0">
            <DetailTables>
              <maui:GridTableView runat="server" Name="Combined4" DataKeyNames="Combined4" AutoGenerateColumns="True" BorderWidth="0">
                <DetailTables>
                  <maui:GridTableView runat="server" Name="Combined5" DataKeyNames="Combined5" AutoGenerateColumns="True" BorderWidth="0">
                    <DetailTables>
                      <maui:GridTableView runat="server" Name="Combined6" DataKeyNames="Combined5" AutoGenerateColumns="True" BorderWidth="0">
                        <DetailTables>
                          <maui:GridTableView runat="server" Name="Combined7" DataKeyNames="Combined5" AutoGenerateColumns="True" BorderWidth="0">
                            <DetailTables>
                              <maui:GridTableView runat="server" Name="Combined8" DataKeyNames="Combined5" AutoGenerateColumns="True" BorderWidth="0">
                              </maui:GridTableView>                             
                            </DetailTables>
                          </maui:GridTableView>
                        </DetailTables>
                      </maui:GridTableView>
                    </DetailTables>
                  </maui:GridTableView>
                </DetailTables>
              </maui:GridTableView>
            </DetailTables>
          </maui:GridTableView>
        </DetailTables>
      </maui:GridTableView>
    </DetailTables>
  </MasterTableView>
</maui:RadGrid>

DetailTables are bound with the OnDetailTableDataBind event:

protected void grdBeast_OnDetailTableDataBind(object sender, GridDetailTableDataBindEventArgs e )
    {
      var keyVal = e.DetailTableView.ParentItem.KeyValues;
      var keyPath = new List<string> ();
      TraverseUpGridViewParents ( e.DetailTableView, ref keyPath );
      keyPath.Insert ( 0, keyval );
 
      if (Cntrl.ViewModel.IsTableATransactionDetailTable(e.DetailTableView.Name))
        e.DetailTableView.DataKeyNames = new string[] { "TranType" };
 
      e.DetailTableView.DataSource = Cntrl.ViewModel.GetReportDataSource ( GetCollectionSummaryConfigIndex (), keyPath, e.DetailTableView.Name );
    }

For the most part, all of the detail tables including the master table display the same columns.  At some point I supply a different datasource that has 3 different columns for what I call a transaction detail table. One of the columns needs to be a GridTemplateColumn containing a link button that has a click event. So far I've tried modifying the OnDetailTableDataBind event to the code shown below.
protected void grdBeast_OnDetailTableDataBind(object sender, GridDetailTableDataBindEventArgs e )
    {
      var keyval = e.DetailTableView.ParentItem.KeyValues;
      var keyPath = new List<string> ();
      TraverseUpGridViewParents ( e.DetailTableView, ref keyPath );
      keyPath.Insert ( 0, keyval );
 
      if (Cntrl.ViewModel.IsTableATransactionDetailTable(e.DetailTableView.Name))
      {
        e.DetailTableView.DataKeyNames = new string[] { "TranType" };
 
        var receiptColumn = new GridTemplateColumn();
        receiptColumn.HeaderText = "Receipt Column";
        receiptColumn.UniqueName = "ReceiptColumn";
        receiptColumn.DataField = "ReceiptColumn";
        receiptColumn.ItemTemplate = new ReceiptColumnTemplate();
        e.DetailTableView.Columns.Add(receiptColumn);
      }
 
      e.DetailTableView.DataSource = Cntrl.ViewModel.GetReportDataSource (
        GetCollectionSummaryConfigIndex (), keyPath, e.DetailTableView.Name );
    }
 
private class ReceiptColumnTemplate : ITemplate
    {
      private LinkButton receiptButton;
 
      public void InstantiateIn(System.Web.UI.Control container)
      {
        receiptButton = new LinkButton ();
        container.Controls.Add(receiptButton);
        receiptButton.DataBinding += new EventHandler(receiptButton_DataBinding);
        receiptButton.ID = "receiptLink";
      }
 
      void receiptButton_DataBinding(object sender, EventArgs e)
      {
        var receiptButton = ( LinkButton ) sender;
        var container = ( GridDataItem ) receiptButton.NamingContainer;
        receiptButton.Text = ( ( DataRowView ) container.DataItem ) [ "ReceiptNumber" ].ToString ();
      }
    }
 
protected void grdBeast_ItemDataBound(object sender, GridItemEventArgs e)
    {
      if (e.Item is GridDataItem)
      {
        if (Cntrl.ViewModel.IsTableATransactionDetailTable(e.Item.OwnerTableView.Name))
        {
          var item = ( GridDataItem ) e.Item;
          var linkButton = (LinkButton)item.FindControl ( "receiptLink" );
          if (linkButton != null)
          {
            linkButton.Click += new EventHandler(linkButton_Click);
          }
        }
      }
    }

The changes display the new column correctly but when I click on the link button, the click event is never reached and then the column disappears and the rest are mismatched from their corresponding data. So then I tried not using the ItemDatabound event to assign the link button a click handler and assigned it in the template class.  Clicking the link button in that setup also never reached the link button click event.
 
Anyone know how I can fix this or have a better method for adding a template column to a detail table that has auto generated columns?
Pavlina
Telerik team
 answered on 28 Sep 2012
8 answers
152 views

Hi Team,

I want multiple selection of files and also i want to filter files  so i am using RadAsyncUpload instead of RadUpload. But i am using it in radtoolbar itemtemplate like this :

 

 

 

<telerik:RadToolBarButton Value="Upload1">

 

 

 

<ItemTemplate>

 

 

 

<telerik:RadAsyncUpload runat="server" ID="rupfFile" AllowedFileExtensions="sqx,sqm,xls,xlsx"

 

 

 

MultipleFileSelection="Automatic" Localization-Select="Upload" Width="280"  >

 

 

 

 

</telerik:RadAsyncUpload>

 

 

 

</ItemTemplate>

 

 

 

</telerik:RadToolBarButton>

But RadAsyncUpload looks different from its other toolbar buttons as attached file. So what i am trying to do is on click of radtoolbarbutton i will call radasynuploadbutton.click(). But it has no such event like radupload.
 Do we have any other option to solve my problem ?

 

Somnath
Top achievements
Rank 1
 answered on 28 Sep 2012
1 answer
81 views
Hi,
got such a problem.
Have an updatepanel with autopostback combo.
Selection in the combo is affecting grid datasource.
If the combo item is a first one, that says "Select [blabla]" - data in the grid must be cleared.

When I use DataSource = null assignment, the grid is getting hidden, but when I select some item after this, there is exception
"Failed to load viewstate".

So, how to organize the code properly in my case?
Andrey
Telerik team
 answered on 28 Sep 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?