Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
82 views

Hello All,

Attached is radgrid where grouping has been implemented and on grid’s ItemDataBound event, I’m generating 2 buttons “Approve All” and “Reject All”.

I’m looking a way where I can read all “Transaction_Key” (1023, 1024, 1025) in a string and persist the same in session or view state. Is this possible…please suggest???

 

Pavlina
Telerik team
 answered on 27 Jan 2011
0 answers
86 views
hi telerik

my page have two radtabstrip and radmultipageview
in first pageview have form
in second pageview have grid
and the page ajaxify with radajaxmanager
ajax good work
but when pageview 2 is load show gird
then if press f5 or refresh page
page is goto to pageview 1 and form is clear
but i want when press f5 page show pageview2 and not clear data
please help me
Reza
Top achievements
Rank 1
 asked on 27 Jan 2011
3 answers
209 views
hi, we are planning to use RadGrid for building data input screens. We only need to have the user to input/edit multiple
fields in one aspx page. How can we configure the RadGrid control to show all the input fields for only 1 row and when the user clicks the save
the stored procedures will be called to do CRUD. We don't need to enter/edit multiple rows

Thanks
Princy
Top achievements
Rank 2
 answered on 27 Jan 2011
3 answers
60 views
Hi!

My scenario is that I have grid with multilevel grouping with aggregates on group footers enabled. My desired behaviour is that every group shows his footer only when expanded so I've set:
myGrid.GroupSettings.RetainGroupFootersVisibility = false;

Problem is that all footers are gone if any of group is collapsed no matter how deep it was in grouping hierarchy. Is that expected behaviour?
(Changing setting above to "true" is trade-off solution because it causes footer to show when group is collapsed)

Another (minor) issue is that for provided skins group footers have same look at different level (same or no indentation), so it may be difficult for the user to match them to the particular group. Do you plan to address that issue?

Regards,
Maciek
Pavlina
Telerik team
 answered on 27 Jan 2011
2 answers
100 views
Hello,
in my masterpage i have placed a Radsplitter with two RadPanes and a RadSplitBar between them. The contentpage is placed in the right RadPane. In the contentpages are RadControls placed. I have a contentpage named "Adressen.aspx". There are a Radsplitter with two RadPanes and a RadSplitBar between them. If the contentpage is loaded the Radsplitter is fixed to 400px and the two RadPanes are not resizeable with the RadSplitBar.
If the contentpage is empty or just filled standard asp controls, the Radsplitter is resizeable.
How can i fix this?

Contentpage:
<%@ Page Title="" Language="VB" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Adressen.aspx.vb" Inherits="Adressen" %>
 
<asp:Content ID="Content" ContentPlaceHolderID="MainContent" Runat="Server">
     
    <telerik:RadAjaxManagerProxy ID="RadAjaxManagerProxy1" runat="server">
    </telerik:RadAjaxManagerProxy>
 <telerik:RadSplitter ID="RadSplitter_Adressen" runat="server" Orientation="Horizontal" Width="100%" Height="100%">   
 <telerik:RadPane ID="RadPane_Adressen" runat="server">
  <telerik:RadGrid ID="RadGrid_Adressen" runat="server"
                GridLines="None" AllowAutomaticDeletes="True" AllowAutomaticInserts="True"
                AllowAutomaticUpdates="True" OnDeleteCommand="RadGrid_Adressen_DeleteCommand"
                ShowStatusBar="True"                
                OnItemCommand="RadGrid_ItemCommand"
                OnInsertCommand="RadGrid_Adressen_InsertCommand"
                DataSourceID="DF_Verbindungsobject" AllowFilteringByColumn="True"
                Height="100%" Width="100%">
               <MasterTableView CommandItemDisplay="Top" ClientDataKeyNames="OID"
                      EditMode="EditForms" DataSourceID="DF_Verbindungsobject">
                <CommandItemTemplate
                    <asp:LinkButton ID="LinkButton" runat="server" OnClick="Insert_Click"><img style="border:0px" alt=""     src="Add.png" width="20px"/> Adresse anlegen</asp:LinkButton>            
                                 <!-- CommandName="InitInsert" -->       
                </CommandItemTemplate>
                <CommandItemSettings ExportToPdfText="Export to Pdf"></CommandItemSettings>
               <EditFormSettings>
                <EditColumn UniqueName="EditCommandColumn2">
                </EditColumn>
               </EditFormSettings>
              </MasterTableView>
           <ClientSettings>
            <Selecting AllowRowSelect="True" />
            <ClientEvents OnRowSelected="RowSelected_Adressen"/>
            <Scrolling AllowScroll="True" UseStaticHeaders="True" />
           </ClientSettings>
  </telerik:RadGrid>
      
 </telerik:RadPane>
      
    <telerik:RadSplitBar ID="RadSplitBar" runat="server">
    </telerik:RadSplitBar>
 
<telerik:RadPane ID="RadPane_AdressDialog" runat="server">
    <asp:Panel ID="Panel_Adressen" runat="server">
            <table border="0" style="margin-top: 20px; width: 100%;">
                <tr>
                    <td>
                        OID:
                    </td>
                    <td>
                        <asp:Label ID="Label_OID" Style="float: left; font-weight: bold;" runat="server" />
                        <asp:Button ID="Button_Loeschen" Style="float: right; color: black; font-weight: bold;"
                            Text="Löschen" runat="server"/>                          
                        <asp:Button ID="Button_Speichern" Style="float: right; margin-right: 10px; color: black;
                            font-weight: bold;" Text="Speichern"
                            runat="server"/>
                        <asp:Button ID="Button_Einfuegen" Style="float: right; margin-right: 10px; color: black;
                            font-weight: bold;" Text="Einfügen"
                            runat="server" Visible="False"/>
                    </td>
                </tr>
                <tr>
                    <td>
                        Klasse:
                    </td>
                    <td>
                        <telerik:RadTextBox ID="RadTextBox_Klasse" runat="server" ReadOnly="True" >
                            <ReadOnlyStyle BackColor="#CCCCCC" />
                        </telerik:RadTextBox>                                    
                        <telerik:RadComboBox ID="RadComboBox_Klasse" runat="server" Visible="False" Width="265px">
                            <Items>
                                <telerik:RadComboBoxItem Text="" Value="" />
                                <telerik:RadComboBoxItem Text="Kunde" Value="Kunde" />
                                <telerik:RadComboBoxItem Text="Lieferant" Value="Lieferant" />
                                <telerik:RadComboBoxItem Text="Interessent" Value="Interessent" />
                                <telerik:RadComboBoxItem Text="Hersteller" Value="Hersteller" />
                            </Items>
                        </telerik:RadComboBox>
                         
                         
                    </td
                    <td>Nummer:</td> <td>
                        <telerik:RadTextBox ID="RadTextBox_Nummer" runat="server" ReadOnly="True" Width="265px">
                            <ReadOnlyStyle BackColor="#CCCCCC" />
                        </telerik:RadTextBox>
                    </td>             
                </tr>
                <tr>
                    <td>
                         
                        Anrede:</td>
                    <td>
                        <telerik:RadTextBox ID="RadTextBox_Anrede" runat="server" Width="265px"/>
                    </td>
                    <td>Name2:
                    </td> <td>
                        <telerik:RadTextBox ID="RadTextBox_Name2" runat="server" Width="265px"/>
                    </td>
                </tr>
                <tr>
                    <td>
                        Name1:
                    </td>
                    <td>
                        <telerik:RadTextBox ID="RadTextBox_Name1" runat="server" Width="265px"/>
                    </td>
                   <td>Name3:
                    </td> <td>
                        <telerik:RadTextBox ID="RadTextBox_Name3" runat="server" Width="265px"/>
                    </td>
                </tr>
                <tr>
                    <td>
                        Strasse:
                    </td>
                    <td>
                        <telerik:RadTextBox ID="RadTextBox_Strasse" runat="server" Width="265px"/>
                    </td>
                    <td>Telefon:
                    </td> <td>
                        <telerik:RadTextBox ID="RadTextBox_Telefon" runat="server" Width="265px"/>
                    </td>
                </tr>
                <tr>
                    <td>
                        Land-PLZ-Ort:</td>
                    <td>
                     <table>
                      <tr>
                       <td><telerik:RadTextBox ID="RadTextBox_Laenderkennzeichen" runat="server" Width="32px" /></td>
                       <td>
                        <telerik:RadTextBox ID="RadTextBox_PLZ" runat="server" Width="60px"/>
                          </td>
                       <td>
                           <telerik:RadTextBox ID="RadTextBox_Ort" runat="server" width="155px"/>
                          </td>
                      </tr>
                     </table>
                    </td>
                    <td>Mobiltelefon:</td>
                    <td>
                        <telerik:RadTextBox ID="RadTextBox_Mobiltelefon" runat="server" Width="265px"/>
                    </td>
                </tr>
                <tr>
                    <td>
                        Staat:</td>
                    <td>
                        <telerik:RadTextBox ID="RadTextBox_Staat" runat="server" Width="265px"/>
                    </td>
                    <td>Fax:
                    </td> <td>
                        <telerik:RadTextBox ID="RadTextBox_Fax" runat="server" Width="265px"/>
                    </td>
                </tr>
                <tr>
                    <td>
                        Branche</td>
                    <td>
                        <telerik:RadTextBox ID="RadTextBox_Branche" runat="server" Width="265px"/>
                    </td>
                    <td>EMail:
                    </td> <td>
                        <telerik:RadTextBox ID="RadTextBox_EMail" runat="server" Width="265px"/>
                    </td>
                </tr>
                <tr>
                    <td>
                        Ersteller:</td>
                    <td>                       
                        <telerik:RadTextBox ID="RadTextBox_Ersteller" runat="server" Width="265px"/>                       
                    </td>
                    <td>Internet:
                    </td> <td>
                        <telerik:RadTextBox ID="RadTextBox_Internet" runat="server" Width="265px"/>
                    </td>
                </tr>
                <tr>
                    <td>
                         </td>
                    <td>
                         </td>
                    <td></td> <td></td>
                </tr>
                <tr>
                    <td style="vertical-align: top;">
                        Info:</td>
                    <td colspan="3">
                        <telerik:RadEditor ID="RadEditor_Info" Width="100%" runat="server"
                            Height="250px" Language="de-DE">
                            <Tools>
                                <telerik:EditorToolGroup>
                                    <telerik:EditorTool Name="Italic" />
                                    <telerik:EditorTool Name="Bold" />
                                    <telerik:EditorTool Name="Underline" />
                                    <telerik:EditorTool Name="StrikeThrough" />
                                    <telerik:EditorTool Name="JustifyLeft" />
                                    <telerik:EditorTool Name="JustifyCenter" />
                                    <telerik:EditorTool Name="JustifyRight" />
                                    <telerik:EditorTool Name="JustifyFull" />
                                </telerik:EditorToolGroup>
                            </Tools>
                        </telerik:RadEditor>
                    </td>
                </tr>
            </table
        </asp:Panel>    
 </telerik:RadPane>   
</telerik:RadSplitter>
<asp:ObjectDataSource ID="DF_Verbindungsobject" runat="server"
         DeleteMethod="delete" InsertMethod="insert" SelectMethod="abfrage"
         TypeName="DF_DataBinding" UpdateMethod="update">
         ....
     </asp:ObjectDataSource>
 
 <input type="hidden" id="hidden_field_index" runat="server" value="" name="hidden_index"/>
</asp:Content>




Masterpage: 
<%@ Master Language="VB" CodeFile="MasterPage.master.vb" Inherits="MasterPage" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<head id="Head1" runat="server">
    <title></title>
    <telerik:RadStyleSheetManager id="RadStyleSheetManager1" runat="server" />
      <link rel="stylesheet" type="text/css" href="CSS/screen.css" charset="utf-8" />
</head>
<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager ID="RadScriptManager" runat="server">
        <Scripts>
            <%--Needed for JavaScript IntelliSense in VS2010--%>
            <%--For VS2008 replace RadScriptManager with ScriptManager--%>
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" />
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js" />
        </Scripts>
    </telerik:RadScriptManager>
 
 
    <telerik:RadAjaxManager ID="RadAjaxManager" runat="server">
    </telerik:RadAjaxManager>
  
    <telerik:RadSkinManager ID="RadSkinManager" Runat="server">
    </telerik:RadSkinManager>
     
    <telerik:RadSplitter ID="RadSplitter_Gesammt" Runat="server" Height="100%"
            Width="100%" ResizeMode="AdjacentPane">
        <telerik:RadPane ID="RadPane_Navi" Runat="server" Width="250px">
          <telerik:RadPanelBar runat="server" ID="RadPanelBar_Navi" ExpandMode="SingleExpandedItem">
                <Items>
                    <telerik:RadPanelItem Text="Neu" value="Neu" runat="server">
                     <Items>
                      <telerik:RadPanelItem Text="E-Mail" Value="EMail" runat="server"> </telerik:RadPanelItem>
                      <telerik:RadPanelItem Text="Mitteilung" Value="Mitteilung" runat="server"> </telerik:RadPanelItem>
                     </Items>
                    </telerik:RadPanelItem>
                    <telerik:RadPanelItem Expanded="False" Text="Adressen" runat="server" Selected="true" NavigateUrl="Adressen.aspx">
                    </telerik:RadPanelItem>
                                    
                    <telerik:RadPanelItem Expanded="False" Text="Dokumente" runat="server" Selected="true" NavigateUrl="Dokumente.aspx">
                     <Items>
                         <telerik:RadPanelItem Value="AccountDokumentInformation" runat="server">
                             <ItemTemplate>
                                <telerik:RadTreeView ID="RadTreeView_Dokumente" Runat="server" AssociatedControlID="RadTreeview_Dokumente" OnNodeClick="RadTreeView_NodeClick" >
                                </telerik:RadTreeView>                                    
                             </ItemTemplate>
                         </telerik:RadPanelItem>
                     </Items>
                    </telerik:RadPanelItem>
                    <telerik:RadPanelItem Text="Termine" value="Termine" runat="server" NavigateUrl="Termine.aspx">
                    </telerik:RadPanelItem
                      
                   </Items>
                  </telerik:RadPanelBar>  
        </telerik:RadPane>
            <telerik:RadSplitBar ID="RadSplitBar_Content" Runat="server">
            </telerik:RadSplitBar>
        <telerik:RadPane ID="RadPane_Content" Runat="server" Height="99%"
            Width="99%">
             
            <div id="content">
            <asp:ContentPlaceHolder ID="MainContent" runat="server"></asp:ContentPlaceHolder>
            </div>           
             
        </telerik:RadPane>
    </telerik:RadSplitter>
    
    </form>
</body>
</html>
Daniel
Top achievements
Rank 1
 answered on 27 Jan 2011
8 answers
200 views
Hello again!

I'm trying to visualize a very intensive double for-loop piece of code. The story is that there are a number of job I need to process. Say 200 jobs. For each job, i need to go through a list of workers I have, say 500. There are criteria (address, max distance from job, job type) that shortlist the workers to some extent before the inner for-each worker loop starts.

So I have a total progress (Total number of jobs) and a secondary progress for each primary unit. I need to get the RadProgressManager + RadProgressArea working here. I used a tutorail and some forum help to get the basics up but the behaviour is not what I accepted. The only thing that is visualizing is the time elapsed thing and the rest of the control just remains still. no progress bar movement at all.

Currently, the function is taking around 7 minutes to solve 250 jobs. The function has room for improvement, no doubt, but for now, I just need my user(s) to know something is happening and how far along is it.

Thanks.

Code:
protected void Page_Load(object sender, EventArgs e) {
  if (Page.IsPostBack == false) {
 
    if (HasJobsToBook()) {
      FinalSolution.Rows.Clear();
      RetrieveJobsToBookBatchIDs();
      long iCount = RetrieveActualJobsAgainstBatchIDs();
      PreSortTheJobs(iCount);
 
      LabelError.Visible = true;
      LabelError.Text = String.Format("I have {0} job(s) to process!", iCount);
 
      RadProgressAreaGenie.ProgressIndicators &= ~ProgressIndicators.SelectedFilesCount;
    }
 
  }
 
  RadProgressAreaGenie.Localization.Uploaded = "Total Progress";
  RadProgressAreaGenie.Localization.UploadedFiles = "Progress";
  RadProgressAreaGenie.Localization.CurrentFileName = "Job Genie in action!";
}
 
private void MatchALocum() {
  LabelError.Visible = false;
  LabelError.Text = string.Empty;
 
  if (CountOfJobsToBook() < 1) {
    LabelError.Visible = true;
    LabelError.Text = "No job(s) to process.";
    Trace.Warn("Job Genie", "No job(s) to process.");
    return;
  }
 
  RadProgressContext progress = RadProgressContext.Current;
  progress.Speed = "N/A";
 
  try {
 
    #region Declerations
 
    int iCounterControl = 0;
    int iCounterControlInner = 0;
 
    foreach (DataRow Row in TableJobsToBook.Rows) {
      iCounterControl = iCounterControl + 1;
 
      progress.PrimaryTotal = TableJobsToBook.Rows.Count;
      progress.PrimaryValue = iCounterControl;
      progress.PrimaryPercent = (iCounterControl / TableJobsToBook.Rows.Count) * 100;
 
      if (!Response.IsClientConnected) {
        //Cancel button was clicked or the browser was closed, so stop processing
        break;
      }
 
      #region Key Extracted Job Properties
 
      #region Availability
 
      #region Distance Preperation
 
      iCounterControlInner = 0;
 
      foreach (long ListOfCandidateLocumID in ListOfCandidateLocumIDs) {
        iCounterControlInner = iCounterControlInner + 1;
 
        progress.SecondaryTotal = ListOfCandidateLocumIDs.Count();
        progress.SecondaryValue = iCounterControlInner;
        progress.SecondaryPercent = (iCounterControlInner / ListOfCandidateLocumIDs.Count()) * 100;
 
        progress.CurrentOperationText = "Step " + iCounterControlInner.ToString();
 
        //Massive + Intensive code here...
 
        //Stall the current thread for 0.1 seconds
        System.Threading.Thread.Sleep(100);
         
      }//For Loop Candidates
 
 
      progress.TimeEstimated = (TableJobsToBook.Rows.Count - iCounterControl) * 100;
       
      //Stall the current thread for 0.1 seconds
      System.Threading.Thread.Sleep(100);
 
    }//For Loop Jobs
 
  } catch (Exception ex) {
    Trace.Warn("Job Genie", "Exception:" + ex.Message);
    throw new Exception("Error while running Job Genie.", ex);
  }
}

HTML:
<telerik:RadProgressManager ID="RadProgressManagerGenie" runat="server" Skin="Office2007" />
<telerik:RadProgressArea ID="RadProgressAreaGenie" runat="server" Skin="Office2007" Culture="(Default)"
  ProgressIndicators="TotalProgressBar, TotalProgress, TotalProgressPercent, FilesCountBar, FilesCount, FilesCountPercent, SelectedFilesCount, CurrentFileName, TimeElapsed, TimeEstimated"
  Width="100%">
  <Localization Uploaded="Uploaded" />
</telerik:RadProgressArea>

Thanks.
Genady Sergeev
Telerik team
 answered on 27 Jan 2011
1 answer
161 views
Hello,
I am having an issue with a RadGrid that allows users to insert and edit records with a modal window, e.g. EditMode - Modal, where the loading panel on the RadGrid covers the modal window, e.g. has what seems to be a higher z-index.  See the attachment to this post for an example of the issue in the form of a screenshot.

The RadGrid is ajaxified any associated with a RadAjaxManager with a loading panel specified.
<telerik:AjaxSetting AjaxControlID="radgrid1">
    <UpdatedControls>
        <telerik:AjaxUpdatedControl ControlID="radgrid1" LoadingPanelID="LoadingPanel1" />
    </UpdatedControls>
</telerik:AjaxSetting>

When the user inserts or edits a record on the RadGrid the modal pop-up displays along with the loading panel, however for the period of time that the loading panel displays it appears over the modal.  I have tried changing the z-index of the modal to 91000, but even that does not work (I am not sure if the number is not high enough.

How can I ensure that the modal window appears above the loading panel (z-index wise)?  What is the z-index of the loading panel by default?
Maria Ilieva
Telerik team
 answered on 27 Jan 2011
3 answers
60 views

Hi,

Telerik features in our application have not been upgraded since the launch of the system (2003), and our users have cited that these functions are not user friendly and lack functionality in comparison to features available in Word.
  - RadEditor Version = 5.6.4.0
  - RadSpell.dll Version = 2.6.1.0

As we upgrade our applicaction to .net Framework 3.5, I am performing feasibility study of updating to see if the following items could be resolved ot added.

Our Issues:

  1.     Bullet function is not working properly in that “round” bullets are displayed but “dashes” print out. 
  2.     Users also found that Spell-check picked up too broad of a range of possible hits, and although it appeared that we once had the ability to customize the spell-check dictionary, since the .net upgrade this ability appears to be no longer accessible.
  3.     Users have also expressed an interest in being able to access a highlight feature. Is it possible to access this feature within telerik and if this feature can be selectively turned on/off on the toolbar associated to the various text boxes.

I would appreciate your help on the above questions. Would you also please let me know which version of Telerix is needed to be downloaded to gain 3 above functionalities. Is theer any othe components is needed?Also could you please let me know if I need to change the code or not?


Thank you inadvance for your help.

 

Rumen
Telerik team
 answered on 27 Jan 2011
10 answers
321 views
Hi,

I have an idea in my head about a grid layout but I need assistance in figuring out how I can implement that. This is regarding a column called status.

The status dropdown would have fixed values (say Activate, Deactivate, Suspended etc. and the values will not be full text but char like A, D, S). When the grid is databound, the status dropdown value will be selected to the record's status. The user will have the option to change the status of the record by choosing another value in the dropdown. On change, data will be posted back and database will be updated with the new status for the record.

On top, I have the grid enabled for filtering. For this column, the filtering will have the dropdown and when user chooses a particular status, the grid should filter the records to only the records with that status.

I'm not sure how I can do this because I'm just starting on RadGrid. Can anyone help me figure out how to make this possible? I would really appreciate it.

Kind Regards,
JB
Tsvetina
Telerik team
 answered on 27 Jan 2011
3 answers
183 views
Hi,

first of all i would like to thank you guys for this very nice component.
I remember how i spent at least 3 months to implement a Self-referencing Hierarchy radgrid
with inline edit. It was really though and almost a nightmare.
When i saw this new component, i was like, omg finally they did it!
Well almost, because a lot of feature are still missing now...

I know the features will come later in the next release hopefully, probably between february and march,
but i can not wait and have to launch our website already in february.

Well, i have a treelist with 2 columns, a boundcolumn and a templatecolumn.
The templatecolumn is a radnumerictextbox.
Now, i can enter some value in each radnumerictextbox inside the templatecolumn.
So far so good.
Now my problem: how to retrieve all these value and save them when the user clicks
on a save button?

Please tell me it's possible riht now or you have maybe already done a lab for that or
can attach some demo example.

I tried again with Self-referencing Hierarchy radgrid but it's "buggy" and i don't want to mess
again with all the issues i had last time.

Thank you very much for your help and assistance.
Lucien
Radoslav
Telerik team
 answered on 27 Jan 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?