Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
75 views
Hello,

It seems every operation needs to be saved in database as it happens, eg: node delete/add/edit. Is there a way to do these on client side and submit at the end when user is done with all editing. Please suggest how this can be achieved?

Regrds,
Vijay Garg
Nencho
Telerik team
 answered on 04 Jul 2014
3 answers
134 views
I have a need to lock the fileExplorer down to jus the fileView, I do not want the to see the toolbar or the location of the directory that they are pulling from.  Is there a way to do this.  The only thing they should see is the files that belong to them.

<tr>
                   <td><telerik:RadFileExplorer ID="radExplorer" runat="server" Width="400px" Height="200px" EnableOpenFile="true" DisplayUpFolderItem="false"
                       EnableCreateNewFolder="false" AvailableFileListControls="Grid" ExplorerMode="Default">
                           <Configuration ViewPaths="~/PriorSvcUploads" />
                       </telerik:RadFileExplorer>
                   </td>
               </tr>
Vessy
Telerik team
 answered on 04 Jul 2014
3 answers
91 views
I have noticed an oddity in the RadEditor in Chrome.  If the new line mode is set to div, and there is no content in the editor, and that means completely empty even in html view, the first line of content gets wrapped in a paragraph tag instead of a div tag.  Any subsequent lines are correct, it is just the first line that is wrong.  I have tried a bunch of things, and can't seem to get rid of the paragraph tag by any means other then editing the html.  I was able to produce this error in the online demo as well as my own project.

Is there some way to fix this, or is there anything I can do?

Thank you for the help,
Josh
Ianko
Telerik team
 answered on 04 Jul 2014
1 answer
364 views
Hi ,

I have a parent page  RequestsBrowse.aspx . The page containing a gridview as per attached Document . The gridview contains one column with a image button which will call a javascript method and which opens a radwindow named Actioncreate.aspx .The parent page will refresh every 60 seconds . 

Issue : While clicking on Image button , Radwindow(Actioncreate.aspx) opened . But after 60 seconds , the parent page refreshed and the child radwindow automatically closed . I want to make the Parent window stop refreshing and dont want to close the radwindow.

Code :
----------
<a  class="HyperlinkValue" href='Javascript: AddAction("<%# DataBinder.Eval(Container.DataItem, "RequestNumber") %>$<%# DataBinder.Eval(Container.DataItem, "RQSPrimaryId") %>$<%# DataBinder.Eval(Container.DataItem, "openflag") %>$0","<%# DataBinder.Eval(Container.DataItem, "Urgency") %>","<%# DataBinder.Eval(Container.DataItem, "Worker") %>","<%# DataBinder.Eval(Container.DataItem, "WorkOrder") %>");'>
<img border="0" alt='Add Action' title='Add Action' src='images/addaction.gif'>

Refreshing Parent page code :
----------------------------------------
if ((rsi.dispatchesRefresh != 0)&&(hdnStopAutoRefresh.Value=="0"))
                                Response.AddHeader("Refresh", rsi.dispatchesRefresh.ToString());

Please reply back .

Thanks and Regards
Ganga







Princy
Top achievements
Rank 2
 answered on 04 Jul 2014
3 answers
171 views
Hello,

I'm new using Telerik and I'm trying to get the RadEditor content in a RadGrid and is always empty.

I tried many things and doesn't work.

Can anyone help me?Your quote goes here

Thanks!


My code is simple:

User Control:

<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="New_Manager_Meeting_u.ascx.cs" Inherits="FHPACS.Modules.PACS_Manager.Meetings.New_Manager_Meeting_u" %>
<asp:UpdatePanel ID="UpdPanelStudies" runat="server">
   <ContentTemplate>
      <telerik:RadAjaxPanel runat="server" ID="RadAjaxPanel" LoadingPanelID="LoadingPanel1" Width="100%">
         <telerik:RadGrid ID="dgrTeamMembers" runat="server" GridLines="None" AllowFilteringByColumn="false" allo AllowSorting="false"  
                          ShowGroupPanel="false" OnGroupsChanging="dgrTeamMembers_GroupsChanging" OnLoad="dgrTeamMembers_Load">
    <MasterTableView AutoGenerateColumns="false" DataKeyNames="OPID" EnableHeaderContextMenu="false">
<Columns>
<telerik:GridTemplateColumn HeaderText="" UniqueName="Assist" AllowFiltering="false" HeaderStyle-Width="30px">
<ItemTemplate>
<asp:CheckBox ID="cbxAssist" runat="server" />
</ItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridBoundColumn DataField="ID" DefaultInsertValue="" HeaderText="ID" ReadOnly="true" SortExpression="ID" UniqueName="ID"
HeaderStyle-Width="70px">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="FIRST_NAME" DefaultInsertValue="" HeaderText="FIRST NAME" ReadOnly="true"
SortExpression="FIRST_NAME" UniqueName="FIRST_NAME" HeaderStyle-Width="90px">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="LAST_NAME" DefaultInsertValue="" HeaderText="LAST NAME" ReadOnly="true" SortExpression="LAST_NAME" UniqueName="LAST_NAME" HeaderStyle-Width="120px">
</telerik:GridBoundColumn>
<telerik:GridTemplateColumn HeaderText="COMMENTS" UniqueName="COMMENTS" AllowFiltering="false" HeaderStyle-Width="100%"
ItemStyle-Height="120px">
<ItemTemplate>
<telerik:RadEditor ID="edtComment" runat="server" MaxTextLength="700" Width="577px" Height="120px" EditModes="Design"
EnableTextareaMode="True">
<Languages>
<telerik:SpellCheckerLanguage Code="en-US" Title="English" />
</Languages>
<Tools>
<telerik:EditorToolGroup>
<telerik:EditorTool Name="Bold" />
<telerik:EditorTool Name="Italic" />
<telerik:EditorTool Name="Underline" />
<telerik:EditorSeparator />
<telerik:EditorTool Name="JustifyLeft" />
<telerik:EditorTool Name="JustifyCenter" />
<telerik:EditorTool Name="JustifyRight" />
<telerik:EditorTool Name="JustifyFull" />
<telerik:EditorTool Name="JustifyNone" />
<telerik:EditorTool Name="InsertTable" />
<telerik:EditorSeparator />
<telerik:EditorTool Name="Undo" />
<telerik:EditorTool Name="Redo" />
<telerik:EditorTool Name="ForeColor" />
<telerik:EditorSeparator />
<telerik:EditorTool Name="InsertTime" />
<telerik:EditorTool Name="InsertDate" />
<telerik:EditorSeparator />
<telerik:EditorTool Name="FontName" />
<telerik:EditorTool Name="RealFontSize" />
</telerik:EditorToolGroup>
</Tools>
</telerik:RadEditor>
</ItemTemplate>
</telerik:GridTemplateColumn>
</Columns>
</MasterTableView>
<ClientSettings AllowDragToGroup="false" AllowColumnsReorder="true" Selecting-AllowRowSelect="true">
<Resizing AllowColumnResize="true" />
</ClientSettings>
</telerik:RadGrid>
</telerik:RadAjaxPanel>
<br />
<br />
<asp:Button ID="btnSaveMeeting" runat="server" Text="Save Meeting" OnClick="btnSaveMeeting_Click"/>
</ContentTemplate>
</asp:UpdatePanel>


Code Behind (c#):

using System;
using System.IO;
using System.Web;
using System.Linq;
using System.Web.UI;
using Telerik.Web.UI;
using System.Drawing;
using System.Configuration;
using System.Web.UI.WebControls;
using System.Collections.Generic;
using Telerik.Web.UI.GridExcelBuilder; 
 
public partial class New_Meeting_u : System.Web.UI.UserControl
{
    protected void btnSaveMeeting_Click(object sender, EventArgs e)
    {
        string comment = "";
 
        for (int i = 0; i < dgrTeamMembers.Items.Count; i++)
        {
            CheckBox cbxonmeeting = dgrTeamMembers.Items[i].FindControl("cbxAssist") asCheckBox;
 
            if (cbxonmeeting.Checked)
            {
                comment = ((RadEditor)dgrTeamMembers.Items[i].Cells[6].Controls[1]).Content;
            }
        }
    }
}


I tried this:

protected void btnSaveMeeting_Click(object sender, EventArgs e)
{
   string comment = "";
 
   for (int i = 0; i < dgrTeamMembers.Items.Count; i++)
   {
                 
      CheckBox cbxonmeeting = dgrTeamMembers.Items[i].FindControl("cbxAssist") as CheckBox;
 
      if (cbxonmeeting.Checked)
      {
         RadEditor membereditor = dgrTeamMembers.Items[i].FindControl("edtComment") as RadEditor;
 
           comment = membereditor.Content;
        }
   }
}


And this:

protected void btnSaveMeeting_Click(object sender, EventArgs e)
{
   string comment = "";
 
   for (int i = 0; i < dgrTeamMembers.Items.Count; i++)
   {
                 
      CheckBox cbxonmeeting = dgrTeamMembers.Items[i].FindControl("cbxAssist") as CheckBox;
 
      if (cbxonmeeting.Checked)
      {
         Button GetContent = (Button)sender;
         GridEditFormItem item =  (GridEditFormItem)GetContent.NamingContainer;
         RadEditor radEditor = ((RadEditor)item["COMMENTS"].FindControl("edtComment"));
 
         comment = radEditor.Content;
      }
   }
}


And always is empty! 
Shinu
Top achievements
Rank 2
 answered on 04 Jul 2014
1 answer
182 views
Hi there:

I need to export to Excel with no grouping but I would like to repeat a group data for  each row.  For example

My on screen report
Group A:  12345
      Data1    Data2   Data3
      Data4     Data    Data 6

I would like the output in excel as follows
12345  Data1 Data2 Data2
12345  Data4 Data5 Data6
Shinu
Top achievements
Rank 2
 answered on 04 Jul 2014
1 answer
157 views
Hi All,

I  am  using  radgrid modal popup    ,I   click  on edit image  button it is taking to much time to open  modal popup  and also if i click on close image button its taking to much time to close   ,

How to reduce this time ?
Princy
Top achievements
Rank 2
 answered on 04 Jul 2014
3 answers
196 views
Hi, i just wanted to know how to bind a pie chart to dynamic data. I mean if the data is coming from the database, i've two columns i.e. Name and vale, how can i bind it to a radhtml pie chart. 
Asutosh
Top achievements
Rank 1
 answered on 04 Jul 2014
2 answers
242 views
How do you close the notification control server side when the close X is not on the control. I have the AutoCloseDelay =0 so it will stay open until the user clicks my Ok or Cancel button.
Shinu
Top achievements
Rank 2
 answered on 04 Jul 2014
3 answers
82 views

hi guys,

I am trapped in a weird problem. My grid works like charm but destroys the entire table structure right after I introduce a TemplateColumn or a NestedViewTemplate.



Please review attachment.



Any idea how to fix it?



telerik:RadGrid ID="radGrid" DataSourceID="sdcReq"
                        AllowFilteringByColumn="True" AllowSorting="True" AllowMultiRowSelection="true" OnItemCommand="radGrid_ItemCommand"
                        AllowPaging="True" runat="server" Skin="WebBlue" CellSpacing="0" GridLines="None" OnNeedDataSource="radGrid_NeedDataSource">
 
                        <MasterTableView AutoGenerateColumns="false" TableLayout="Auto">
                            <Columns>
                                <telerik:GridHyperLinkColumn DataTextField="reqTitle" DataNavigateUrlFields="reqID" DataNavigateUrlFormatString="~/Acquisition/Requisition_Editor.aspx?reqID={0}" HeaderText="Requisition Title" UniqueName="reqID" AllowSorting="true">
                                </telerik:GridHyperLinkColumn>
                                <telerik:GridBoundColumn FilterControlWidth="120px" DataField="reqAuthor" HeaderText="Author"
                                    AutoPostBackOnFilter="true" CurrentFilterFunction="EqualTo" ItemStyle-Width="75px" DataType="System.String"
                                    ShowFilterIcon="false">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn FilterControlWidth="120px" DataField="deptCode" HeaderText="Department"
                                    AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" ItemStyle-Width="100px"
                                    ShowFilterIcon="false">
                                </telerik:GridBoundColumn>
                                <telerik:GridDateTimeColumn FilterControlWidth="120px" DataField="reqDateTime" HeaderText="Requested On" ShowFilterIcon="false" EnableTimeIndependentFiltering="true" DataFormatString="{0:MMM dd, yyyy}" ItemStyle-Width="100px">
                                </telerik:GridDateTimeColumn>
                                <telerik:GridBoundColumn FilterControlWidth="120px" DataField="statusTitleForLibrarian" HeaderText="Status"
                                    AutoPostBackOnFilter="true" CurrentFilterFunction="EqualTo" ItemStyle-Width="150px"
                                    ShowFilterIcon="false">
                                </telerik:GridBoundColumn>
                                <telerik:GridHyperLinkColumn DataTextField="" DataNavigateUrlFields="reqID" DataNavigateUrlFormatString="~/Acquisition/Requisition_Review.aspx?reqID={0}" HeaderText="" ImageUrl="~/Images/grid-review.png" ItemStyle-Width="21px" Target="_blank">
                                </telerik:GridHyperLinkColumn>
                                <telerik:GridHyperLinkColumn DataTextField="" DataNavigateUrlFields="reqID" DataNavigateUrlFormatString="~/Acquisition/Requisition_Editor.aspx?reqID={0}" HeaderText="" ImageUrl="~/Images/grid-edit.png" ItemStyle-Width="21px">
                                </telerik:GridHyperLinkColumn>
                                <telerik:GridButtonColumn ButtonType="ImageButton" ConfirmDialogType="Classic" ConfirmText="Do you really want to delete this Request?"
                                    ImageUrl="~/Images/grid-delete.png" ItemStyle-Width="21px" CommandName="deleteit" CommandArgument="reqID">
                                </telerik:GridButtonColumn>
                                <telerik:GridTemplateColumn>
                                    <ItemTemplate>
                                        <asp:Button ID="Button1" runat="server" Text="Button" />
                                    </ItemTemplate>
                                </telerik:GridTemplateColumn>
                            </Columns>
                        </MasterTableView>
                         
                        <ClientSettings EnableRowHoverStyle="true"  ReorderColumnsOnClient="true" AllowColumnsReorder="true" ColumnsReorderMethod="Reorder" >
 
                            <Selecting AllowRowSelect="true" EnableDragToSelectRows="true" />
                        </ClientSettings>
                    </telerik:RadGrid>




Bilal
Top achievements
Rank 1
 answered on 03 Jul 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?