Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
119 views
Does anyone know how to do this? I looked through the docs and forums and could only find information on selecting the "first" item. The reason I need this is I have a certain item selected by handling the onclick event of the item within the <ItemTemplate>. However, after a postback I need to be able to reselect the item again. Any help or advise would be greatly appreciated! Thanks!
Rosen
Telerik team
 answered on 20 Jul 2010
1 answer
126 views
How do I get the count of rows in a grid programatically..
Also consider getting the count of items programatically for a detail grid with name set to "Detail"
Tsvetina
Telerik team
 answered on 20 Jul 2010
1 answer
105 views
Should be a really simple thing, and I've searched, but didn't come up with much. 

Just need to call the updated method on the AdvancedForm from another button.  I've tried:

Owner.UpdateAppointment(Appointment)

But this didn't seem to do anything good or bad.

Thanks
Peter
Telerik team
 answered on 20 Jul 2010
2 answers
252 views
I'm trying to have an application open a radWindow and then print the content inside it. For what I saw it looks like I need to acces the frame element of the radWindow to acheive this. My problem is when I use the method get_contentFrame() it always return null. I tought that I might be beacause the radWindow was not loaded so I tried to call the method from a button inside it but still have the return value null.

I have reproduce the problem a small application, so it is not a problem in my main project. Here is the code :
<%@ Page Language="VB" AutoEventWireup="false" CodeBehind="Default.aspx.vb" Inherits="RadControlsWebApp4._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>
    <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.
 
        function btn_onclick() {
            var win = $find("<%= wndPrint.ClientID %>");
            win.set_modal(true);
            win.show();
            var frame = win.get_contentFrame();
            alert(frame);
        }
 
        function Button2_onclick() {
            var win = $find("<%= wndPrint.ClientID %>");
            var frame = win.get_contentFrame();
            alert(frame);
        }
 
    </script>
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
    </telerik:RadAjaxManager>
  
    <telerik:RadSkinManager ID="RadSkinManager1" Runat="server" Skin="Office2007">
    </telerik:RadSkinManager>
    <div>
          <input id="btn" type="button" value="Print" onclick="return btn_onclick()" />
          <telerik:RadWindow ID="wndPrint" runat="server" Skin="Office2007">
            <ContentTemplate>
                <p> fvejsh ksad ksla gjkfhsdajkg hfskjd ahgkfhdasgkl fd</p><hr />
                <p>fdsi fdsjafkh ajkgfda ghfdkj shgjkfdshg fdkjsg hd</p>
                <input id="Button2" type="button" value="Print" onclick="return Button2_onclick()"/>
            </ContentTemplate>
        </telerik:RadWindow>
    </div>
     
    </form>
    </body>
</html>

Thank you for your time,
Sébastien
Sébastien
Top achievements
Rank 1
 answered on 20 Jul 2010
3 answers
357 views
Hi telerik team member,
I have been searching trought forum and over web for a example with no result. So here is my problem.
After refreshing page all the nodes in RadTreeview are collapsed, I need to manage treeview that selected node every refresh of page or postback is expanded in depth (for Client-side).
Thanks for any advice
Shinu
Top achievements
Rank 2
 answered on 20 Jul 2010
1 answer
259 views
Hello,

I have a rad grid with grouping.  My group totals show but I cannot get the FooterText for the group and the Footer style for the group. 


<

 

 

telerik:RadGrid ShowGroupPanel="true" AllowSorting="true" AutoGenerateColumns="false" ShowFooter="true" ID="gridPayCode" runat="server"

 

 

 

onneeddatasource="gridPayCode_NeedDataSource">

 

 

 

<MasterTableView ShowGroupFooter="true">

 

 

 

<Columns>

 

 

 

 

<telerik:GridBoundColumn DataField="facility_site_num" HeaderText="Site#"></telerik:GridBoundColumn>

 

 

 

<telerik:GridBoundColumn FooterText="Total:" FooterStyle-Font-Bold="true" FooterStyle-HorizontalAlign="Right" DataField="FacilityName" HeaderText="Facility"></telerik:GridBoundColumn>

 

 

 

<telerik:GridBoundColumn Aggregate="Sum" FooterStyle-HorizontalAlign="Right" FooterStyle-Font-Bold="true" DataFormatString="{0:c}" HeaderStyle-HorizontalAlign="Right" ItemStyle-HorizontalAlign="Right" DataField="PayAmount" HeaderText="Amount"/>

 

 

 

 

</Columns>

 

 

 

<GroupByExpressions>

 

 

 

<telerik:GridGroupByExpression>

 

 

 

<GroupByFields>

 

 

 

<telerik:GridGroupByField FieldName="PayCode" />

 

 

 

</GroupByFields>

 

 

 

<SelectFields>

 

 

 

<telerik:GridGroupByField FieldName="PayCode" HeaderText="Pay Code" />

 

<%

 

--<telerik:GridGroupByField Aggregate="Sum" FormatString="{0:c}" FieldName="PayAmount" HeaderText="Total" />--%>

 

 

 

</SelectFields>

 

 

 

</telerik:GridGroupByExpression>

 

 

 

</GroupByExpressions>

 

 

 

 

</MasterTableView>

 

</

 

 

telerik:RadGrid>

 

Mira
Telerik team
 answered on 20 Jul 2010
5 answers
118 views
I am getting this error (running site using VS2010 developer web service).  How do I prevent this?

  <Issues>
    <ErrorCode>The remote server returned an error: (500) Internal Server Error.</ErrorCode>
    <LineNumber>1</LineNumber>
    <LinePosition>0</LinePosition>
    <Url>/Telerik.Web.UI.WebResource.axd?compress=1&amp;_TSM_CombinedScripts_=%3b%3bTelerik.Web.UI%2c+Version%3d2010.1.415.40%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-CA%3a1c53f111-a7b9-466f-ae26-3bd14c91dc5a%3a9e1572d6%3a3f3482cd</Url>
    <Index>-1</Index>
    <Id>0</Id>
    <Visible>true</Visible>
    <IsValidationIssue>true</IsValidationIssue>
    <Message>The remote server returned an error: (500) Internal Server Error.</Message>
  </Issues>
  <Issues>
T. Tsonev
Telerik team
 answered on 20 Jul 2010
2 answers
108 views
Howdy,

I have a custom button on my MOSSRadEditor which works great however I now need to change the button appearance. Ideally I'd like the button to say "Select" but I can't find how to specify text. All examples show using an image. So I went ahead and used and image and the button won't stretch with the image! I see "Se" in the button, can I stretch it out to fit the entire image? I've tried

<

 

style type="text/css">

 

.reTool

 

.SelectSome

 

{

 

background-image: url(select.gif);

 

 

width:200px

 

}

</

 

style>

Thanks,

 

Delphi
Top achievements
Rank 1
 answered on 20 Jul 2010
3 answers
196 views

Hi,

I have a RadBinaryImage control inside a usercontrol and when the page loads, the image in the control appears "broken". This RadBinaryImage control is inside a usercontrol, which is in turn inside a RadGrid. I have the RadBinaryImage control in another page and it works fine. The only difference is that in the other page I use it in a RadGrid and not inside a usercontrol that is inside a RadGrid. Below are the code snippets.

 

<telerik:RadGrid ID="RadGridHardware" runat="server" AllowFilteringByColumn="True" AllowPaging="True" AllowSorting="True" DataSourceID="LdsHardware" OnItemCommand="RadGridHardware_ItemCommand" AutoGenerateColumns="False" OnItemCreated="RadGridHardware_ItemCreated" OnPreRender="RadGridHardware_PreRender" OnItemDataBound="RadGridHardware_ItemDataBound"> 
<MasterTableView DataSourceID="LdsHardware" DataKeyNames="ItemUID">  
    <EditFormSettings EditFormType="WebUserControl" UserControlName="HardwareDetails.ascx"></EditFormSettings>

    </MasterTableView>  
</telerik:RadGrid> 

 

 

 

The snippet for the HardwareDetails user control wher the RadBinaryImage resides is below:       

 

 

 

 

<tr>

<td style="width: 15%">  

<label> Image: </label>  

</td>

<td style="width: 85%">

<telerik:RadBinaryImage runat="server" ID="RadBinaryImageView" DataValue='<%# Eval("ImageContent") %>' AutoAdjustImageControlSize="false" Width="125px" Height="125px" ToolTip="" AlternateText="" />

</td>

</tr>

 

 

 

Please help. Thanks.

Marlon

 

 

 

 

Rosen
Telerik team
 answered on 20 Jul 2010
2 answers
133 views
Hi Sir

I am using telerik q1 2010 Trial Version Now.

Now i want to create look like Ajax Modal Popup extender.

Bur i can't find any control in telerik.

Please Suggest me how to i use that ?

- thanks
Kishor Dalwadi
Top achievements
Rank 2
 answered on 20 Jul 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?