Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
114 views
Dear telerik,

I've a Calendar list in sharepoint 2010.Now as i didn't want to use in-built sharepoint calendar control, i decided to go for silverlight RadScheduler control.
Now I've integrated silverlight Radscheduler as custom webpart into sharepoint 2010 successfully. Also I am able to do all CRUD operations with Scheduler and sharepoint 2010 calendar list vice versa. i've used silverlight Client Object model of sharepoint 2010.

Now i want to extend my scheduler's functionality by providing purely Dynamic Edit Appointment Dialog window exactly looks like sharepoint 2010 calendar list NewForm/edit form/display form webparts. I mean, when any column/field removes/adds into sharepoint 2010, it automotically reflect into sharepoint 2010 calendar newform/edit form/display form webparts ,but my scheduler is not able to do that. So i decided to build one dynamic edit appointment dialog window which will get all latest list of fields/columns and generate it's related controls and displays into Edit appointment dialog window.

how will i achieve this ? kindly provide source code or anything, i am stuck with this.

regards
George
Telerik team
 answered on 02 Jun 2011
3 answers
109 views
I want to update a field in my grid/database to indicate that a record or records have been exported. I am using a custom button to handle the export event rather than the button built into the grid. Is there any way to logically pass on information as to which records have been exported?
Jayesh Goyani
Top achievements
Rank 2
 answered on 02 Jun 2011
1 answer
97 views
Hi all

how can I change the text box that appears when I try to add or edit an item in my rad grid ?

I want to add an item with some styles, but text box never allow me to do that

can you help me ?



thank you all :)
Jayesh Goyani
Top achievements
Rank 2
 answered on 02 Jun 2011
1 answer
144 views
Hi,

I am using telerik Nested Grid which consists of Two Detail Tables One is for groups and the other is for items. I have placed my lblTotalCost in a footertemplate of group and I want to calculate the total cost programatically but this works fine when the grid loads but when I update and insert and item in a grid a problem occurs. I am calculating total cost Using my CalculateTotalCost Method.

Any help would be greatly appreciated.


<telerik:RadGrid ID="rgQuotation" runat="server" Width="95%" ShowStatusBar="true" Skin="Vista" Font-Names="Verdana"
          AutoGenerateHierarchy="true" HierarchyLoadMode="ServerBind" AutoGenerateColumns="False"
          PageSize="20" AllowSorting="True" AllowMultiRowSelection="False" AllowPaging="True"
           ShowFooter="True">
          <PagerStyle Mode="NumericPages"></PagerStyle>
          <MasterTableView Width="100%" DataKeyNames="ID" AllowMultiColumnSorting="True" CommandItemDisplay="Top" HierarchyDefaultExpanded="true" HierarchyLoadMode="ServerOnDemand"
              Name="Quotation" CssClass="DetailTable_Default" >
              <Columns>
                  <telerik:GridEditCommandColumn ButtonType="ImageButton" UniqueName="EditCommandColumn"
                      ItemStyle-Width="30px" EditImageUrl="~/Portals/0/Images/Edit.gif">
                  </telerik:GridEditCommandColumn>
                  <telerik:GridBoundColumn SortExpression="ID" HeaderText="ID" HeaderButtonType="TextButton"
                      DataField="ID" UniqueName="ID" ReadOnly="true" Visible="false">
                  </telerik:GridBoundColumn>
                  <telerik:GridBoundColumn SortExpression="TariffName" HeaderText="Quotation Name"
                      HeaderButtonType="TextButton" DataField="TariffName" UniqueName="TariffName"
                      ReadOnly="true">
                  </telerik:GridBoundColumn>
                  <telerik:GridBoundColumn SortExpression="RecordType" HeaderText="Rec Type" HeaderButtonType="TextButton"
                      DataField="RecordType" UniqueName="RecordType" ReadOnly="true" Visible="false">
                  </telerik:GridBoundColumn>
                  <telerik:GridBoundColumn SortExpression="JobID" HeaderText="Job No" HeaderButtonType="TextButton"
                      DataField="JobID" UniqueName="JobID" ReadOnly="true" Visible="false">
                  </telerik:GridBoundColumn>
              </Columns>
              <EditFormSettings EditFormType="Template" InsertCaption="New Quotation">
                  <FormTemplate>
                      <div>
                          <asp:Label ID="lblTariffName" runat="server" Text="Quotation Name" CssClass="fieldsetControlStyle"></asp:Label>
                             
                          <asp:TextBox ID="txtTariffName" runat="server" Text='<%# Eval("TariffName") %>'></asp:TextBox>
                          <asp:LinkButton ID="lnkbtnUpdate" runat="server" CausesValidation="True" CommandName='<%# IIf( DataBinder.Eval(Container, "OwnerTableView.IsItemInserted"), "PerformInsert", "Update") %>'
                              CssClass="lnkButton" ToolTip="Update">
                              <asp:Image ID="imgUpdate" runat="server" ImageUrl="~/Portals/0/Images/Update.gif" /></asp:LinkButton>
                           <asp:LinkButton ID="lnkbtnCancel" runat="server" CausesValidation="False" CommandName="Cancel"
                              CssClass="lnkButton" ToolTip="Cancel">
                              <asp:Image ID="imgCancel" runat="server" ImageUrl="~/Portals/0/Images/Cancel.gif" /></asp:LinkButton>
                      </div>
                  </FormTemplate>
              </EditFormSettings>
              <DetailTables>
                  <telerik:GridTableView DataKeyNames="GroupID" HierarchyLoadMode="ServerBind" Width="100%" HierarchyDefaultExpanded="true"
                      CommandItemDisplay="Top" runat="server" Name="Groups" CssClass="DetailTable_Default" >
                      <Columns>
                          <telerik:GridEditCommandColumn ButtonType="ImageButton" UniqueName="EditCommandColumn"
                              ItemStyle-Width="30px" EditImageUrl="~/Portals/0/Images/Edit.gif">
                          </telerik:GridEditCommandColumn>
                          <telerik:GridBoundColumn SortExpression="GroupID" HeaderText="GroupID" HeaderButtonType="TextButton"
                              DataField="GroupID" UniqueName="GroupID" ReadOnly="true" Visible="false">
                          </telerik:GridBoundColumn>
                          <telerik:GridBoundColumn SortExpression="GroupName" HeaderText="Group Name" HeaderButtonType="TextButton"
                              DataField="GroupName" UniqueName="GroupName">
                              <ItemStyle Font-Bold="true" />
                          </telerik:GridBoundColumn>
                          <telerik:GridBoundColumn SortExpression="TariffID" HeaderText="TariffID" HeaderButtonType="TextButton"
                              DataField="TariffID" UniqueName="TariffID" ReadOnly="true" Visible="false">
                          </telerik:GridBoundColumn>
                          <telerik:GridTemplateColumn>
                              <FooterTemplate>
                                                       
                                  <asp:Label ID="lblTotalCost" runat="server" Text="Total Cost" Font-Bold="true" CssClass="lblTotalCost"></asp:Label>
                              </FooterTemplate>
                          </telerik:GridTemplateColumn>
                      </Columns>
                      <EditFormSettings EditFormType="Template" InsertCaption="New Group">
                          <FormTemplate>
                              <div>
                                  <asp:Label ID="lblGroupName" runat="server" Text="Group Name" CssClass="fieldsetControlStyle"></asp:Label>
                                     
                                  <asp:TextBox ID="txtGroupName" runat="server" Text='<%# Eval("groupname") %>'></asp:TextBox>
                                  <br />
                                  <asp:LinkButton ID="lnkbtnUpdate" runat="server" CausesValidation="True" CommandName='<%# IIf( DataBinder.Eval(Container, "OwnerTableView.IsItemInserted"), "PerformInsert", "Update") %>'
                                      CssClass="lnkButton">
                                      <asp:Image ID="imgUpdate" runat="server" ImageUrl="~/Portals/0/Images/Update.gif" /></asp:LinkButton>
                                   <asp:LinkButton ID="lnkbtnCancel" runat="server" CausesValidation="False" CommandName="Cancel"
                                      CssClass="lnkButton" ToolTip="Cancel">
                                      <asp:Image ID="imgCancel" runat="server" ImageUrl="~/Portals/0/Images/Cancel.gif" /></asp:LinkButton>
                              </div>
                          </FormTemplate>
                      </EditFormSettings>
                      <CommandItemSettings AddNewRecordText="Add New Group" AddNewRecordImageUrl="~/Portals/0/Images/AddRecord.gif"
                          ShowRefreshButton="false" />
                      <DetailTables>
                          <telerik:GridTableView DataKeyNames="ID" Width="100%" Name="Items" CommandItemDisplay="Top" CssClass="DetailTable_Default!" 
                              EditMode="InPlace" runat="server" HierarchyLoadMode="Client">
                              <Columns>
                                  <telerik:GridEditCommandColumn ButtonType="ImageButton" UniqueName="EditCommandColumn"
                                      UpdateImageUrl="~/Portals/0/Images/Update.gif" ItemStyle-Width="40px" EditImageUrl="~/Portals/0/Images/Edit.gif"
                                      CancelImageUrl="~/Portals/0/Images/Cancel.gif">
                                  </telerik:GridEditCommandColumn>
                                  <telerik:GridBoundColumn SortExpression="ID" HeaderText="ID" HeaderButtonType="TextButton"
                                      DataField="ID" UniqueName="ID" ReadOnly="true" Visible="false">
                                  </telerik:GridBoundColumn>
                                  <telerik:GridBoundColumn SortExpression="ItemOrder" HeaderText="ItemOrder" HeaderButtonType="TextButton"
                                      DataField="ItemOrder" UniqueName="ItemOrder" ReadOnly="true" Visible="false">
                                  </telerik:GridBoundColumn>
                                  <%--                            <telerik:GridBoundColumn SortExpression="ItemName" HeaderText="Item Name" DataField="ItemName"
                              UniqueName="ItemName">
                              UniqueName="ItemName">
                          </telerik:GridBoundColumn>--%>
                                  <telerik:GridTemplateColumn HeaderText="Item Name">
                                      <ItemTemplate>
                                          <asp:Label ID="lblItemName" runat="server" Text='<%# Eval("ItemName") %>'></asp:Label>
                                      </ItemTemplate>
                                      <EditItemTemplate>
                                          <asp:TextBox ID="txtItemName" runat="server" Text='<%# Eval("ItemName") %>'></asp:TextBox>
                                          <asp:RequiredFieldValidator ID="rfvtxtItemName" runat="server" ErrorMessage="!" Display="Dynamic"
                                              ControlToValidate="txtItemName"></asp:RequiredFieldValidator>
                                      </EditItemTemplate>
                                      <ItemStyle Width="30%" />
                                  </telerik:GridTemplateColumn>
                                  <telerik:GridTemplateColumn HeaderText="Rate">
                                      <ItemTemplate>
                                          <asp:Label ID="lblUnits" runat="server" Text='<%# Eval("Units") %>'></asp:Label>
                                      </ItemTemplate>
                                      <EditItemTemplate>
                                          <telerik:RadNumericTextBox ID="rntbRate" ShowSpinButtons="true" IncrementSettings-InterceptArrowKeys="true"
                                              IncrementSettings-InterceptMouseWheel="true" runat="server" Type="Number" Width="80px"
                                              DbValue='<%# Eval("Units") %>' NumberFormat-DecimalDigits="2" MinValue="1" IncrementSettings-Step="1"
                                              CssClass="fieldsetControlWidth fieldsetLine" />
                                      </EditItemTemplate>
                                  </telerik:GridTemplateColumn>
                                  <telerik:GridTemplateColumn HeaderText="Quantity">
                                      <ItemTemplate>
                                          <asp:Label ID="lblQuantity" runat="server" Text='<%# Eval("Quantity") %>'></asp:Label>
                                      </ItemTemplate>
                                      <EditItemTemplate>
                                          <telerik:RadNumericTextBox ID="rntbQuantity" ShowSpinButtons="true" IncrementSettings-InterceptArrowKeys="true"
                                              IncrementSettings-InterceptMouseWheel="true" runat="server" Type="Number" Width="80px"
                                              DbValue='<%# Eval("Quantity") %>' NumberFormat-DecimalDigits="0" MinValue="0"
                                              IncrementSettings-Step="1" CssClass="fieldsetControlWidth fieldsetLine">
                                              <ClientEvents OnBlur="Blur" OnFocus="Focus" />
                                          </telerik:RadNumericTextBox>
                                      </EditItemTemplate>
                                  </telerik:GridTemplateColumn>
                                  <telerik:GridTemplateColumn HeaderText="C.P">
                                      <ItemTemplate>
                                          <asp:Label ID="lblCostPrice" runat="server" Text='<%# Format(DataBinder.Eval(Container.DataItem,"CostPrice"),"###,##0.00") %>'></asp:Label>
                                      </ItemTemplate>
                                      <EditItemTemplate>
                                          <telerik:RadNumericTextBox ID="rntbCostPrice" ShowSpinButtons="true" IncrementSettings-InterceptArrowKeys="true"
                                              IncrementSettings-InterceptMouseWheel="true" runat="server" Type="Number" Width="80px"
                                              DbValue='<%# Eval("CostPrice") %>' NumberFormat-DecimalDigits="2" MinValue="0"
                                              IncrementSettings-Step="1" CssClass="fieldsetControlWidth fieldsetLine" />
                                      </EditItemTemplate>
                                  </telerik:GridTemplateColumn>
                                  <telerik:GridTemplateColumn HeaderText="S.P">
                                      <ItemTemplate>
                                          <asp:Label ID="lblSellingPrice" runat="server" Text='<%# Format(DataBinder.Eval(Container.DataItem,"SellingPrice"),"###,##0.00") %>'></asp:Label>
                                      </ItemTemplate>
                                      <EditItemTemplate>
                                          <telerik:RadNumericTextBox ID="rntbSellingPrice" ShowSpinButtons="true" IncrementSettings-InterceptArrowKeys="true"
                                              IncrementSettings-InterceptMouseWheel="true" runat="server" Type="Number" Width="80px"
                                              DbValue='<%# Eval("SellingPrice") %>' NumberFormat-DecimalDigits="2" MinValue="0"
                                              IncrementSettings-Step="1" CssClass="fieldsetControlWidth fieldsetLine" />
                                      </EditItemTemplate>
                                  </telerik:GridTemplateColumn>
                                  <telerik:GridCalculatedColumn HeaderText="C.P Total" DataType="System.Double" FooterText="C.P Total : "
                                      UniqueName="TotalCostPrice" DataFields="CostPrice,Units,Quantity" Expression="{0}/{1}*{2}"
                                      Aggregate="Sum" DataFormatString="{0:###,##0.00}" FooterAggregateFormatString="{0:£###,##0.00}" />
                                  <telerik:GridCalculatedColumn HeaderText="S.P Total " UniqueName="TotalSellingPrice"
                                      DataFields="SellingPrice,Units,Quantity" Expression="{0}/{1}*{2}" DataType="System.Double"
                                      FooterAggregateFormatString="{0:£###,##0.00}" FooterText="S.P Total : " Aggregate="Sum"
                                      DataFormatString="{0:###,##0.00}" />
                              </Columns>
                              <CommandItemSettings AddNewRecordText="Add New Item" AddNewRecordImageUrl="~/Portals/0/Images/AddRecord.gif"
                                  ShowRefreshButton="false" />
                              <%--<EditFormSettings EditFormType="Template" InsertCaption="New Item">
                          <FormTemplate>
                              <div>
                                  <asp:Label ID="lblItemName" runat="server" Text="Item Name" CssClass="fieldsetControlStyle"></asp:Label>
                                     
                                  <asp:TextBox ID="txtItemName" runat="server" Text='<%# Eval("ItemName") %>'></asp:TextBox>
                                  <br />
                                  <asp:Label ID="lblRate" runat="server" Text="Rate" CssClass="fieldsetControlStyle"></asp:Label>
                                               
                                  <asp:TextBox ID="txtRate" runat="server" Text='<%# Eval("Units") %>'></asp:TextBox>
                                  <br />
                                  <asp:Label ID="lblQuantity" runat="server" Text="Quantity"></asp:Label>
                                  <telerik:RadNumericTextBox ID="rntbQuantity" ShowSpinButtons="true" IncrementSettings-InterceptArrowKeys="true"
                                      IncrementSettings-InterceptMouseWheel="true" runat="server" Type="Number" Width="80px"
                                      NumberFormat-DecimalDigits="0" MinValue="0" IncrementSettings-Step="1" CssClass="fieldsetControlWidth fieldsetLine" />
                                  <br />
                                  <asp:Label ID="lblCostPrice" runat="server" Text="Cost Price" CssClass="fieldsetControlStyle"></asp:Label>
                                      
                                  <telerik:RadNumericTextBox ID="rntbCostPrice" MinValue="0" runat="server" MaxLength="6"
                                      DbValue='<%# Bind("CostPrice") %>' Width="160px" Type="Currency" Culture="English (United Kingdom)">
                                  </telerik:RadNumericTextBox>
                                  <br />
                                  <asp:Label ID="lblSellingPrice" runat="server" Text="Selling Price" CssClass="fieldsetControlStyle"></asp:Label>
                                    
                                  <telerik:RadNumericTextBox ID="rntbSellingPrice" MinValue="0" runat="server" MaxLength="6"
                                      DbValue='<%# Bind("SellingPrice") %>' Width="160px" Type="Currency" Culture="English (United Kingdom)">
                                  </telerik:RadNumericTextBox>
                                  <br />
                                  <br />
                                  <asp:LinkButton ID="lnkbtnUpdate" runat="server" CausesValidation="True" CommandName='<%# IIf( DataBinder.Eval(Container, "OwnerTableView.IsItemInserted"), "PerformInsert", "Update") %>'
                                      CssClass="lnkButton" ToolTip="Update">
                                      <asp:Image ID="imgUpdate" runat="server" ImageUrl="~/Portals/0/Images/Update.gif" /></asp:LinkButton>
                                   <asp:LinkButton ID="lnkbtnCancel" runat="server" CausesValidation="False" CommandName="Cancel"
                                      CssClass="lnkButton" ToolTip="Cancel">
                                      <asp:Image ID="imgCancel" runat="server" ImageUrl="~/Portals/0/Images/Cancel.gif" /></asp:LinkButton>
                              </div>
                          </FormTemplate>
                          <%-- <EditColumn ButtonType="ImageButton" InsertText="Insert Item" UpdateText="Update Item"
                              UpdateImageUrl="~/Portals/0/Images/Update.gif" InsertImageUrl="~/Portals/0/Images/Update.gif"
                              UniqueName="EditCommandColumn1" CancelText="Cancel edit">
                          </EditColumn>
                      </EditFormSettings>--%>
                          </telerik:GridTableView>
                      </DetailTables>
                  </telerik:GridTableView>
              </DetailTables>
              <CommandItemSettings AddNewRecordText="Add new Quotation" AddNewRecordImageUrl="~/Portals/0/Images/AddRecord.gif"
                  ShowRefreshButton="false" ShowExportToPdfButton="true" />
          </MasterTableView>
          <ClientSettings AllowKeyboardNavigation="true" EnableRowHoverStyle="true">
              <ClientEvents OnRowContextMenu="RowContextMenu" OnRowDblClick="RowDblClick" />
              <Selecting AllowRowSelect="true" />
              <KeyboardNavigationSettings EnableKeyboardShortcuts="true" AllowSubmitOnEnter="true"
                  AllowActiveRowCycle="true" CollapseDetailTableKey="LeftArrow" ExpandDetailTableKey="RightArrow" />
          </ClientSettings>
      </telerik:RadGrid>

Protected Sub CalculateTotalCost(Optional ByVal e As Telerik.Web.UI.GridItemEventArgs = Nothing)

For Each gdiQuotation As GridDataItem In rgQuotation.MasterTableView.Items
 
           pdTotalCost = 0
 
           For Each gdiGroups As GridDataItem In gdiQuotation.ChildItem.NestedTableViews(0).Items
 
               For Each gdiItems In gdiGroups.ChildItem.NestedTableViews(0).Items
 
                   pdTotalCost = pdTotalCost + Convert.ToDecimal(gdiItems("TotalCostPrice").Text)
 
                   Dim nestedView As GridTableView = gdiQuotation.ChildItem.NestedTableViews(0)
 
                   For Each childfooter As GridFooterItem In nestedView.GetItems(GridItemType.Footer)
 
                       Dim lblTotalCost As Label = DirectCast(childfooter.FindControl("lblTotalCost"), Label)
 
                       lblTotalCost.Text = "Total C.P £" + pdTotalCost.ToString()
 
                   Next
 
               Next
 
           Next
 
       Next

End Sub

Protected Sub rgQuotation_ItemDataBound(ByVal source As Object, ByVal e As Telerik.Web.UI.GridItemEventArgs) Handles rgQuotation.ItemDataBound

        If TypeOf e.Item Is GridDataItem And e.Item.OwnerTableView.Name = "Items" Then          

            CalculateTotalCost()

        ElseIf TypeOf e.Item Is GridFooterItem And e.Item.OwnerTableView.Name = "Groups" Then

           CalculateTotalCost()

        End If


    End Sub
Marin
Telerik team
 answered on 02 Jun 2011
2 answers
97 views
I have a class derived from RadGrid, to which i would like to add a hidden input and possibly other controls.  I'd like to put those at the root level - adding them to the main div (so that these added controls would be siblings of the MasterTableView), but it doesn't seem possible.  I've tried overriding CreateChildControls, OnLoad, PreRender, and other functions, at which point i'd try to do a simple this.controls.add().  But the controls i add in this manner never get rendered out to the page - regardless of which function i'm in.

The only way i've been able to render those controls out is if i add them to a cell in the command item.  But that command row won't always be visible, so that doesn't seem like a very solid solution.

Any ideas?  What's the best way to add child controls to a RadGrid derived class?  Preferably without resorting to turning the whole thing into a composite control.

-RP
Justavian
Top achievements
Rank 1
 answered on 02 Jun 2011
5 answers
161 views
Hi,

I'm using a radgrid in edit mode which has a radcombo box and three textbox controls for each row. Can you point me in the right direction on how to preserve state when i need to do a postback?

Thansk,
Ron
Ron
Top achievements
Rank 1
 answered on 02 Jun 2011
2 answers
142 views
Hi,

I'm using a rad combo box within a rad grid and the first column of the grid is the rad combo box. Can you tell me if it's possible that on selected index changed if I can set the text property for a label or text box control outside of the grid? I'm not looking to set the text property for any controls within the grid but out side the grid. I've tried the following with no results. 
protected void RadComboBox1_OnSelectedIndexChanged(object sender, RadComboBoxSelectedIndexChangedEventArgs e)
   {
       lblSubtotal.Text = "Mytest";
   }

Thanks,
Ron.
Ron
Top achievements
Rank 1
 answered on 02 Jun 2011
5 answers
79 views
I can re rate after a post back just fine, the second I throw it in an update panel no more re rating. 

This does not seem like it should be, as I would think submitting a rating with an ajax request would be common.

What am I missing?
Niko
Telerik team
 answered on 02 Jun 2011
1 answer
311 views
Hi Telerik,

In RAD File explorer grid context menu if i click on download it should download the file.How can we achieve this task.
Is there any demo example with code .please can you share it me..

How to get the physical path from server side.?
I added custom download file button in grid context menu.
This is my code:
Client side:
--------------

 

 

function DownloadFileWindow(oGridMenu, args) {

 

 

 

 

var domElem = args.get_targetElement();

 

 

 

 

var text = $telerik.$(domElem).text();

 

 

 

 

//var isFolder = text.indexOf(".") == -1;

 

 

 

var gridContextMenuItems = oGridMenu.get_allItems();

 

 

 

 

for (var i = 0; i < gridContextMenuItems.length; i++) {

 

 

 

 

var menuItem = gridContextMenuItems[i];

 

 

 

 

if (menuItem.get_value() == "Download_File") {

 

 

OnClientFileOpen(sender, args)

 

__doPostBack(

 

"download");

 

 

}

 

}

 

}


Server side:

radFileExplorer.GridContextMenu.OnClientItemClicked = "DownloadFileWindow";


I am calling my function like this

 

 

string userSelection = Request.Params.Get("__EVENTTARGET");

 

 

 

 

if (userSelection == "download")

 

 

{

 

DownLoadFile();

 

}

private

 

 

void DownLoadFile()

 

 

{

 

 

 

string TargetFile = here i need physical path of the file
//radFileExplorer.TreeView.SelectedNode.GetFullPath("/");//radFileExplorer.Configuration.ViewPaths;

 

System.IO.

 

FileInfo file = new System.IO.FileInfo(TargetFile);

 

 

 

 

//-- if the file exists on the server

 

 

 

//set appropriate headers

 

 

 

if (file.Exists)

 

 

{

 

 

 

FileStream liveStream = new FileStream(TargetFile, FileMode.Open, FileAccess.Read);

 

 

 

 

byte[] buffer = new byte[Convert.ToInt32(liveStream.Length) + 1];

 

 

liveStream.Read(buffer, 0,

 

Convert.ToInt32(liveStream.Length));

 

 

liveStream.Close();

 

Response.ClearHeaders();

 

Response.ClearContent();

 

Response.Clear();

 

Response.ContentType =

 

"application/octet-stream";

 

 

Response.AddHeader(

 

"Content-Length", buffer.Length.ToString());

 

 

Response.AddHeader(

 

"Content-Disposition", "attachment; filename=" + file.Name);

 

 

Response.BinaryWrite(buffer);

 

}

 

}




Dobromir
Telerik team
 answered on 02 Jun 2011
3 answers
72 views
Would it be possible for you guys to implement like SEO tab clicking, so I can navigate the tabs with the querystring as PART of the control (like the RadGrid does)?

I know how to do it with code, so I don't need a snippet, I was just hoping to have it as a feature of the control.
Dimitar Terziev
Telerik team
 answered on 02 Jun 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?