Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
211 views
Hi,

I have a radgrid which is bound to a datatable. I want to assign navigation urls to values of columns in that radgrid. Is there anyway to perform this logic at runtime.

I am able to do this at design time like this:

 <telerik:GridTemplateColumn HeaderText="Account Name" UniqueName="Account" SortExpression="Account" ItemStyle-Width="100px" >
                                        <ItemTemplate>
                                        <a href="accountview.aspx?id=<%# Eval("AccountID") %>"><%# Eval("AccountName")%></a>
                                        </ItemTemplate>
                                        <ItemStyle Width="100px" Font-Underline="true"></ItemStyle>
                                    </telerik:GridTemplateColumn>



But my issue is, i am generating these columns at runtime. so, I need to assign urls at runtime only. Please let me know any way to do this at runtime.

Thanks,
Mahesh
Shinu
Top achievements
Rank 2
 answered on 28 Jul 2009
2 answers
287 views
I have tried to use
var inputElement = $get('<%=RadInput1.ClientID%>' + '_text');

or

var dateInput = $find("<%= RadDateInput1.ClientID %>");


to get the radtextbox object ,but it's not worked. my javascript script must be put in a page head , then how can I get the object ?

thanks!
winson qiu
Top achievements
Rank 1
 answered on 28 Jul 2009
1 answer
142 views
Hi,

     I need to do a alphanumeric validation for my columns in the grid. I will assign a datatable as the datasource to my grid.
    because the columns are dynamic for me. In general i have to do a alpha numeric validation for them.
   Could any one of you suggest.

Thanks & Regards,
Satya.
Mira
Telerik team
 answered on 28 Jul 2009
1 answer
134 views
Hi,

We're investigation the possibilities of the RadEditor for our MOSS WCM system.

We've installed the new version of the RadEditor for SharePoint (5.5.0.0). When activated the features the editor replaces the default MOSS rich html editor. When using this scenario the reuseable content works fine and gets updated when the content item is updated.

When using the RadEditor webpart (in a webpart zone) the reuseable content doesn't work. Inserting reuseable content works, but when changing the reuaseable item the content of the webpart doesn't update.

We've also modified a page layout so the default MOSS html control is replaced by a RadEditor control. This results in the same behaviour as the webpart, reuseable content can be selected but will not update...

Conclusion is that reuseable content works in a certain scenario, but not all :-(

Is this known, and is there a solution for this? The webpart solution is really a requirement for us.

Regards,

Michel Smit
Eneco IT Solutions
Stanimir
Telerik team
 answered on 28 Jul 2009
1 answer
107 views
It's not as simple as that, but basically I have just installed RadControls for ASP.NET AJAX Q2 2009 to fix an issue I was having while trying to view the design of a page with RadControls in it.
I was getting this error:

Failed to create designer for 'Telerik.Web.UI.RadTextBox, Telerik.Web.UI, Version=2009.1.512.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4'

I read in another topic that I just need to add a reference to the Telerik.Web.Design but the issue was I didnt have the version it is asking for there, so I installed the newer version hoping that if I put both DLL's into my bin directory then everything would be fine. But it isn't.

I assume there is a step I am missing somewhere. Do I have to make some changes in the web.config?

Any help would be appreciated.

I can paste my web.config here if you need
Jaymie
Top achievements
Rank 1
 answered on 28 Jul 2009
1 answer
111 views
This is a conceptual question...

I'm doing server-side advanced binding. My data source is stored in session state. The app allows a user to drill in on a particular row of the grid, which redirects to another page showing tons of detail not available in the grid. The detail page has previous and next buttons which allow the user to cursor through the rows that were displayed in the grid.

This works fine unless the user has resorted the grid. Drilling on the first record in the resorted grid, for example, gets me the original first record in the data source, not the data from the first row. (That is to say, DataSetIndex 0 no longer represents the same data as row 0 in the original data source.) It seems this is because the grid is using its own working copy of the data source I originally assigned. I could, of course, listen for sorting changes in the grid and resort the original data source along with what's happening in the grid, but that is a very inelegant solution.

What's a better way to do this?
Yavor
Telerik team
 answered on 28 Jul 2009
6 answers
235 views
After updating to Q2 - I am now receiving this javascript error on the RadUpload control.  Ideas?  Thanks.
T. Tsonev
Telerik team
 answered on 28 Jul 2009
1 answer
34 views
after telerik update, it is now showing two progress animations on ajax panels, just want the progress bar to show
Daniel
Telerik team
 answered on 28 Jul 2009
1 answer
141 views
Hi

I was just wondering if it is possible to remove the vertical scrollbar that is displayed in month view, as displayed in the screenshot below?

http://i970.photobucket.com/albums/ae187/paulehn/calscrollbar.jpg
T. Tsonev
Telerik team
 answered on 28 Jul 2009
3 answers
104 views
Hello all,
    I have done an example like the demo"export to PDF"http://demos.telerik.com/aspnet-ajax/grid/examples/generalfeatures/pdfexport/defaultcs.aspx
when i click my example,it download a RadGridExport.pdf,but when i open the RadGridExport.pdf,it can't open and tell me "打开本文档时发生错误。文件已损坏并且无法修复"(means that it damaged and can't repair)
when i open the demo's RadGridExport.pdf , it's all right.
I think that it is my code wrong, I don't know how to do.

Please suggest. thank you!
my code:
</head>
<body>
    <form id="form1" runat="server">
    <div>
       <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" OnAjaxRequest="RadAjaxManager1_AjaxRequest">
                <AjaxSettings>
                    <telerik:AjaxSetting AjaxControlID="RadAjaxManager1">
                        <UpdatedControls>
                            <telerik:AjaxUpdatedControl ControlID="RadGrid1" />
                        </UpdatedControls>
                    </telerik:AjaxSetting>
                    <telerik:AjaxSetting AjaxControlID="RadGrid1">
                        <UpdatedControls>
                            <telerik:AjaxUpdatedControl ControlID="RadGrid1" />
                        </UpdatedControls>
                    </telerik:AjaxSetting>
                </AjaxSettings>
            </telerik:RadAjaxManager>
    </div>
    <asp:ScriptManager ID="ScriptManager1" runat="server" />
    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Skin="Black" />
        <telerik:RadAjaxManager ID="RadAjaxManager2" runat="server" DefaultLoadingPanelID="RadAjaxLoadingPanel1"
            ClientEvents-OnRequestStart="requestStart">
            <AjaxSettings>
                <telerik:AjaxSetting AjaxControlID="RadGrid1">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="RadGrid1" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
            </AjaxSettings>
        </telerik:RadAjaxManager>
        <telerik:RadGrid ID="RadGrid1" runat="server" GridLines="None"
            AllowSorting="true" Skin="Black" Width="745px" AllowPaging="True" OnItemCreated="RadGrid1_ItemCreated"
             OnNeedDataSource="RadGrid1_NeedDataSource"
            AutoGenerateColumns="False">
            <ExportSettings IgnorePaging="true" OpenInNewWindow="true">
                <Pdf PageHeight="297mm" PageWidth="210mm" PageTitle="SushiBar menu" />
            </ExportSettings>
            <MasterTableView CommandItemDisplay="Top"  DataKeyNames="PermissionsId"
                PageSize="5">
                <PagerStyle Mode="NumericPages" />
                <CommandItemTemplate>
<asp:Button ID="DownloadPDF" runat="server" Width="100%" CommandName="ExportToPdf"
CssClass="pdfButton" />
<asp:Image ID="Image1" runat="server" ImageUrl="Image/Backgr.png" AlternateText="Sushi Bar"
Width="100%" />
                </CommandItemTemplate>
                <Columns>
                    <telerik:GridBoundColumn DataField="PermissionsId" DataType="System.Int32" ReadOnly="True"
                        SortExpression="PermissionsId" UniqueName="PermissionsId" HeaderText="PermissionsId">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="PermissionsName" HeaderText="PermissionsName" SortExpression="PermissionsName"
                        UniqueName="PermissionsName">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="PermissionsNo" HeaderText="PermissionsNo" SortExpression="PermissionsNo"
                        UniqueName="PermissionsNo">
                    </telerik:GridBoundColumn>
                   
                </Columns>
                <HeaderStyle Font-Names="Arial Unicode MS" Font-Size="16px" HorizontalAlign="Center" />
            </MasterTableView>
        </telerik:RadGrid>
       
    </form>
</body>
</html>
Daniel
Telerik team
 answered on 28 Jul 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?