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



I want to display

Pivot Data

with RadGrid control , i have gone through the link
http://demos.telerik.com/aspnet-ajax/grid/examples/programming/pivot/defaultcs.aspx

it helps me but i want some modification

like i dont want to bind grid with automatically generated columns
bcz i need some image fileds and hyperlink fileds and gridtemplate columns
so I want to work with atugeneratedcolumns set to false
and manually adding labels to itemtemplates.

Any help really appreciated (Need help with code)

Thanks
Radoslav
Telerik team
 answered on 15 Jul 2013
1 answer
174 views
HI,
 I am using Rad Editor in my project that I have created with VS2010.   As per my project requirement, I have a html table in radeditor and i want  no one can change the content of this table in design mode as well as in preview mode. 
I have tried to unselect to table on OnClientSelectionChange event of rad editor. But it work only in IE not in other browsers. please help me.
i have use this code.
<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="demo.aspx.vb" Inherits="ComplianceTable.demo" %>

<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<!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:RadScriptBlock ID="scriptBlock" runat="server">
        <script type="text/javascript">
            function OnClientSelectionChange(editor, args) {
                editor.getSelection()._window.document.selection.empty();
            } 
        </script>
    </telerik:RadScriptBlock>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <telerik:RadScriptManager ID="ScriptManager1" runat="server" />
        <telerik:RadEditor runat="server" ID="RadEditor11" OnClientSelectionChange="OnClientSelectionChange"
            AllowScripts="true">
            <Content>
              
   <table style="width: 700px; margin-top: 20px; margin-left: 15px; border-top-color: rgb(37, 160, 218);
            border-right-color: rgb(37, 160, 218); border-top-width: 1px; border-right-width: 1px;
            border-top-style: solid; border-right-style: solid; float: left;" id="Table1"
            cellspacing="0" cellpadding="0">
            <tbody>
                <tr style="background-color: rgb(205, 242, 242);" >
                    <th>
                        <div contenteditable="true">
                            <b>Header0</b></div>
                    </th>
                    <th>
                        <div contenteditable="true">
                            <b>header1</b></div>
                    </th>
                    <th>
                        <div contenteditable="true">
                            <b>Header2</b></div>
                    </th>
                </tr>
                <tr>
                    <td >
                        <div contenteditable="true">
cell0
                        </div>
                    </td>
                    <td  >
                        <a contenteditable="true"  onclick="return true;" href="">http:// </a>
                    </td>
                    <td  >
                        <div contenteditable="true">
                          cell1</div>
                    </td>
                </tr>
                <tr >
                    <td >
                        <div contenteditable="true">
                         cell0
                       </div>
                    </td>
                    <td >
                        <a contenteditable="true" href="">http:// </a>
                    </td>
                    <td >
                        <div contenteditable="true">
                           cell1
                        </div>
                    </td>
                </tr>
            </tbody>
        </table>
            </Content>
        </telerik:RadEditor>
    </div>
    </form>
</body>
</html>


Ianko
Telerik team
 answered on 15 Jul 2013
0 answers
196 views
Hi,

We are looking to use Imperva as a CDN and in testing, it is flagging up XSS issues with codetemplates.xml

Looking in Codetemplates.XML, there are references sucha as {0}, {1} etc  which are triggering the Imperva XSS attack analysis.


Is there anything we can do to circumvent this ?  (using 2010 Rad Ajax)

Is there a risk in removing or commenting out the {0} etc?

Regards
Paul

Paul Buxton
Top achievements
Rank 1
 asked on 15 Jul 2013
1 answer
54 views

Hello,

I'm using telerik Controls, I'm getting this error on vs2010 debugger on any ajax request (if I publish the webapplication to my web server it works normaly)

JavaScript runtime error: Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed.

Princy
Top achievements
Rank 2
 answered on 15 Jul 2013
1 answer
116 views
Hi

Using client scripting, how can I set the splitter and pane height same as that of content element?

Thanks
Ben
Princy
Top achievements
Rank 2
 answered on 15 Jul 2013
2 answers
78 views
Hi

I have few custom server controls on my page and these controls are inherited from the traditional asp controls and I tried to decorate them using the form decorator but its not working. what can be this issue behind this? OR Is there anything like it is not applicable to controls other than Telerik?

Any suggestions
Dona
Bozhidar
Telerik team
 answered on 15 Jul 2013
1 answer
224 views
Hi All,

Does anyone created a radgrid with checkbox on specific group and once clicked, all items on the last group will be selected within that group?

Our current problem is, we have RadGrid and we need to add a checkbox on 1st group, and once checked all item from 3rd group should be selected/checked.

I included sample snapshot to be more clear.

Thanks!
Eyup
Telerik team
 answered on 15 Jul 2013
1 answer
36.5K+ views
I created an Org chart with programmatically-bound data, such as outlined in this demo: http://demos.telerik.com/aspnet-ajax/orgchart/examples/populatingwithdata/programaticdatabinding/defaultcs.aspx

Is there any way to make it so that the text inside the org chart node is a link (or the node itself is a link, either way is fine) so that when the user clicks on the text or the node he or she is redirected to a new page?

Any help, tips, input is greatly appreciated. :)

William
Peter Filipov
Telerik team
 answered on 15 Jul 2013
2 answers
139 views
I am currently getting the html of a ascx control through a jquery ajax request.  I set this response to a node through javascript using 
node.set_clientTemplate(t);
node.bindTemplate();

Currently the template only returns a radnumerictextbox, however it doesn't work properly.  It shows up on the screen but allows alpha characters and the EmptyMessage text doesn't disappear when the control has focus.  These are just some of the items I have noticed at least.   I can make the same request for the ascx template and put the result to a div and the control behaves perfectly so I know that side of the process is working fine.

Any help would be appreciated.
Kate
Telerik team
 answered on 15 Jul 2013
2 answers
182 views
I am trying to implement model binding on RadGrid using SelectMethod, UpdateMethod, DeleteMethod and InsertMethod. (I have done this successfully in standard edit mode.) However, having problems when EditMode="Batch". Grid displays as expected, retrieving data through SelectMethod. However, when I try to save changes to modified rows, neither the UpdateMethod or DeleteMethod are called.

I have not been able to find a data model binding example that implements Batch Edit.

Here is my code. Is this supported? And if so, what am I missing? Thanks.


<telerik:RadAjaxPanel runat="server" ID="RadAjaxPanel1">
            <telerik:RadGrid ID="RadGrid1" GridLines="None" runat="server" AllowAutomaticDeletes="True" MasterTableView-AllowAutomaticUpdates="true"
                AllowAutomaticInserts="false" PageSize="10" Skin="Default" OnItemDeleted="RadGrid1_ItemDeleted" 
                OnItemUpdated="RadGrid1_ItemUpdated" AllowAutomaticUpdates="True" AllowPaging="True"
                AutoGenerateColumns="False" Width="750px" OnBatchEditCommand="RadGrid1_BatchEditCommand" >
                <MasterTableView CommandItemDisplay="TopAndBottom" DataKeyNames="BlockLeaderId" SelectMethod="GetBlockLeaders" DeleteMethod="DeleteBlockLeader" UpdateMethod="UpdateBlockLeader"
                    ItemType="KHOP.Model.BlockLeader" HorizontalAlign="NotSet" EditMode="Batch" AutoGenerateColumns="False">
                    <BatchEditingSettings EditType="Cell" />
                    <CommandItemSettings ShowAddNewRecordButton="false" />
                    <Columns>
                        <telerik:GridBoundColumn DataField="BlockLeaderId" HeaderStyle-Width="80px" HeaderText="Id" UniqueName="BlockLeaderId" ReadOnly="true">
                            <ColumnValidationSettings>
                                <ModelErrorMessage Text=""></ModelErrorMessage>
                            </ColumnValidationSettings>
                        </telerik:GridBoundColumn>
                        <telerik:GridTemplateColumn HeaderText="Date" HeaderStyle-Width="130px" UniqueName="BlockDate" DataField="BlockDate" ReadOnly="true">
                            <ItemTemplate>
                                <%# Item.Block.Watch.PeriodDate.EventDate.ToShortDateString() %>
                            </ItemTemplate>
                        </telerik:GridTemplateColumn>
                        <telerik:GridTemplateColumn HeaderText="Day of Week" HeaderStyle-Width="180px" UniqueName="BlockDay" DataField="BlockDay" ReadOnly="true">
                            <ItemTemplate>
                                <%# Item.Block.BlockHour.DayOfWeek.ToString() %>
                            </ItemTemplate>
                        </telerik:GridTemplateColumn>
                        <telerik:GridTemplateColumn HeaderText="Block Hours" HeaderStyle-Width="180px" UniqueName="BlockHours" DataField="BlockHours" ReadOnly="true">
                            <ItemTemplate>
                                <%# Item.Block.BlockHour.ShortName %>
                            </ItemTemplate>
                        </telerik:GridTemplateColumn>
                        <telerik:GridTemplateColumn HeaderText="Leader" HeaderStyle-Width="180px" UniqueName="LeaderId" DataField="LeaderId">
                            <ItemTemplate>
                                <%# Item.Leader.FirstName + " " + Item.Leader.LastName %>
                            </ItemTemplate>
                            <EditItemTemplate>
                                <telerik:RadDropDownList runat="server" ID="LeaderIDDropDown" DataValueField="LeaderId"
                                    DataTextField="FullName" SelectMethod="GetActiveLeaders">
                                </telerik:RadDropDownList>
                            </EditItemTemplate>
                        </telerik:GridTemplateColumn>
                        <telerik:GridTemplateColumn HeaderText="Leader Type" HeaderStyle-Width="180px" UniqueName="LeaderType" DataField="LeaderTpe">
                            <ItemTemplate>
                                <%# Eval("LeaderType") %>
                            </ItemTemplate>
                            <EditItemTemplate>
                                <telerik:RadDropDownList runat="server" ID="LeaderTypeIdDropDown" DataValueField="LeaderTypeId"
                                    DataTextField="LeaderType" SelectMethod="GetLeaderTypes">
                                </telerik:RadDropDownList>
                            </EditItemTemplate>
                        </telerik:GridTemplateColumn>
                        <telerik:GridButtonColumn ConfirmText="Delete this block leader?" ConfirmDialogType="RadWindow"
                            ConfirmTitle="Delete" HeaderText="Delete" HeaderStyle-Width="50px" ButtonType="ImageButton"
                            CommandName="Delete" Text="Delete" UniqueName="DeleteColumn">
                        </telerik:GridButtonColumn>
                    </Columns>
                </MasterTableView>
            </telerik:RadGrid>
            <telerik:GridTextBoxColumnEditor runat="server" ID="TextEditor">
                <TextBoxStyle Width="120px" />
            </telerik:GridTextBoxColumnEditor>
        </telerik:RadAjaxPanel>
Radoslav
Telerik team
 answered on 15 Jul 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?