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

I am using DataSet as DataSource for RadGrid. I can apply DataSource either through NeedDataSource or through directly datasource property of radgrid. I could not use DataSource control for binding. I went through all examples but could not find one which does not use DataSource control or any example with DataSet.

Edit Scenario:
Records Insert / Update needs to be in-place and all rows are editable from start, User have option of clicking "Save" button to save all changes.

Insert Scenario:
For insert operation, when user clicks "Add New" button. New row will be added at bottom and user can add new record in that. Then clicking on "Save" button will save new record along with any changes made in existing records.

Current Issues:
# DataSource is not retained after post-back from "Save" or "Add New" button and RadGrids shows empty. Any control with in RadGrid, like rows and columns which are rendered in page are also empty.
# For Insert Scenario I tried adding empty row in DataTable and then did binding. But above issue occurs and not data is retained from end user.

Mentioned scenario should be well with-in the capabilities of RadGrid control. Please advise on implementation details.

Andrey
Telerik team
 answered on 08 Nov 2012
1 answer
111 views

Hello,

I have a RadGrid with 4 template columns.
1. ASP:TextBox
2. RadEditor
3. ASP:LinkButton (ADD)
4. ASP:LinkButton. (DELETE)

When we click on "ADD" button we are adding a new row next to the selected row. Same way we are deleting the selected row on click of "DELETE" button. This we are doing in postback by rebinding the RadGrid. We need to avoid the postback and Add/Delete rows dynamically in javascript. Please provide the solution. Please find herewith the sample code that we are doing in code behind.

FYI: we are using net framework 4.0 and the Telerik.Web.UI.dll version is v. 2011.2.915.40

I am not able to add the code here.

Vasil
Telerik team
 answered on 08 Nov 2012
6 answers
243 views
Hi all

got something funny going on.
Trying to hide the Anchor tab in the LinkManager dialog as per http://www.telerik.com/help/aspnet-ajax/disablingtabs.html

If I put the Visible="false" attribute in the tab does not show but when I click the email tab I get the Anchor fieldset!?

Tried with a fresh file and just made that one change and always does it. What am I doing wrong?

Matt

Q3 2008
FF 3.08 and IE6
Roberto
Top achievements
Rank 2
 answered on 08 Nov 2012
9 answers
316 views
Hi,

I customized the paragraphs dropdown using the config file.
Everything works fine until I try to add paragraphs with classes or "unusual" paragraphs like <code>.

For example I added
<paragraph name="&lt;code>Code&lt;/code>" value="&lt;code>" /> 
<paragraph name="&lt;p class='tipp'>Tipp&lt;&lt;/p>" value="&lt;p class='tipp'>" /> 
to the config file.

The result is that the two options are shown in the drop down box, but they are not applied to the paragraphs or selection when I select one of them.

According to the docs, it should work this way.

By the way: The documentation (http://www.telerik.com/help/aspnet/editor/paragraphstyles.html) regarding this is buggy. The example code for the ToolsFile.xml breaks the editor.

Regards

Martin
Stanimir
Telerik team
 answered on 08 Nov 2012
1 answer
108 views
X Axis's value type  and Y Axis's value type are number type.X - axis points are -2 , -1, 0, 1,2.Y-axis points are from -10 to 0.
How to set X Axis and Y Axis crossing 0 point?
Yavor
Telerik team
 answered on 08 Nov 2012
17 answers
163 views
Hi Telerik.

I have a standard Sharepoint 2010 environment using Telerik Radeditor WCM v 6.1.7.0.

1) Open hyperlink manager and create an anchor HøHø
2) Create a hyperlink using hyperlink manager and use the "Existing Anchor" dropdown and select HøHø.
3) Publish the page and the anchor link does not work.

It seems as if the anchor-link is encoded to the utf-8 version <a href="#H%c3%b8H%c3%b8">, but the anchor itself remains like <a name="HøHø". As effect, the hyperlink is not working in IE but works fine in Firefox.    

In the ConfigFile.xml I have ContentFilters=ConvertToXhtml, ConvertCharactersToEntities

Before the content is published, the anchor and the link is written with html entities as H&oslash; In RadEditorGetStorageHtml in SPEditorTools.js the value of editor.get_html(true) is also the correct using html entities.

Please advice.

Best regards
Klaus
Stanimir
Telerik team
 answered on 08 Nov 2012
1 answer
208 views
Hi,
I am trying to use the show group panel, allowing a user to drag the column names into it, however it keeps throwing an error:

"Error: Sys.WebForms.PageRequestManagerServerErrorException: Invalid group by expression: 'Group By' clause missing"

However if I define an item in the configuration manager it works, properly, So why can't I drag and Drop? :(
        <telerik:RadGrid ID="RadGrid1" runat="server" AllowFilteringByColumn="True" AllowPaging="True"
            AllowSorting="True" AutoGenerateColumns="False" EnableAJAX="True" GridLines="None"
            OnRowDataBound="NamesGridView_RowDataBound" PageSize="14"
            DataKeyNames="OrderId" ShowGroupPanel="True" CellSpacing="0">
            <GroupingSettings ShowUnGroupButton="True" />
            <ClientSettings AllowDragToGroup="True" AllowColumnsReorder="True"
                ReorderColumnsOnClient="True">
<Selecting AllowRowSelect="True"></Selecting>
 
                <ClientEvents OnRowMouseOver="RowMouseOver"></ClientEvents>
            </ClientSettings>
            <MasterTableView CommandItemDisplay="Top" ClientDataKeyNames="OrderID, Text" DataKeyNames="OrderID">
<CommandItemSettings ExportToPdfText="Export to PDF"></CommandItemSettings>
 
                <RowIndicatorColumn Visible="False">
                    <HeaderStyle Width="20px" />
                </RowIndicatorColumn>
                <ExpandCollapseColumn Resizable="False" Visible="False">
                    <HeaderStyle Width="20px" />
                </ExpandCollapseColumn>
                <Columns>
                    <telerik:GridTemplateColumn AllowFiltering="false" UniqueName="TemplateEditColumn">
                        <ItemTemplate>
                            <asp:HyperLink ID="EditLink" runat="server" Text="Edit"></asp:HyperLink>
                        </ItemTemplate>
                        <FooterStyle Width="32px" />
                        <HeaderStyle Width="32px" />
                        <ItemStyle Width="32px" />
                    </telerik:GridTemplateColumn>
                    <telerik:GridBoundColumn DataField="OrderId" GroupByExpression="OrderID" HeaderText="Order Ref"
                        SortExpression="OrderId" UniqueName="OrderId" Visible="False">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="OrderNum" GroupByExpression="OrderNum" HeaderText="Order Number"
                        SortExpression="OrderNum" UniqueName="OrderNum" Visible="False">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="ProjectRef" HeaderText="Project" UniqueName="ProjectRef"
                        SortExpression="ProjectRef" GroupByExpression="ProjectRef">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="Location" HeaderText="Location" UniqueName="Location"
                        SortExpression="Location" GroupByExpression="Location">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="CostCentre" HeaderText="Cost Centre" UniqueName="CostCentre"
                        SortExpression="CostCentre" GroupByExpression="CostCentre">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="AccountCode" HeaderText="Account Code" UniqueName="AccountCode"
                        SortExpression="AccountCode" GroupByExpression="AccountCode">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="activityRef" HeaderText="Order Activity" UniqueName="activityRef"
                        SortExpression="activityRef" GroupByExpression="activityRef">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="CategoryRef" HeaderText="Type of Work" UniqueName="CategoryRef"
                        SortExpression="CategoryRef" GroupByExpression="CategoryRef">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="Order Date" HeaderText="Order Date" UniqueName="OrderDate"
                        SortExpression="Order Date" GroupByExpression="Order Date">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="Plan Date" HeaderText="Target Complete" UniqueName="TargetComplete"
                        SortExpression="Plan Date" GroupByExpression="Plan Date">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="Actual Date" HeaderText="Actual Complete" UniqueName="ActualComplete"
                        SortExpression="Actual Date" GroupByExpression="Actual Date">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="Amount" HeaderText="Estimated Cost" UniqueName="EstimatedCost"
                        SortExpression="Amount" GroupByExpression="Amount">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="ServiceProvider" HeaderText="Service Provider"
                        UniqueName="ServiceProvider" SortExpression="ServiceProvider" GroupByExpression="ServiceProvider"
                        Visible="false">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="Text" HeaderText="Text" UniqueName="Text" Display="false">
                    </telerik:GridBoundColumn>
                </Columns>
 
<EditFormSettings>
<EditColumn FilterControlAltText="Filter EditCommandColumn column"></EditColumn>
</EditFormSettings>
                <CommandItemTemplate>
                    <table style="width: 100%;">
                        <tr>
                            <td style="width: 50%;">
                                <a href="#" onclick="return ShowInsertForm();">
                                    <img alt="Insert" border="0" height="20" src="App_Images/AddRecord.gif" width="20" />
                                    Add New Record</a>
                            </td>
                            <td align="right" style="width: 50%">
                                <asp:CheckBox ID="chkArchived" runat="server" AutoPostBack="True" OnCheckedChanged="chkShowArchived_CheckChanged"
                                    Text="Show Archived" Width="163px" />
                            </td>
                            <td align="right" style="width: 50%">
                                <asp:CheckBox ID="chkComplete" runat="server" AutoPostBack="True" OnCheckedChanged="chkShowComplete_CheckChanged"
                                    Text="Show Completed" Width="163px" />
                            </td>
                        </tr>
                    </table>
                </CommandItemTemplate>
            </MasterTableView>
            <GroupPanel Visible="True">
            </GroupPanel>
                        <ClientSettings AllowDragToGroup="True" Selecting-AllowRowSelect="true">
            </ClientSettings>
            <PagerStyle Mode="NextPrevNumericAndAdvanced" />
 
<FilterMenu EnableImageSprites="False"></FilterMenu>
        </telerik:RadGrid>
        <telerik:RadWindowManager ID="RadWindowManager1" runat="server" Animation="None"
            Behaviors="Default" InitialBehaviors="None" Left="" Top="" ReloadOnShow="True"
            VisibleStatusbar="false">
        </telerik:RadWindowManager>
    </div>
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="RadGrid1">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadGrid1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="RadAjaxManager1">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadSlider1" />
                    <telerik:AjaxUpdatedControl ControlID="RadGrid1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>
    </form>
</body>
</html>

I can't see any errors myself and it all works fine on the page except this group panel,
Many thanks for your help
Ryan
Shinu
Top achievements
Rank 2
 answered on 08 Nov 2012
2 answers
271 views
Is there a way to upload an image into a RadUpload control programatically?

I am prefilling user data on a form, one of the fields is an RadUpload image control, and I would like to pre-populate this field with an image.

thanks.
Rahul Gupta
Top achievements
Rank 1
 answered on 08 Nov 2012
2 answers
156 views

I have an impelentation of the sharepoint radeditor in my shrepoint site.
This site has SSL implementation and redirects the page into https:// 

When firing dioalogs the error i get is : 

'~/Telerik.Web.UI.WebResource.axd' is missing in web.config. RadScriptManager requires a HttpHandler registration in web.config. Please, use the control Smart Tag to add the handler automatically, or see the help for more information: Controls > RadScriptManager


but once i open de javascript debugger I get errors like this: 

  1. Unsafe JavaScript attempt to access frame with URL http://mysite/_wpresources/RadEditorSharePoint/6.1.6.0__1f131a624888eeed/Resources/Telerik.Web.UI.DialogHandler.aspx?DialogName=LinkManager&Skin=Default&Title=Hyperlink%20Manager&doid=25b5064f-a6b8-46af-9a6b-1129da699eea&dpptn=&dp=amEBLBhZTVkWbwEobRFnWGwRanMfbHsqZnAXByR%2FZUpZdBBeUQZIAx1hOk8ZYk9JdHBmPSVjYAIWbwUpbitNX2QRCVkcY2ctaRQXZicKX0VbSj51bBJIPh5lNU8Pd2pKXGFhcxdzY0YeYHoxVj8AdlcRfkMkBlEDaRQfQiRVXwBZZH9HeS5iNB1hOkMZAGoGW3FiCxhjBFkIfWopVQ57X3oCeUMQX1ERUHI1axVWcVhdZxBrYilUDiBgGGMiAm5gbgd%2BMxtxVgAhbUgzYih3aWB1UAIRXncJVy4PRxNWX1l1XS4EYQJEcCdxCEEndA1pbkxiKxZef2IhbnoJVQFdWmQ8VEUScXsFZRU1aiN%2FS1paZD5LYQJILyZwLkUNZ2JnbQVQKhdZBGIhb304VQ5vWlcsegUSYWcAVgY9QxVgZX9dWBAHYQJACgljOnESWmpYbgVTMxtyXX4mfnIZeRFNWGEAcgURYlF1UHMpdRdSdWpaay5FYhFydCZxFGIWX2JbdVpudRRyZ3MhbQEZYCtdUmABdQASYmccfhUpRhRgQ1FqdQMLenVIMh0EBEYiaUhbXHFYMiNYd10gf1cyZStzQFV0bUMLd0JxYRstAhxgeUVhZD53VBJ2NyYEJk8Wdn4DWXVMAxhjTU8ea0c2ewJBfm8RDV4iY3MoaRA9dR9vS0piYDFFeQNAHAp%2BEGIVWggK from frame with URL https://mysite/admin/Pages/SpecialOffersForm.aspx?ID=034a2b0e-1487-452e-95a7-28a8ba9d4247. The frame requesting access has a protocol of 'https', the frame being accessed has a protocol of 'http'. Protocols must match. ScriptResource.axd:125
    1. a.RadDialogOpener._applyParametersScriptResource.axd:125
    2. a.RadDialogOpener.openScriptResource.axd:87
    3. a.RadEditor.showDialogScriptResource.axd:6301
    4. Telerik.Web.UI.Editor.CommandList.DocumentManager.SetLinkProperties.LinkManagerScriptResource.axd:3842
    5. a.RadEditor.fireScriptResource.axd:6789
    6. a.RadEditor._onToolClickScriptResource.axd:6219
    7. (anonymous function)ScriptResource.axd:47
    8. (anonymous function)ScriptResource.axd:2399
    9. Telerik.Web.UI.Editor.DefaultToolAdapter._raiseEditorEventScriptResource.axd:3147
    10. Telerik.Web.UI.Editor.DefaultToolAdapter._onToolBarClickScriptResource.axd:3142
    11. (anonymous function)ScriptResource.axd:47
    12. (anonymous function)ScriptResource.axd:47
    13. Sys$UI$DomEvent$addHandler.browserHandlerScriptResource.axd:2948
The page at https://mysite/admin/Pages/SpecialOffersForm.aspx?ID=034a2b0e-1487-452e-95a7-28a8ba9d4247 displayed insecure content from http://mysite/_wpresources/RadEditorSharePoint/6.1.6.0__1f131a624888eeed/Resources/Telerik.Web.UI.DialogHandler.aspx?checkHandler=true.


Any help??
Daniel
Top achievements
Rank 1
 answered on 07 Nov 2012
1 answer
273 views
I have a radlistbox and the items are being inserted programmatically, how do I expand the width of an item so multiple items won't show on a single line as they are showing as of now.

currently items are being inserted to listbox in c# like :
rlbAssigned.Items.Add(new RadListBoxItem(rlbAvailable.Items[rlbAvailable.SelectedIndex].Text, rlbAvailable.Items[rlbAvailable.SelectedIndex].Value));

and the listbox is declared as:
<telerik:RadListBox ID="rlbAvailable" runat="server" Height="320px" Width="200px">                                         </telerik:RadListBox>
Farooq
Top achievements
Rank 1
 answered on 07 Nov 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?