Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
964 views

Hi All,

 Is it possible to show only vertical lines in radgrid without any borders. I mean just a seperator of vertical line between columns. I don't want any borders an seperators between grid header and rows.

any help will be appreciated.

Thanks.

 

Anjali
Top achievements
Rank 1
 answered on 11 Mar 2013
1 answer
213 views
I upgraded to new Telerik version 2012.3.1308.35 from 2010.3.1109.35. All applications are on Sharepoint 2010 and everthing works fine with old telerik But with the new Telerik am getting so many errors.

Old Telerik Settings 1.  GAC:
Telerik.Web.Design
Telerik.Web.UI
2.  Web.config:
<SafeControl Assembly="Telerik.Web.UI, Version=2010.3.1109.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" Namespace="Telerik.Web.UI" TypeName="*" Safe="True" SafeAgainstScript="True" /><httpHandlers><add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource, Telerik.Web.UI, Version=2010.3.1109.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" verb="*" validate="false" /><add path="Telerik.Web.UI.DialogHandler.axd" verb="*" type="Telerik.Web.UI.DialogHandler, Telerik.Web.UI, Version=2010.3.1109.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" validate="false" /></httpHandlers>3.  In application user controls:<%@ Register Assembly="Telerik.Web.UI, Version=2010.3.1109.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4"Namespace="Telerik.Charting" TagPrefix="telerik" %><%@ Register Assembly="Telerik.Web.UI, Version=2010.3.1109.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4"Namespace="Telerik.Web.UI" TagPrefix="telerik" %>Web.config settings modified for new Telerik1.    Added Telerik.Web.UI.Skins in GAC2.    Added SafeControl for Skins in Web.config3.    Registered Skins assembly in User Control4.    HttpHandlers are same as for old Telerik.Could you please let me the web.config settings required for Telerik Version 2012.3.1308.35Thanks,

 

Slav
Telerik team
 answered on 11 Mar 2013
2 answers
86 views
I have a TreeView that loads child nodes through a webservice call when I expand by clicking or by calling .expand() on the node object in javascript.
I need to load (atleast sometimes) large number of child nodes and I would like to be able to quickly server the UI a list of parent nodes that are then by filled with childnodes through the webservice from JS on the client side.

So for example in the $.ready() event start loading childnodes for my tree without expanding them.

The reason is that i have a filter box that searches the treeview structure and therefore I need all the nodes but I dont want to take the performance hit at the first rendering.

Is it possible to call a method like (psuedo) .load_from_webservice() on the Node client objects?
Wendelstam
Top achievements
Rank 1
 answered on 11 Mar 2013
3 answers
137 views
Is there a client API to define custom webServiceLoaders/webServiceSettings?

I'm trying to Dynamically load content from an AJAX call which returns an entire Serialized RadMenu or a refresh of specific sub-menues.

are there any Client APIs to simply say

var items = menu.get_items();
items.clear();
items.loadXml(UrlToRestService);

and

var items = menu.findItemByText("My Dirty Dynamic Menu").get_items();
items.clear();
items.loadXml(UrlToSubMenuSpecificRestService);



I can add my own prototype method to create this API, but I would like to know if anything like this already exists.
Thanks.
Genady Sergeev
Telerik team
 answered on 11 Mar 2013
8 answers
167 views
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %>
  
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    This is the first page.<br />
            <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="~/Default2.aspx">Go to page with combobox</asp:HyperLink>
  
    </div>
    </form>
</body>
</html>
  
  
  
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default2.aspx.vb" Inherits="Default2" %>
  
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
  
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
        </telerik:RadScriptManager>
    <div>
            Hitting the Backspace key after selecting an item here will redirect back to Default
            <telerik:RadComboBox ID="RadComboBox1" runat="server">
            <Items>
                <telerik:RadComboBoxItem Value="0" Text="Item 0" />
                <telerik:RadComboBoxItem Value="1" Text="Item 1" />
                <telerik:RadComboBoxItem Value="2" Text="Item 2" />
                <telerik:RadComboBoxItem Value="3" Text="Item 3" />
            </Items>
            </telerik:RadComboBox>
    </div>
    </form>
</body>
</html>
I am sure this has been addressed before, but I couldn't find any reference for it. So, here is the problem I found: when an item in a radcombox is selected, if you hit the backspace key, you will be redirected to the previous page. Below is my code: Starting from Default.aspx page, click on the hyperlink to Default2.aspx; selecting any of the items in the Radcombobox, hit the backspace key and you go back to Default.aspx.

Hopefully, it would be a simple solution to fix this. Thanks.

Tri Nguyen

Hristo Valyavicharski
Telerik team
 answered on 11 Mar 2013
2 answers
96 views
Hi

I am trying to change the style of my headercontextmenu since it is transparent now on the RadGrid. How can i change this?

thanks

Dirk
Raj
Top achievements
Rank 1
 answered on 11 Mar 2013
1 answer
104 views
Hello,
I would like to update my language localization of GlobalResources from Q3/2012 to Q1/2013.
I found that original files RadColorPicker.resx, RadSocialShare.resx and RadWindow.resx are missing
in new Q1/2013 installation package. Are their contents moved to the other files?
Thanks
-Marian
Marin Bratanov
Telerik team
 answered on 11 Mar 2013
0 answers
98 views
Hi,

I want to do a search page with pagination that when I click on an item I get a new page with the detail information. On the detail page, I want to be able to press on a back to results button to back to the result page, or a back button to see the prior item, or a next button to see the next item of the search results.

What would be the best way to acheive that with the radgrid in the result page ?
What kind of datacontrol or databinding to persist the information across web pages ?

Thank you

Carl
Carl
Top achievements
Rank 1
 asked on 11 Mar 2013
3 answers
82 views
Hi,

I upgraded to the 2013 Q1 release today, excited for the new features, but experienced a pretty big bug.  Here is what I'm seeing:

  1. No problems with 2012.2.912 (most recent before 2013 Q1).
  2. Upgrade to 2013 Q1.
  3. On ItemDataBound and on ItemCommands, I'm unable to read "text" problem for grid columns via the following code.  In every case, even when data exists in the column, item("ColumnName").Text returns "&nbsp;".

Protected Sub TruckersRadGrid_ItemDataBound(ByVal sender As Object, ByVal e As GridItemEventArgs)
 
    If TypeOf e.Item Is GridDataItem Then
 
        Dim item As GridDataItem = DirectCast(e.Item, GridDataItem)
        Dim myFlowStepID As String = item("FlowStepID").Text

Protected Sub TruckersRadGrid_ItemCommand(ByVal sender As Object, ByVal e As GridCommandEventArgs) Handles TruckersRadGrid.ItemCommand
 
    Dim item As GridDataItem = DirectCast(e.Item, GridDataItem)
    Dim myPartyID As String = item("PartyID").Text

When I go back to the previous release, the problem solves itself.   Also, here is the resulting page in an error state:

https://gist.github.com/fastport/5103685

One more note: I believe if I set the visibility of the columns that need the "text" from, the procedures above can see the values.  But I haven't tested this thoroughly.  This is not the case with previous release.  The values are visible server side no problem.

Please let me know if anyone has any ideas what is up, because I am excited to have access to the new features.

Jim

Andrey
Telerik team
 answered on 11 Mar 2013
5 answers
136 views
Hello,

before this is my html code and vb.bet code:
<asp:Panel ID="PanelRadlist" runat="server" Width="700px">
<div style="font-family:Verdana; width:65" id="div_radlistview">
<telerik:RadListView ID="RadListView1" runat="server" DataKeyNames="idutente"
ItemPlaceholderID="Contenitore" AllowPaging="True" Skin="Office2010Silver"
Width="650px" OnPageIndexChanged="RadListView1_PageIndexChanged">
<LayoutTemplate>
<fieldset style="width: 700px; border:0px" id="FieldSet1">
<legend></legend>
<asp:Panel ID="Contenitore" runat="server">
</asp:Panel>
</fieldset>
</LayoutTemplate>
<ItemTemplate>
<div class="item">
<div class="image">
<asp:Image ID="Image1" runat="server" ImageUrl='<%# CType(Container.DataItem, PropertyUtente).imageprofile%>' Height="120px" Width="110px"/>
</div>
<div class="content">
<div class="user">
<b><%# CType(Container.DataItem, PropertyUtente).utente%></b>
</div>
<div class="description_category">
Categoria: <%# CType(Container.DataItem, PropertyUtente).Desccategoria%>
</div>
<div class="description_city">
Città: <%# CType(Container.DataItem, PropertyUtente).Desccomune%></div>
<div class="description_phone">
Telefono: <%# CType(Container.DataItem, PropertyUtente).Telefono%></div>
<div class="description_email">
Email: <%# CType(Container.DataItem, PropertyUtente).Email%>
</div>
<div class="item_button">
<telerik:RadButton ID="RadButton1" runat="server" Text="Visualizza biglietto completo" Width="170px" Skin="Office2010Silver"
OnClick="RadButton1_Click">
</telerik:RadButton>
</div>
</div>
</div>
</ItemTemplate>
</telerik:RadListView>
<telerik:RadDataPager ID="RadDataPager1" runat="server"
PagedControlID="RadListView1" Culture="it-IT" Width="700px">
<Fields>
<telerik:RadDataPagerButtonField FieldType="FirstPrev"></telerik:RadDataPagerButtonField>
<telerik:RadDataPagerButtonField FieldType="Numeric"></telerik:RadDataPagerButtonField>
<telerik:RadDataPagerButtonField FieldType="NextLast"></telerik:RadDataPagerButtonField>
</Fields>
</telerik:RadDataPager>
</div> <!-- end div radlist -->
</asp:Panel>

Imports System
Imports System.Web
Imports System.Data
Imports System.Data.SqlClient
Imports Telerik.Web.UI
Imports System.Web.UI.HtmlControls
Imports System.IO
Imports TRYcontact
 
Public Class search
    Inherits RadAjaxPage
    Private ObjUtente As New PropertyUtente
    Private Loadsearch As New GestoreUtente
    Private Sub Carica_risultati(ByVal _str1 As String, ByVal _str2 As String)
        Dim lista As List(Of PropertyUtente) = Loadsearch.Search(_str1, _str2)
        label1.text = "Risultati trovati: " & CInt(lista.Count)
        RadListView1.DataSource = lista
        RadListView1.DataBind()
    End Sub
    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        If Not Page.IsPostBack Then
            Dim _str1, _str2 As String
            _str1 = Request.QueryString("_str1")
            _str2 = Request.QueryString("_str2")
            Carica_risultati(_str1, _str2)
            Me.ClientScript.RegisterStartupScript(Me.GetType, "", "Height_Div();", True)
        End If
    End Sub
 
    Protected Sub RadButton1_Click(sender As Object, e As System.EventArgs)
        Dim Button As RadButton = CType(sender, RadButton)
        Dim item As RadListViewDataItem = CType(Button.Parent, RadListViewDataItem)
        Dim dd As Integer = item.GetDataKeyValue("idutente")
        Response.Redirect("publicard.aspx?_id=" & item.GetDataKeyValue("idutente"))
    End Sub
 
    Protected Sub RadListView1_PageIndexChanged(sender As Object, e As Telerik.Web.UI.RadListViewPageChangedEventArgs) Handles RadListView1.PageIndexChanged
        RadListView1.CurrentPageIndex = e.NewPageIndex
        Dim _str1, _str2 As String
        _str1 = Request.QueryString("_str1")
        _str2 = Request.QueryString("_str2")
        Carica_risultati(_str1, _str2)
    End Sub
End Class
Digita il testo o l'indirizzo di un sito web oppure traduci un documento.
now the my problem is that  that when I click on the next button to go forward with the record, the selection of the next page is not the case still remains the number one and then if I click on button press or back first, the pages do not come back and you do not see the change records.
look at the picture I posted
And another question..it is possible that when I click on DataPage to change the page, being the property PageSize = 10, the display of the page to look back at the first record in high .. then come back as if the scrollbar on it ... like in google
i used this code: 

 

ScriptManager.RegisterStartupScript(Page, Me.GetType, "Goon", "window.scrollTo(0,0);", True)

but is only a refresh of Pgina and the scrollbar is always positioned at the bottom so the page does not return at the beginning of the list.




Kostadin
Telerik team
 answered on 11 Mar 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?