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

     i am using RadScheduler for my reservation.   While reservation take place on particular date (ie., insert and edit), i want to override the default popup (as in fig1) with my rad dock (as in fig2).

Thanks for in advance..
Have a great day.
Nikolay Tsenkov
Telerik team
 answered on 17 Nov 2010
3 answers
122 views
Hi,

  I have attached the png file. I have to create this using radgrid and radchart. I will have radchart at the top and it details in the radgrid. i should provide a facility to download it in a excel and pdf which should contain both chart and grid

please help

Thanks
jai
Ves
Telerik team
 answered on 17 Nov 2010
1 answer
101 views
Hi

I have a self-referencing hierachical radGrid like in my attachement

How to find checkbox control...?

I tried to count MasterTableView.Items.count but the result is always 1.
What am I missing?

Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
MsgBox(RadGrid1.MasterTableView.Items.Count)
For Each item As GridItem In RadGrid1.MasterTableView.Items
If TypeOf item Is GridDataItem Then
MsgBox(item.ClientID)
End If
Next
End Sub

<telerik:RadGrid ID="RadGrid1" runat="server" OnColumnCreated="RadGrid1_ColumnCreated" Skin="Office2007" Width="70%"
            OnItemCreated="RadGrid1_ItemCreated" OnItemDataBound="RadGrid1_ItemDataBound" AutoGenerateColumns="false"
             OnNeedDataSource="RadGrid1_NeedDataSource">
            <MasterTableView HierarchyDefaultExpanded="true" HierarchyLoadMode="Client" AllowSorting="true" Name="asd" DataKeyNames="mnid, mnparent,mnnameen">
            <SelfHierarchySettings ParentKeyName="mnparent" KeyName="mnid" />
            <Columns>
                <telerik:GridBoundColumn DataField="mnnameen" HeaderText="Menu" UniqueName="mnnameen"></telerik:GridBoundColumn>
                <telerik:GridTemplateColumn UniqueName="CBoxOpenTemplateColumn" HeaderText="Open" HeaderStyle-Width="70px">
                    <ItemTemplate>
                        <asp:CheckBox id="CBoxOpen" runat="server"></asp:CheckBox>
                    </ItemTemplate>
                </telerik:GridTemplateColumn>
                <telerik:GridTemplateColumn UniqueName="CBoxFullTemplateColumn" HeaderText="Full" HeaderStyle-Width="70px">
                    <ItemTemplate>
                        <asp:CheckBox id="CBoxFull" runat="server"></asp:CheckBox>
                    </ItemTemplate>
                </telerik:GridTemplateColumn>
                <telerik:GridTemplateColumn UniqueName="CBoxApprovalTemplateColumn" HeaderText="Approval" HeaderStyle-Width="70px">
                    <ItemTemplate>
                        <asp:CheckBox id="CBoxApproval" runat="server"></asp:CheckBox>
                    </ItemTemplate>
                </telerik:GridTemplateColumn>
                <telerik:GridTemplateColumn UniqueName="CBoxFavoriteTemplateColumn" HeaderText="Favorite" HeaderStyle-Width="70px">
                    <ItemTemplate>
                        <asp:CheckBox id="CBoxFavorite" runat="server"></asp:CheckBox>
                    </ItemTemplate>
                </telerik:GridTemplateColumn>
            </Columns>
            </MasterTableView>
        <ClientSettings AllowExpandCollapse="true" EnableRowHoverStyle="true">
        </ClientSettings>
        </telerik:RadGrid>


in this code I change id of the checkbox
Public Sub HideExpandColumnRecursive(ByVal tableView As GridTableView)
        Dim nestedViewItems As GridItem() = tableView.GetItems(GridItemType.NestedView)
 
        Dim itemid As String, itemidnya As String
        For Each item As GridItem In tableView.Items
            If TypeOf item Is GridDataItem Then
                Dim dataItem As GridDataItem = CType(item, GridDataItem)
                Dim mnid As String = dataItem.OwnerTableView.DataKeyValues(dataItem.ItemIndex)("mnid")
                Dim mnname As String = dataItem.OwnerTableView.DataKeyValues(dataItem.ItemIndex)("mnnameen")
                itemid = dataItem.ClientID
                Dim data() As String = Split(itemid, "__")
 
                Dim checkBoxOpen As CheckBox = TryCast(dataItem("CBoxOpenTemplateColumn").FindControl("CBoxOpen"), CheckBox)
                AddEventCbox(checkBoxOpen, "_" & data(1) & "__" & mnid & "__Open", "CheckedChanged('" & data(1) & "','Open',this)")
 
                Dim checkBoxFull As CheckBox = TryCast(dataItem("CBoxFullTemplateColumn").FindControl("CBoxFull"), CheckBox)
                AddEventCbox(checkBoxFull, "_" & data(1) & "__" & mnid & "__Full", "CheckedChanged('" & data(1) & "','Full',this)")
 
                Dim checkBoxApproval As CheckBox = TryCast(dataItem("CBoxApprovalTemplateColumn").FindControl("CBoxApproval"), CheckBox)
                AddEventCbox(checkBoxApproval, "_" & data(1) & "__" & mnid & "__Approval", "CheckedChanged('" & data(1) & "','Approval',this)")
 
                Dim checkBoxFavorite As CheckBox = TryCast(dataItem("CBoxFavoriteTemplateColumn").FindControl("CBoxFavorite"), CheckBox)
                AddEventCbox(checkBoxFavorite, "_" & data(1) & "__" & mnid & "__Favorite", "CheckedChanged('" & data(1) & "','Favorite',this)")
 
            End If
        Next
 
        For Each nestedViewItem As GridNestedViewItem In nestedViewItems
            For Each nestedView As GridTableView In nestedViewItem.NestedTableViews
                nestedView.Style("border") = "0"
 
                Dim MyExpandCollapseButton As Button = DirectCast(nestedView.ParentItem.FindControl("MyExpandCollapseButton"), Button)
                If nestedView.Items.Count = 0 Then
                    If Not MyExpandCollapseButton Is Nothing Then
                        MyExpandCollapseButton.Style("visibility") = "hidden"
                    End If
                    nestedViewItem.Visible = False
                Else
                    If Not MyExpandCollapseButton Is Nothing Then
                        MyExpandCollapseButton.Style.Remove("visibility")
                    End If
                End If
 
                If nestedView.HasDetailTables Then
                    HideExpandColumnRecursive(nestedView)
                End If
            Next
        Next
    End Sub

Thanks in advance for your help.
Tsvetoslav
Telerik team
 answered on 17 Nov 2010
6 answers
201 views
Hi there,

I have followed the RadCompression instructions for enabling the RadSessionPageStateCompression. Everything worked like charm in Q3 2009 but it stopped in Q1 2010. I can see a huge view state in my page and I have no idea what I did wrong.

So what are the possible reason for silently not using the RadSessionPageStateCompression adapter?

Thank you in advance,
Valery.
Iana Tsolova
Telerik team
 answered on 17 Nov 2010
1 answer
95 views

The performance of the RadScheduler is simply terrible  in IE7. Has there been any recent effort to improve the performance of the RadScheduler in general and also specifically in IE7?

We have just completed a painful exercise to optimize some of our pages that use the RadScheduler at signficant expense to our organization. Unfortunately, we still have more to complete. Please let us know if you have done any work on optimizing the scheduler.

Thanks
Nikolay Tsenkov
Telerik team
 answered on 17 Nov 2010
2 answers
174 views
Hello,

I have a radwindow open.  I issue a Response.Redirect, but it navigates in the window.  I need to navigate in the whole page.  How can I do that when the rad window is open?  The request is obviously issued from the view within the radwindow?  All pages being viewed (master and in the radwindow) are within the application.

Thanks.
Georgi Tunev
Telerik team
 answered on 17 Nov 2010
1 answer
195 views
Hi,
I have created a radgrid and making order by this grid i am creating dynamic rows as user required. grid display on click of button that is outside from grid and display with single row when user make insert first row item detail then user click add new row then display new row but while click on new row previous row detail lost.
plz suggest me what is the reason for that or how can i use session view state effectively.
here i am attaching link of my code that i posted previously.
i am waiting our forum response eagerly...
how can i save session/viewstate and again from session to database..anamically.aspx
Thanks
Daniel
Telerik team
 answered on 17 Nov 2010
1 answer
58 views
Hi,

using the below code I can copy the excell data and paste it into rad grid and I donot have any problem but if I use RadcomboBox in EditItemTemplate then i can't able to read the values in Mozilla and safari. In I.E it's working fine.
EditItemTemplate

function pasteFromExcel() {
            if (!lastFocused) return;
            var browser = navigator.appName;
            if (browser == "Microsoft Internet Explorer") {
                var clipData = window.clipboardData.getData('Text');
                var crlf = String.fromCharCode(13) + String.fromCharCode(10);
                var table = clipData.split(crlf);
                for (var tRow = 0; tRow < table.length - 1; tRow++)
                    table[tRow] = table[tRow].split(String.fromCharCode(9));
                Array.remove(table, table[table.length - 1]);
                fillTable(table);
            }
            else {

                var clipDiv = document.getElementById("Div1");
                clipDiv.style.display = "block";
                var clipBoardText1 = document.getElementById("clipboardtext1");
                clipBoardText1.style.visibility = "visible";
                if (clipBoardText1.value != "") {
                    var clipData = clipBoardText1.value;
                    var table = clipData.split("\n");
                    for (var tRow = 0; tRow < table.length - 1; tRow++)
                        table[tRow] = table[tRow].split(String.fromCharCode(9));
                    Array.remove(table, table[table.length - 1]);
                    fillTable(table);
                    clipBoardText1.value = "";
                    clipDiv.style.display = "none";
                }
            }
        }


Thanks & Regards,

Thippa Reddy
Tsvetoslav
Telerik team
 answered on 17 Nov 2010
2 answers
146 views
Hi. Sorry, I'm just a bit nerd using this controls.
 What I'm trying to do is quite simple: I want to display  treeview with some nodes linked to PDF files. Whe you click on that node, I want the PDF to open in a new Window. I populate the tree with data from a Database using  the Adjacency List Model. In the event RadTreeView1_NodeDataBound, I set the NavigateUrl property of the node this way:

e.Node.NavigateUrl = "javascript:window.open('" + PDFpath + "')"

where PDFpath is a valid URL to the PDF I want to show in a new window. It work's fine (the PDF is opened in a new window), but the treeView displayed on the main page vanished, and show the word : "[object]". What I'm doing wrong?.

The code I'm using on the ASP page is quite simple, as you can see:

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="TestWeb._Default" %>
<%@ 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>
    <style type="text/css">
        .style1
        {
            width: 100%;
        }
        .style2
        {
            width: 271px;
        }
    </style>
     
</head>
<body>
 
    <form id="form1" runat="server">
   <%-- <telerik:RadFormDecorator ID="RadFormDecorator1" Runat="server" DecoratedControls="Fieldset" />--%>
    <asp:ScriptManager ID="ScriptManager1" runat="server" />
    <div>
    <table class="style1">
        <tr><td colspan ="2">
                <asp:Button ID="Button1" runat="server" onclick="Button1_Click" Text="llenar TreeView" />
             <asp:Button ID="Button2" runat="server" onclick="Button2_Click"Text="Expediente 1" />
            </td>
          
        </tr>
         
        <tr>
                <td class="style2" valign="top">
     
        <fieldset >
        
            <telerik:RadTreeView ID="RadTreeView1" Runat="server"
                LoadingMessage="Cargando ..." Skin="Outlook"
                onnodedatabound="RadTreeView1_NodeDataBound" />
             
        </fieldset>
                </td>
                <td>
                    <asp:GridView ID="GridView1" runat="server">
                    </asp:GridView>
                </td>
            </tr>
        </table>
     
    </div>
    </form>
</body>
</html>

Thank's in advance
Julio Loizaga
Top achievements
Rank 1
 answered on 17 Nov 2010
27 answers
2.4K+ views
I have a RadGrid and when a use clicks on the Edit image a RadWindow opens with the record that they need to edit. After the user updates the information the use clicks the X in the top corner to close the window. I need to know how to set the RadGrid to then Refresh to show the updated data. I tried to use the OnClientClick and added the JavaScript:

onDispose()
{
top.location.reload()
}

When I used this the page went into a loop on page load. I put this code on the parent page where I am using the RadWindowManager. Can anyone help me with a solution to this?
Iana Tsolova
Telerik team
 answered on 17 Nov 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
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?