Telerik Forums
Community Forums Forum
0 answers
54 views

Hi Telerik team,

I have tabstrip as follows:

<% Html.Telerik().TabStrip()
.Name("TabStrip")
.Items(tabstrip =>
tabstrip.Add()//To set Extra tab
.Text("4")
.Selected(true))//To get default selection of this tab
.HtmlAttributes(new { Style = "Width:100%;" })
.BindTo(Model.ItemType.Creates(),
(item, navigationData) =>
{
//item.Text = "&nbsp;";
item.ImageUrl = "/" + navigationData.ImageUrl + "/";
item.Text = navigationData.Value;
})
.ClientEvents(events => events
.OnSelect("TabStripSelect")
)
.Render(); %>
 

 Here Can I set 'item.value'(instead of 'item.Text')?

How to get tab selected value and tab selected text and tab selected index of tab on button click?

With regards
Dayana
Dayana Maliyakal
Top achievements
Rank 1
 asked on 25 Feb 2014
1 answer
83 views
Hi Telerik Team,

I have the following menu.I want to set a popup window while clicking menu each menu item(ie:Here menu item Action will be as popup).
How this possible?

With regards
Dayana


<% Html.Telerik().Menu()
            .Name("Menu")        
            .Orientation(MenuOrientation.Horizontal)
            .Items(menu =>
            {
                menu.Add()
                    .ImageUrl("~/Images/Active.gif")
                    .ImageHtmlAttributes(new { style = "padding: 0px 0px 0px 18px;position: absolute;" })
                    .Text("Employee")
                    .HtmlAttributes(new { style = "width: 113;line-height:4;" })
                    .Selected(true)
                    .Items(ItemEmployee =>
                        {
                            ItemEmployee.Add().Text(" Home");                        
                           ItemEmployee.Add().Text("New").Items(ItemNew =>
                                {
                                    ItemNew.Add()
                                        .Text("Test1")                                      
                                         .Action("AddTask?ItemTypeID=1&Operation=Add", "Test")
                                        .ImageUrl("~/Images/tt.gif");
                                    ItemNew.Add()
                                        .Text("Add Feature")
                                         .Action("AddTask?ItemTypeID=2&Operation=Add", "Test")
                                        .ImageUrl("~/Images/tt1.gif");
                                    ItemNew.Add()
                                        .Text("Add Bug")
                                          .Action("AddTask?ItemTypeID=3&Operation=Add", "Test")
                                        .ImageUrl("~/Images/tt3.gif");
                                    ItemNew.Add()
                                        .Text("Add Release")
                                        .Action("AddTask?ItemTypeID=4&Operation=Add", "Test")
                                        .ImageUrl("~/Images/tt4.gif");
                                });
                           
                        });
                       
                menu.Add()
                     .Text("Lists")
                     .HtmlAttributes(new { style = "width: 113;line-height:4;" })
                     .Visible(Convert.ToBoolean(ViewData["IsAuthorized"]))
                     .ImageUrl("~/Images/icon.png")
                     .ImageHtmlAttributes(new { style = "padding: 0px 0px 0px 18px;position: absolute;" });
             
            })
            .Render();
                    %>
Petur Subev
Telerik team
 answered on 24 Feb 2014
1 answer
110 views
Hi,

I have a treeview as following:

View

<script type="text/javascript">
 
function onDataBinding(e) {
var StatusID = $("#rcbProject").data("tComboBox").value();
$.ajax({
url: "/ucProject1/test?StatusID="
+ StatusID,
data: {},
success: function (data) {
var treeview = $("#rtvProject").data("tTreeView");
treeview.bindTo(data);
}
});
}
</script>

<%=Html.Telerik()
.TreeView()
.Name("rtvProject")
.ExpandAll(true)
.ClientEvents(events =>
{
events.OnDataBinding("onDataBinding");
})
%>


controller

public JsonResult test(int StatusID)
{
 
 DataTable dt = new DataTable();
 dt = GetItems(0, StatusID);
 var result = (from DataRow dr in dt.AsEnumerable()
 select new
 {
 Value = dr["ProjectID"],
 Text = dr["ProjectDisplayName"]
 }).ToArray();
 
 return Json(result, JsonRequestBehavior.AllowGet);
}


It is working.But I really need a hierarchical treeview.I want to add ParentID also other than Value and Text. Based on ParentID tree should  display.How this possible?
Petur Subev
Telerik team
 answered on 19 Feb 2014
0 answers
52 views
RadChart adds a highly requested support for secondary and multiple Y axes. The new feature is useful when the values of the displayed data series vary a lot from one another or different types of data should be presented in one chart. The scale of each added Y axis corresponds to the associated data series and auto adjusts its range.RadTreeView now features its own UI Virtualization that was reused from our RadGridView control. Now you can scroll even faster through large amount of nodes.RadScheduler supports additional  built-in resources - Category, Importance and TimeMarker
sheylasl
Top achievements
Rank 1
 asked on 17 Feb 2014
0 answers
191 views
Dating Software Full Source Code Asp.net with msaccess

full source code of a dating website, asp.net with msaccess for full source code of dating website 
of asp.net with sql server 2005 
visit our website http://www.yamoo.in
lot of source codes for free
amin
Top achievements
Rank 1
 asked on 14 Feb 2014
1 answer
132 views
hi,
 i want to access phone owner details like name,email,address,phone number.how to get full profile using kendo ui.
Nikita Gourme
Top achievements
Rank 1
 answered on 13 Feb 2014
1 answer
62 views
Hello,


http://www.screencast.com/t/Y8dahrUdM6N


Thanks,
Jayesh Goyani
Lora Borisova
Telerik team
 answered on 13 Feb 2014
2 answers
162 views
We migrated from the original Telerik grid to Kendo, and we are seeing redundant ajax calls.

We had code that previously implemented the telerik grid

 

@(Html.Telerik().Grid()<myTransactions>
.Name("Transactions")
.ClientEvents(events => events.OnLoad("TransactionsGrid_onLoad"))
.ClientEvents(events => events.OnDataBound("TransactionsGrid_onDataBound"))
.DataBinding(dataBinding => dataBinding
.Ajax()
.OperationMode(GridOperationMode.Client)
.Select("TransactionsAjax", controller))
 

We have recently migrated to Telerik's Kendo grid, and changed the code to the following:

 

@(Html.Kendo().Grid<myTransactions>()
.Name("Transactions")
.AutoBind(true)
.Events(events => events.DataBound("TransactionsGrid_onDataBound"))
.DataSource(dataSource => dataSource
.Ajax()
.ServerOperation(false)
.Read(read => read.Action("TransactionsAjax", controller))
.PageSize(15))

 

In addition to the grid, the page has 3 other fields; a combobox and 2
date fields that filter the grid. The filtering works fine.

 

However, the printer friendly button calls TransactionsAjax for the
Kendo grid and removes all filtering that was applied. The original
Telerik just rendered the existing grid as print friendly without making
a redundant call to TransactionsAjax.

 

Since the desired data to be printed is already filtered and available
on the screen there is no reason to repeat the call. Is there some grid
configuration setting I am missing that would stop the undesired call
from happening?
littleGreenDude
Top achievements
Rank 1
 answered on 07 Feb 2014
2 answers
118 views
Hello,

I accidentally deleted all the desktop icons (shortcuts) for the products example i installed using the control panel, i now i can search in the file system to locate the folders but i want to recover those shortcuts.

Thanks
JramirezDev
Top achievements
Rank 2
 answered on 07 Feb 2014
1 answer
128 views
Hello Everyone, hope you are all doing, I am new to Telerik Data Access, and I am really stuck on one thing. I add the domain model from an existing database. And Now I want to add domain methods for the Stored Procedures, but whenever I made a domain method for an SP, which is taking a parameter, and when I click on the retrieve result set option to create new complex type, It gave me an error "Unable to retriever Information", Please help me with that


PS: sorry for bad English :p
Doroteya
Telerik team
 answered on 05 Feb 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?