Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
65 views
Hi
I want to show or hide  group Panel with javascript
please help to me
Salman
Top achievements
Rank 1
 asked on 10 Jan 2012
0 answers
67 views
All good
Kieren
Top achievements
Rank 1
 asked on 10 Jan 2012
9 answers
106 views
Hello everyone.  I have a page with a grid in which the grid and sort works properly when used against the personal webserver that comes with Visual Studio but not when used against the remote server.  When I say remote server I mean from one of the those hosting companies that you pay a small fee per month.  In trying to solve this problem I even allowed reordering but it still didn't solve the problem and even with reordering turned on the project works fine off of the personal web server.  Can someone please give me a hand with this?


<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
 <title></title>
 <telerik:RadStyleSheetManager id="RadStyleSheetManager1" runat="server" />
</head>
<body>
    <form id="form1" runat="server">
 <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
  <Scripts>
   <%--Needed for JavaScript IntelliSense in VS2010--%>
   <%--For VS2008 replace RadScriptManager with ScriptManager--%>
   <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />
   <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" />
   <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js" />
  </Scripts>
 </telerik:RadScriptManager>
 <script type="text/javascript">
  //Put your JavaScript code here.
    </script>
 <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
 </telerik:RadAjaxManager>
 <div>
        <telerik:RadGrid runat="server" AllowFilteringByColumn="True"
            AllowPaging="True" AllowSorting="True" CellSpacing="0"
            DataSourceID="PeopleDBds" GridLines="None">
            <ClientSettings AllowColumnsReorder="True" ReorderColumnsOnClient="True">
                <Selecting AllowRowSelect="True" />
            </ClientSettings>
<MasterTableView AutoGenerateColumns="False" DataKeyNames="ContactID"
                DataSourceID="PeopleDBds">
<CommandItemSettings ExportToPdfText="Export to PDF"></CommandItemSettings>

<RowIndicatorColumn FilterControlAltText="Filter RowIndicator column">
<HeaderStyle Width="20px"></HeaderStyle>
</RowIndicatorColumn>

<ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column">
<HeaderStyle Width="20px"></HeaderStyle>
</ExpandCollapseColumn>

    <Columns>
        <telerik:GridBoundColumn DataField="ContactID" DataType="System.Int32"
            FilterControlAltText="Filter ContactID column" HeaderText="ContactID"
            ReadOnly="True" SortExpression="ContactID" UniqueName="ContactID">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="FirstName"
            FilterControlAltText="Filter FirstName column" HeaderText="FirstName"
            SortExpression="FirstName" UniqueName="FirstName">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="LastName"
            FilterControlAltText="Filter LastName column" HeaderText="LastName"
            SortExpression="LastName" UniqueName="LastName">
        </telerik:GridBoundColumn>
    </Columns>

<EditFormSettings>
<EditColumn FilterControlAltText="Filter EditCommandColumn column"></EditColumn>
</EditFormSettings>
</MasterTableView>

<FilterMenu EnableImageSprites="False"></FilterMenu>

<HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Default"></HeaderContextMenu>
        </telerik:RadGrid>
     <asp:SqlDataSource ID="PeopleDBds" runat="server"
            ConnectionString="<%$ ConnectionStrings:DB_2381_testConnectionString %>"
            SelectCommand="SELECT * FROM [vContactTbl]"></asp:SqlDataSource>
 </div>
 </form>
</body>
</html>

Juan
Top achievements
Rank 1
 answered on 10 Jan 2012
1 answer
45 views
hello,
              I have a splitter with: left pane, splitbar and a right pane.

In the left pane i have a radio button list(which causes a postback) 

In the right pane i have a radgrid(using NeedDataSource) and this should be updated depending on the radio button clicked.

And in the SelectedIndexChanged of radio button i have 

RadGrid1.DataSource = Nothing
        RadGrid1.Rebind()

All the sequence of steps are perfect, but the Radgrid is not getting updated. Is it because AJAX only updates the left pane ? Please help. Thanks

PS:When i click on the Page 2 of the old grid, then i can see the new updated grid.
Sagar
Top achievements
Rank 1
 answered on 10 Jan 2012
3 answers
120 views
Hi all,
i have placed rad controls(RadTextBox, RadComboBox, etc) inside the asp panel, i am sending instance of asp panel to an other page and finding controls on that page can any one told me or send me a sample code that how can i find RadContols inside asp panel
Elliott
Top achievements
Rank 2
 answered on 10 Jan 2012
1 answer
193 views
Hi friends,
in our application we are using RadGrid and RadToolBar 
radToolBar having buttons like Create,Edit,Delete,Preview
here preview button is for display the selected record 's details in other page using Window.Open();


when i select a single record in radGrid,we are going to enable Edit,Delete,Preview  buttons in Radtoolbar.Otherwise these buttons will be disable mode.


 i am going to select a record by checking a check box in radGrid and will click on Preview button.Now the data will be displayed in Other widow(here i am using Window.Open() to daisplay record)
when i close the popup window which has displayed using Window.Open(), all the buttons in Radtollbar goes to disable mode...
For enable and disable buttons in Toolbar i am using a javascript function like selectAll().
This function will be exeuted when i select a record in RadGrid.

Now how can i call this function on closing popup window

observe the attachments for more clarification...


Richard
Top achievements
Rank 1
 answered on 10 Jan 2012
0 answers
70 views
Hi,

I am writing some tests in IE around our RadTreeView using WatiN. It's great for navigating the tree and expanding nodes but I am having some trouble raising our XML defined context menus via right click.

I've tried simulating a right click using
private void ContextClick(Element span)
{
            NameValueCollection eventProps = new NameValueCollection();
            eventProps.Add("button", "2");
            span.FireEvent("onmousedown", eventProps);
}
where span is the Span DOM element that contains the relevant node name. To my mind this should simulate the user right clicking on the node. All I see happening though is that the node is highlighted yellow. Anything to do with not havign a cursor/mouse position?

I've check the client-side API and I can see a function for making the Context menu disappear but I can't find anything I can call on the page to make it appear. Is there anything like this or can anyone think of a way of simulating a right mouse click on a node using server side code?

Many thanks in advance...
Andy
Top achievements
Rank 1
 asked on 10 Jan 2012
2 answers
92 views
Help me on this issue. Drop down of the page size with all values are populating very good but displaying behind of the popup.

Thank you 
Lakshman
Top achievements
Rank 1
 answered on 10 Jan 2012
1 answer
160 views
Hello All,
      i added one radgrid dynamically in asp.net application. in the radgrid i am using the form template to insert and update the record, i have three columns in the grid like Col1,Col2,Col3. all are the textbox columns. Col3 have one radimagebutton. if i click the radimagebutton it will open the radwindow and i pick some image after click ok button in the radwindow it will bind the value in Col3 textbox, this functionality is fine, but my question is

1. i entered some value in col1 and col2 textbox
2. after bind some image value in the Col3 textbox. col1 and col2 textbox values are gone because of postback
3. above scenario i handle in insert button through grid_itemCommand event, if i insert the form template all values are persist
4. but when i update that time i cannot able to persist the col1 and col2 values, col3 values are there
5. when i click the insert button in grid_itemcommand event the item will come as grideditformitem, so i can able to get the entered value using
GridEditFormItem item = (GridEditFormItem)e.Item;
string col1value=item.FindControl("Col1textboxid").Text;
and rebind to the corresponding textbox
6. when i click the update button in grid_itemcommand event the item will come as griddataitem, here i cannot find the control and cannot get the value, please tell me to persist the value

Kindly tell me how to resolve this issue
Andrey
Telerik team
 answered on 10 Jan 2012
1 answer
117 views
I have a listview that has gaps in the display (see attached). Why?
Here is the code displaying the listview

<telerik:RadListView ID="RadListView1" runat="server" AllowPaging="True" ItemPlaceholderID="PlaceHolder1"
    OnItemCreated="RadListView1_ItemCreated" DataKeyNames="id,filenameextension,typeAbbr,title" onneeddatasource="RadListView1_NeedDataSource" >
    <LayoutTemplate>
        <div class="RadListView RadListViewFloated RadListView_Windows7">
            <telerik:RadDataPager ID="RadDataPager1" runat="server" Skin="Sitefinity" PageSize="25"
                PagedControlID="RadListView1" BorderWidth="0" OnFieldCreated="RadDataPager1_FieldCreated">
                <Fields>
                    <telerik:RadDataPagerButtonField FieldType="FirstPrev" />
                    <telerik:RadDataPagerButtonField FieldType="Numeric" />
                    <telerik:RadDataPagerButtonField FieldType="NextLast" />
                    <telerik:RadDataPagerPageSizeField PageSizeText="Page size: " />
                    <telerik:RadDataPagerGoToPageField CurrentPageText="Page: " TotalPageText="of" SubmitButtonText="Go"
                        TextBoxWidth="15" />
                    <telerik:RadDataPagerTemplatePageField>
                        <PagerTemplate>
                            <div style="float: right">
                                <b>Total Number of Assets Found:
                                    <asp:Label runat="server" ID="TotalItemsLabel" Text="<%# Container.Owner.TotalRowCount%>" />
                                </b>
                            </div>
                        </PagerTemplate>
                    </telerik:RadDataPagerTemplatePageField>
                </Fields>
            </telerik:RadDataPager>
            <asp:PlaceHolder id="PlaceHolder1" runat="server" />
        </div>
    </LayoutTemplate>
    <ItemTemplate>
        <div style="float: left; width: 200px">
                <div class="myClass" style="border: 0px; white-space: normal; margin: 5px 5px 5px 5px; padding: 2px 2px 2px 2px; background: #eeeeee; text-align: center; width: 190px;">
                    <asp:HyperLink ID="HyperLink1" runat="server">
                        <telerik:RadBinaryImage ID="RadBinaryImage1" runat="server" AutoAdjustImageControlSize="False"
                            CssClass="myClass" ImageUrl='<%# Eval("thumbUrl") %>' ResizeMode="Fit" AlternateText="Click to view preview"
                            ToolTip="Click to view preview" Width="150px" Height="150px" />
                    </asp:HyperLink><br />
                <asp:CheckBox ID="chkImage" runat="server" style="float: left;"/><small><asp:HyperLink ID="lnkAsset1" runat="server" Visible="false" style="float: left;" >
                                    </asp:HyperLink><asp:HyperLink ID="lnkAsset2" runat="server" style="float: left;" Visible="false" >
                                    </asp:HyperLink><asp:HyperLink ID="lnkAsset3" runat="server" style="float: left;" >
                                    </asp:HyperLink></small>
                <asp:HiddenField ID="hiddenAssetId" Value='<%# Eval("id") %>' runat="server" />
            </div>
        </div>
    </ItemTemplate>
    <EmptyDataTemplate>
        No Assets Found
    </EmptyDataTemplate>
</telerik:RadListView>
Richard
Top achievements
Rank 1
 answered on 10 Jan 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?