Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
144 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
161 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
210 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
216 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
227 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
177 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
881 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
282 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
258 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
1 answer
420 views
Hello,

I am listing items with checkboxes and I would like to use the strikethrough on the text of an item when the checkbox is checked. Kind of like a ToDo list and marking them completed. I also need to change it back when unchecking it. And I want to load the data that way. I guess I can always loop through and check to mark them and apply the css if needed.

Would this be easier to do with a gridview control also especially since I am data binding it?

Thanks,
Warren


Magdalena
Telerik team
 answered on 21 Apr 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?