Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
213 views
We've found some cases where calling RecurrenceRule.TryParse ends up throwing an exception.
//in namespace Telerik.Web.UI
RecurrenceRule blah;
RecurrenceRule.TryParse("DTSTART:20140417T224500Z\r\nDTEND:20140417T234500Z\r\nRRULE:FREQ=YEARLY;INTERVAL=8;COUNT=1;\r\n", out blah); //exception
RecurrenceRule.TryParse("DTSTART:20140417T224500Z\r\nDTEND:20140417T234500Z\r\nRRULE:FREQ=DAILY;INTERVAL=8;COUNT=1;\r\n", out blah); //ok
RecurrenceRule.TryParse("DTSTART:20140417T224500Z\r\nDTEND:20140417T234500Z\r\nRRULE:FREQ=MONTHLY;INTERVAL=8;COUNT=1;\r\n", out blah); //exception
RecurrenceRule.TryParse("DTSTART:20140417T224500Z\r\nDTEND:20140417T234500Z\r\nRRULE:FREQ=MONTHLY;INTERVAL=1;COUNT=1;\r\n", out blah); //exception
RecurrenceRule.TryParse("DTSTART:20140417T224500Z\r\nDTEND:20140417T234500Z\r\nRRULE:FREQ=YEARLY;INTERVAL=1;COUNT=1;\r\n", out blah); //exception

Now, we can obviously wrap these calls in try/catch blocks or try to make the strings valid, but that defeats the entire purpose of the TryParse methods.  They should return false if the string being passed in representing the datatype's value is invalid and/or not well formatted.
Plamen
Telerik team
 answered on 21 Apr 2014
1 answer
141 views
Hi,

Can any one help me with detail C# Code example.
My Question is I want to bind the ListView with DataSet which have the following coloumns i-ID, ii-Name, iii-Detial, iv-PictureURL
so after binding I can drag the record from ListView on Scheduler once I drop the record on scheduler a popup window should appear where I can update the time. I can delete this record also from scheduler, once I delete it should appear in ListView.
at Last once I pressed confirm button all the appointments should save into database with that ID & NAME.

Please help regarding this question with detail code example. thank you me waiting quick response ASAP
Plamen
Telerik team
 answered on 21 Apr 2014
7 answers
158 views
Hello,
I'm trying to use drag and drop to transfer a row from list box to chart as the demo example (Transfer Employees) but with single binding, i handle the server function  AjaxRequest and  bind the new data to chart  ,, but on screen it doesn't show new data !!! 



    Protected Sub GeneralManeger_AjaxRequest(sender As Object, e As Telerik.Web.UI.AjaxRequestEventArgs)
        Dim seps As Char() = {"-"c}
        Dim textAndIds As String() = e.Argument.Split(seps, StringSplitOptions.None)
 
        Dim sep As Char() = {":"c}
        Dim stringIds As String() = textAndIds(2).Split(sep, StringSplitOptions.RemoveEmptyEntries)
        Dim ids As Integer() = New Integer(stringIds.Length - 1) {}
        For i As Integer = 0 To stringIds.Length - 1
            ids(i) = Int32.Parse(stringIds(i))
        Next
 
        If textAndIds(0) = "drop" Then
            Dim newText As String = textAndIds(1)
 
 
            Dim node As OrgChartNode = AdminOccupationsChart.GetNodeByHierarchicalIndex(ids)
 
            Dim row = (From myRow In Occupations_List.AsEnumerable() Where myRow.RecordName = newText Select myRow).SingleOrDefault
 
 
            ChartList.Add(New Entities.Extensions.AnonymousTypes.HirarchicalClass With {.ClusterCode = row.ClusterCode, .PropertyCode = row.PropertyCode, .RecordCode = row.RecordCode, .ParentRecordCode = node.ID, .OriginalRecordCode = row.OriginalRecordCode, .RecordName = row.RecordName, .RecordNameAlternate = row.RecordNameAlternate})
 
 
 AdminOccupationsChart.DataFieldID="RecordCode"
AdminOccupationsChart.DataFieldParentID="PArentRecordCode"
AdminOccupationsChart.DataSource = ChartList
     AdminOccupationsChart.DataBind()
        OccupationsList.DataSource = Occupations_List
        OccupationsList.DataBind()
 
 
     End Sub

















Plamen
Telerik team
 answered on 21 Apr 2014
3 answers
205 views
Hi,
in my org chart i add two  item template (DeleteBtn,PopUpBtn) 
item (DeleteBtn) want to be visible on last level node and item (PopUpBtn) visible on parents node 
how can i do it after binding data from database ?? 

and the item (Name) not always take the same (Container.DataItem) i want to change it at binding the data 

should I add the template at run time or how ?? 
<telerik:RadOrgChart ID="AdminOccupationsChart"  runat="server" LoadOnDemand="NodesAndGroups" EnableCollapsing="true"
                                        EnableDragAndDrop="true"   >
                                               <ItemTemplate>                                             
                                            <strong id="Name"> <%# DataBinder.Eval(Container.DataItem, "RecordName")%></strong>
                                            <button id="DeleteBtn"  title="Remove" class="rocRemoveItemButton"  />
                                            <button id="PopUpBtn" title="Open" class="rocOpenPopupButton"  />
                                        </ItemTemplate>
                              </telerik:RadOrgChart>
Plamen
Telerik team
 answered on 21 Apr 2014
1 answer
214 views
Hi Telerik,

When i disable telerik embeddedskin and basestylesheet on my radgrid as i am using my custom cssclass to design it but it also disable pagerstyle skins on my pagerstyle as below.

 <telerik:RadGrid EnableEmbeddedSkins="false" EnableEmbeddedBaseStylesheet="false" CssClass="table table-striped table-bordered table-hover">
<PagerStyle Mode="Slider">
</PagerStyle>
</telerik:RadGrid>

I want to disable it for radgrid but not for pagerstyle so i need something like this:

<telerik:RadGrid EnableEmbeddedSkins="false" EnableEmbeddedBaseStylesheet="false" CssClass="table table-striped
table-bordered table-hover">
<PagerStyle Mode="Slider" EnableEmbeddedSkins="true" EnableEmbeddedBaseStylesheet="true">
</PagerStyle>
</telerik:RadGrid>

Hope to get help from you.

Thanks in Advance,
Harry
Eyup
Telerik team
 answered on 21 Apr 2014
1 answer
224 views
Hi,
      I want to get  the value of rad grid column on row selection in client side. The Column value is Boolean type.
My Grid Column Code is
<telerik:GridTemplateColumn ItemStyle-HorizontalAlign="Left" UniqueName="IsDefault"  HeaderText="Default" >
             <ItemTemplate
      <asp:Label Id="default" runat="server" Text='<%# Convert.ToBoolean(Eval("IsDefault")) == true ? "Yes" : "No" %>'></asp:Label>
              </ItemTemplate>
</telerik:GridTemplateColumn>
Client side code:
​ function gv_SubAccount_RowSelected(sender, args) {
         var grid = sender;
         var MasterTable = grid.get_masterTableView();
      
         var rowEl = MasterTable.get_dataItems()[2].get_element();
      
         var def = $telerik.findElement(rowEl, "default").innerHTML;
          alert(def);//it return always Yes why?.
return false;
}

How can get the value  column value on OnRowSelected client side.
Please Provide solutions.

Thanks,
Rahul
Princy
Top achievements
Rank 2
 answered on 21 Apr 2014
5 answers
175 views
Hi,

I have display problem with scheduler (file attached). Teleric.dll  is 2009.1.311.20)
Plamen
Telerik team
 answered on 21 Apr 2014
3 answers
875 views
hi telerik ,
in my project i use ORGchart and ListBox  and use a button as item template in ORGchart ,
at click on the button i want to open a devexpress popup and  perform a callback to a devexpress grid view .. it is possible to do ? 
Eyup
Telerik team
 answered on 21 Apr 2014
3 answers
276 views
Hello, I have a RadButton which lives on a user control, which in turn is within a master page.

I'm trying to use the RegisterPostBackControl method of the master page's RadScriptManager object to register the button, but upon clicking it still is causing a FULL postback rather than executing the button's OnClick which references a separate ExportToExcel method I've created.

I have the Page_Load in the user control below as follows, what am I doing wrong?

        protected void Page_Load(object sender, EventArgs e)
        {
            if (Page.IsPostBack)
            {
                ((RadScriptManager)Page.Master.FindControl("RadScriptManager1")).RegisterPostBackControl(_ExportButton);
            }
        }



Here is the markup for the RadButton:

      <telerik:RadButton runat="server" ID="_ExportButton" Text="Export" Enabled="False" AutoPostBack="True" OnClick="ExportToExcelClick"  />
    
Eyup
Telerik team
 answered on 21 Apr 2014
4 answers
251 views
I have a Rad Grid that exports to PDF. There are several columns in the grid. Most of the data is only a couple words and is displayed on one line.  However, there is a comments column that sometimes is long and wraps to several lines. My issue is when this is the last row. The export starts the row on one page and continues it on the next page. Is there a way to have only complete rows on a page?
Eyup
Telerik team
 answered on 21 Apr 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
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
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
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
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?