Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
174 views

Hi,

i want to export radgrid into msword.
please let me know how to achieve this functionality.

thanks in advance.

bharat kumar
Top achievements
Rank 1
 answered on 15 Oct 2010
5 answers
177 views
Hi Support,

We are using SharePoint 2007 SP2 and RadEditor 5.8 with .NET 3.5 AJAX configured.

Imagine this site structure: our-company.com/knowledge/wiki
The User has read permissions on /knowledge and contribute on /knowledge/wiki. On both sites are publishing features activated.
We get an access denied when trying to upload a document to the wiki site via the document manager.
When granting the user contribute to /knowledge too it works fine.

Note: when uploading with the Image Manager to the same site and document library, it works even with the read permissions on /knowledge.

Regards
Ulf

Stanimir
Telerik team
 answered on 15 Oct 2010
1 answer
121 views
I believe my problem is with the firing of events for the grid, but I can't figure out how to make it work the way I need to.

I have a grid (grdDocumentList) with a download link for each row. Clicking on this link fires the ItemCommand event, where I build the path to the selection, stream the object to the user, then log this action in my database. I then need to fire a refresh on a different grid (grdMeetingList). I can't get the refresh to fire since the postback already occurred BEFORE the user got the file.

How do I get this first grid to refresh?

Example1.png shows my form and how it is supposed to work. The left grid shows all meetings, and the binding will display a yellow page icon if the user has documents remaining to download. They click View, the right grid rebinds, and as they click the Download link it should refresh the first grid. If they've downloaded all of the documents (whether it fails or not), the yellow page icon disappears. It's not firing due to the postback firing first.

Here's my code for the second grid:

Protected Sub grdDocumentList_ItemCommand(ByVal source As Object, ByVal e As Telerik.Web.UI.GridCommandEventArgs) Handles grdDocumentList.ItemCommand
 
    If e.CommandName = "Download" Then
        Dim item As GridDataItem = DirectCast(e.Item, GridDataItem)
        Dim FileName As String = item("FileDownload").Text
        Dim MeetingTopicSid As Integer = item("Meeting_TOPIC_SID").Text
 
        Dim TargetFile As String = FileName
        Dim file As System.IO.FileInfo = New System.IO.FileInfo(TargetFile) '-- if the file exists on the server
        If file.Exists Then 'set appropriate headers
            Dim liveStream As FileStream = New FileStream(TargetFile, FileMode.Open, FileAccess.Read)
            Dim buffer(CType(liveStream.Length, Integer)) As Byte
            liveStream.Read(buffer, 0, CType(liveStream.Length, Integer))
            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)
 
            'Log User Download
            SqlHelper.ExecuteNonQuery(ConfigurationManager.ConnectionStrings("ASPNETDBConnectionString").ConnectionString, "usp_InsertMEETING_TOPIC_DOWNLOAD_LOG", Session.Item("gbUserSid"), MeetingTopicSid, DateTime.Now)
 
            'Rebind Grid
            Me.grdMeetingList.DataBind()
 
        End If
    End If
 
End Sub

Iana Tsolova
Telerik team
 answered on 15 Oct 2010
6 answers
165 views
Hi

I have a raddatepicker for a hotel booking form
however, i want the calendar to only show from today onwards (upto 1 year)

How would i acheive this?
thanks
Dimo
Telerik team
 answered on 15 Oct 2010
1 answer
65 views
Hi,

 I am getting this inside the RadNumaricTextbox control
FalseColor[Empty]Color[Empty]

Please help me
Dimo
Telerik team
 answered on 15 Oct 2010
1 answer
83 views
Hi,

I want Masks on RadNumaricTextbox,Is it Possible

Dimo
Telerik team
 answered on 15 Oct 2010
1 answer
333 views
Hi,

I started off by requiring the edit panel on the RadGrid to be disabled on enter key press.  I have managed to achieve this, the panel doesn't show anymore but the problem is that I now get an Ajax postback instead (I wasn't getting this on enter keypress before).

In the OnKeyPress for my grid I call the following javascript (see below).  This does stop the edit panel appearing

Telerik version: 2009.2.826.35 VS 2008 SP1

I have a RadGrid as follows and also a RadAjaxManager so that I get a LoadingPanel for the Grid:

                    <telerik:RadGrid ClientSettings-AllowColumnsReorder="true" ID="GridRecordList"
                        runat="server" EnableLinqExpressions="true" EnableViewState="false"
                        AllowFilteringByColumn="true" 
                        AllowSorting="true"
                        AllowAutomaticDeletes="false"
                        AllowAutomaticInserts="false"
                        AllowAutomaticUpdates="false"
                        AllowMultiRowEdit="false"
                        AllowPaging="true"
                        PagerStyle-Position="Bottom"
                        AutoGenerateEditColumn="false"
                        AutoGenerateDeleteColumn="false"
                        MasterTableView-AllowAutomaticDeletes="false"
                        MasterTableView-AllowAutomaticInserts="false"
                        MasterTableView-AllowAutomaticUpdates="false"
                        AllowMultiRowSelection="false"
                        GridLines="Horizontal" 
                        Skin="Outlook" PageSize="20" BorderStyle="None" 
                        onitemdatabound="GridRecordList_ItemDataBound">
                        <GroupingSettings CaseSensitive="false" />
                        <headercontextmenu>
                            <collapseanimation duration="200" type="OutQuint" />
                        </headercontextmenu>
                        <mastertableview AutoGenerateColumns="false">
                            <Columns>
                                <telerik:GridBoundColumn DataField="SourceRecordID" HeaderText="SourceRecordID" UniqueName="SourceRecordID" Display="false">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="Application.ApplicationID" HeaderText="ApplicationID" UniqueName="ApplicationID" Display="false">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="DocumentCount" HeaderText="DocCount" EmptyDataText="Unknown" UniqueName="DocumentCount" Display="false">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="Specialty.Name" HeaderText="Specialty" EmptyDataText="Unknown" SortExpression="Specialty.Name" UniqueName="Specialty">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="Staff.ShortName" HeaderText="Staff Name" EmptyDataText="Unknown" SortExpression="Staff.ShortName" UniqueName="ShortName">
                                </telerik:GridBoundColumn>
                                <telerik:GridDateTimeColumn DataField="RecordDate" HeaderText="Record Date" EmptyDataText="Unknown" SortExpression="RecordDate" UniqueName="RecordDate" DataFormatString="{0:dd/MM/yyyy}" DataType="System.DateTime">
                                </telerik:GridDateTimeColumn>
                                <telerik:GridBoundColumn DataField="RecordType.DisplayName" HeaderText="Record Type" EmptyDataText="Unknown" SortExpression="RecordType.DisplayName" UniqueName="RecordType">
                                </telerik:GridBoundColumn>                                        
                            </Columns>
                            <SortExpressions>
                                <telerik:GridSortExpression FieldName="RecordDate" SortOrder="Descending" />
                            </SortExpressions>
                            <AlternatingItemStyle BackColor="#FFF4CE" Wrap="false" BorderColor="#FFECA5" BorderStyle="Solid" BorderWidth="2px" />
                            <ItemStyle Wrap="false" />
                            <rowindicatorcolumn>
                                <HeaderStyle Width="20px" BackColor="Purple" />
                            </rowindicatorcolumn>
                            <expandcollapsecolumn>
                                <HeaderStyle Width="20px" BackColor="Purple" />
                            </expandcollapsecolumn>
                        </mastertableview>
                        <filtermenu>
                            <collapseanimation duration="200" type="OutQuint" />
                        </filtermenu>
                        <ClientSettings AllowKeyboardNavigation="true"
                            AllowColumnsReorder="false" 
                            EnablePostBackOnRowClick="false"
                            Resizing-AllowColumnResize="true"
                            Scrolling-AllowScroll="true" 
                            Selecting-AllowRowSelect="true"
                            KeyboardNavigationSettings-EnableKeyboardShortcuts="true">
                                <ClientEvents OnGridCreated="GridCreated" />
                                <ClientEvents OnRowClick="GridRecordList_OnRowClick" />
                                <ClientEvents OnRowContextMenu="RowContextMenu" />
                                <ClientEvents OnKeyPress="GridRecordList_OnKeyPress" />
                        </ClientSettings>
                    </telerik:RadGrid>



                            function GridRecordList_OnKeyPress(sender, eventArgs) {
                                var e = window.event;
                                if (eventArgs.get_keyCode() == 13) {
                                    eventArgs.returnValue = false;
                                    eventArgs.set_cancel(true);
                                    eventArgs.cancelBubble = true;
                                    eventArgs.set_cancelBubble = true;
                                    e.cancelBubble = true;
                                    sender.blur();
                                    return false;
                                }
                            }
Tsvetina
Telerik team
 answered on 15 Oct 2010
1 answer
269 views
Hey everyone,

I want to create a radgrid which inserts records from insert command Add new records(Automatic insert),but i want this using datatable as dataSource.And once i have added records then i want my grid to be empty on a button click outside grid,and records get saved to database table.So,grid is again empty for inserting new records.When in insert mode,i have gridDropDownColumn,and 3 template columns with 2 labels and a numericTextBox.Is there any demo or example describing this scenario?...

Thanks
Amit
Shinu
Top achievements
Rank 2
 answered on 15 Oct 2010
1 answer
90 views
Just wondering if there is an easy way to add column borders for the grid?  I am using the default skin. (I don't want to use another skin, just add css styles for the existing skin or modify it.)  Also,  How exactly would I modify the default skin?  I already looked at all the help on this, and it said to modify the skin, but since it is embedded, where exactly do I download it from?  I don't understand how I can just modify it if it is in the dll. 

Thank you.
Shinu
Top achievements
Rank 2
 answered on 15 Oct 2010
4 answers
253 views
Hello Friends,

I have one page(Home.aspx) it has one tab strip control and each tab have 1 user controls inside it .
What I want is need one RadAjaxPanel and Loading panel inside Main page .And when doing any operation(From any User Control) at that I wanted to display Loading panel icon.

My Code Is as Follows :

<telerik:RadAjaxPanel ID="radAjaxPanel1" runat="server" EnableAJAX="true" LoadingPanelID="RadAjaxLoadingPanel1">
  <telerik:RadTabStrip ID="r1" runat="server" Width="100%" SelectedIndex="0"
                    MultiPageID="RadMultiPage1">
 <Tabs>
                        <telerik:RadTab Text="Tab1" Value="Tab1" runat="server">
                        </telerik:RadTab>
                        <telerik:RadTab Text="Tab2" Value="Tab12" runat="server" >
                        </telerik:RadTab>
                        <telerik:RadTab Text="Tab3" Value="Tab3">
                        </telerik:RadTab>
                    </Tabs>
                </telerik:RadTabStrip>
 <telerik:RadMultiPage runat="server" ID="RadMultiPage1" SelectedIndex="0">
                    <telerik:RadPageView ID="RadPageView1" runat="server">
                            <uc:c1 ID="uc1" runat="server" />
                    </telerik:RadPageView>
                    <telerik:RadPageView ID="RadPageView2" runat="server">
                            <uc:c2 ID="uc2" runat="server" />
                    </telerik:RadPageView>
                    <telerik:RadPageView ID="RadPageView3" runat="server">
                            <uc:c3 ID="uc3" runat="server" />
                    </telerik:RadPageView>
            </telerik:RadMultiPage>
 </telerik:RadAjaxPanel>
<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Height="75px"  Width="75px" Transparency="25">
    <img alt="Loading..." src='<%= RadAjaxLoadingPanel.GetWebResourceUrl(Page,Telerik.Web.UI.Skins.Default.Ajax.loading.gif") %>'
                style="border: 0;" />
</telerik:RadAjaxLoadingPanel>
<telerik:RadAjaxManager ID="ajaxmanagerMain" runat="server" DefaultLoadingPanelID="RadAjaxLoadingPanel1">
</telerik:RadAjaxManager>

It;s not showing Loading Icon Right now ...

So If anybody know what to do then please help me .

-Thanks 
Albert
Top achievements
Rank 1
 answered on 15 Oct 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?