Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
68 views
Hi,

I'm currently converting a big range of old MS Access databases based on SQL 97 to a web based interface. As upgrading/changing the SQL 97 server is out of the question, Linq (as well as entity framework etc) seems to be out of the question (unless you know any way to get this working?).

As we will need a large range of reuse, like simple editable tables, we wanted to make generic configurable controls. However it seems to me that the editable columns are a bit tedious and error prone to parse.

As for parsing the values of the editable column, the best (and only) example I found in your demos was this : http://demos.telerik.com/aspnet-ajax/grid/examples/dataediting/editmodes/defaultcs.aspx

What I ideally would have wished for, was an easy way to access SQL rowtype, rowname and the new and old values as objects, such that I could easily insert everything chosen as old and new values in parametrized SQL, and leave the rest up to the SQL server.

However, it doesnt seem that I can find the SQL datatype, and parsing and ensuring no failure for all possible datatypes, will end up prooving quite tedious for a generic web control.

Do you have any experience, guides or ideas on how to best create generic dataupdating without the use of Linq?
Morten
Top achievements
Rank 1
 answered on 30 Aug 2011
1 answer
265 views
Hi,

Assume end user is trying to copy content from MS word and pasting into rad editor.

When he Right clicks and choose From MS word or use Ctrl+V , how to prevent him from copying

1.Any inserted files or any other objects from MS Word.
2.Tables in MS Word
3.Forecolor/backcolor information
4.Any hyperlinks

But he should be able to copy
1.Text with Fonts specific to what can be chosen from the RAD editor dropdown.
2.Text with Font size specific to what can be chosen from the RAD editor dropdown.
3.Normal formatting like Bold/Italic/Underline,alignment,bulleting etc.

Please help with this as this is very urgent.

Thank you.



Rumen
Telerik team
 answered on 30 Aug 2011
2 answers
124 views
Hi

I am evaluating RADGRID for my client who needs a plugin table/grid where he can insert/delete/edit rows and columns. He don't to do any coding. He just want to drag and drop the control with standard properties enabled which should allow him to do these operation binding to the database.

I thought RADGRID may be good fit but when I see examples it seems there are lot of code binding needed in both client and server side. At the same time I also saw some things about codeless insert/delete/update but I tried addig properties like below without any code and nothing happens. I don't get any edit functionality in the grid. What am I missing on codeless operations? 

 

<telerik:RadGrid ID="RadGrid1" runat="server" AllowSorting="true" AllowPaging="true" PageSize="25" ShowStatusBar="true">

<PagerStyle AlwaysVisible="true" />

 <MasterTableView AutoGenerateColumns="true" EditMode="InPlace" />

 </telerik:RadGrid>

I check out the below articles and everything needs big chunk of code to make the manipulation work.
http://www.telerik.com/help/aspnet/grid/grdeditmodeinplace.html
http://www.telerik.com/help/aspnet/grid/grdinsertingvaluesinplaceandeditforms.html


I need a plug and play kinda of control for client to work without any big coding.

Vijai

 

Vijaianand
Top achievements
Rank 1
 answered on 30 Aug 2011
1 answer
91 views
Hello,

I just wanted to bring this to your attention if it has not been already. It appears that when you apply Text Alignment to the text within your RadEditor, it will work until you switch Content Modes. After switching to say, HTML mode and back to Design mode, highlight the same portion of text(or all of the text, does not matter) and click any of the Text Alignment buttons again, and you will notice that nothing will happen.

You can easily reproduce this on your Editor Demo page: Telerik RadEditor Demo

So is there a fix out for this? or some type of workaround? It seems kind of silly to only be able to align text prior to switching Edit Modes and then being unable to afterwards.

Thanks in advance!

-Andrew

PS: This has been reproduced in Firefox 5.0+ & IE 8+
Rumen
Telerik team
 answered on 30 Aug 2011
7 answers
269 views
I have a RadEditor set up. Is there a way to insert a sort of five spaces into an area which is a bullet point? Whenever I try to accomplish this it always creates the secondary bullet point and the spaces. I need the line's point to stay the same, but the spaces inserted. Posted below is the editor itself, and the javascript function I've found on the forums to insert five spaces.

editor
                    Product Description: <br /> 
                    <span style="font-family: Arial; font-size: 12pt;"
                        <telerik:RadEditor id="ProductDescription" runat="server" Width="700px" Height="800px" 
                            Skin="WebBlue" ToolsFile="~/Includes/BasicTools.xml" OnClientLoad="OnRadEditorClientLoad" 
                            EditModes="All"
                            <SpellCheckSettings AllowAddCustom="true" DictionaryLanguage="en-US" DictionaryPath="~/App_Data/RadSpell" SpellCheckProvider="EditDistanceProvider" /> 
                            <CssFiles> 
                                <telerik:EditorCssFile Value="~/Includes/EditorContentArea.css" /> 
                            </CssFiles> 
                        </telerik:RadEditor>  
                    </span> 
                    <br /> 
 
 
 


javascript
         function OnRadEditorClientLoad(editor, args) { 
             //attach to the onkeydown event, check whether the tab key is pressed and paste &nbsp; in the editor 
             editor.attachEventHandler("onkeydown"function(e) { 
                 if (e.keyCode == '9') { 
                     editor.pasteHtml("&nbsp;&nbsp;&nbsp;&nbsp;"); 
                     if (!document.all) { 
                         e.preventDefault(); 
                         e.preventBubble(); 
                         e.stopPropagation(); 
                     } 
                     else { 
                         e.returnValue = false
                         e.cancelBubble = true
                     } 
                 } 
             }); 
         } 


Any help is appreciated...
ranganadh
Top achievements
Rank 1
 answered on 30 Aug 2011
3 answers
118 views
Hello,
I would like to change the color of the grids to black.
In the picture attached, the grids are unvisible...

Can you help me?

Thank you in advance.


Cordialy,
Françoi.
Evgenia
Telerik team
 answered on 30 Aug 2011
2 answers
329 views
I constantly recieve an error for an ASP.NET 4.0 Web Forms website:
Microsoft JScript runtime error: Sys.WebForms.PageRequestManagerServerErrorException: Could not load file or assembly 'Telerik.Web.UI.resources, Version=2011.2.712.40, Culture=en-US, PublicKeyToken=121fae78165ba3d4' or one of its dependencies. The system cannot find the file specified.

I'm unable to fix this error.Please help.
Sandeep
Top achievements
Rank 1
 answered on 30 Aug 2011
1 answer
93 views
I am trying to create a tree view like on this page:

http://demos.telerik.com/aspnet-ajax/treeview/examples/functionality/templates/defaultcs.aspx

Here is my code:
CusTree.DataSource = tblData
CusTree.DataTextField = "CUSTOMER_NAME"
CusTree.DataValueField = "CUSTOMER_PREFIX"
CusTree.DataBind()
 
Dim nd As ITemplate = WipTree.NodeTemplate()
 
Dim nstdNode As New RadTreeNode
nstdNode.NodeTemplate = nd
 
For i As Integer = 1 To CusTree.Nodes.Count - 1
    CusTree.Nodes(i).Nodes.Add(nstdNode)
Next

As you can see I am trying to create it dynamically. I have two tree views: CusTree and WipTree. My problem is that when I add nstdNode (that contains the template node) to the CusTree nodes, it only shows the nstdNode appended to the last Node of CusTree. I am in a fix as what could be the problem. Can you please help me with this ASAP??

<telerik:RadTreeView ID="CusTree" runat="server" Skin="Outlook">
</telerik:RadTreeView>
 
<telerik:RadTreeView ID="WipTree" runat="server" Skin="Outlook">
    <NodeTemplate>
        <iframe id="frm" runat="server" src="http://google.com"></iframe>
    </NodeTemplate>
</telerik:RadTreeView>
Plamen
Telerik team
 answered on 30 Aug 2011
3 answers
191 views
Hi.
I've two time pickers, one to enter a "start time" and another for the "end time". I set both with 00:30:00 interval. First one StartTime is 00:00:00 and EndTime is 23:30:00. Second one StarTime is 00:30:00 and EndTime must be 00:00:00 (or 24:00:00) but it doesn't work. If I try to set 23:59:59, due to Interval I can't see in the timetable this last one. How I can set and EndTime to 00:000:00 (or view 23:59:59 with 30 minutes Interval)  without change the day?

Thanks in advance.
Maria Ilieva
Telerik team
 answered on 30 Aug 2011
9 answers
150 views
Hi ,


I am using a radgrid having a child grid (DetailTable1) which again has one more child grid (DetailTable2) whenever I  drag the column of the detailTable2 to groupby header I get the following javascript error on IE7:-


Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E)
Timestamp: Fri, 13 May 2011 22:55:24 UTC


Message: Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 500
Line: 6
Char: 62099
Code: 0
URI: http://192.168.9.99/106/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_AccountingRadScriptManager_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d3.5.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-US%3afab31106-1bd6-4491-9a14-59e0fc4a7081%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%2c+Version%3d2011.1.315.35%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3ae4ca4719-c559-4761-8501-9be20bbda1fe%3a16e4e7cd%3aed16cbdc%3a86526ba7%3af7645509%3a24ee1bba%3a11a04f7e%3af46195d3%3ae330518b%3a1e771326%3ac8618e41%3a874f8ea2%3ab7778d6c%3a19620875%3a490a9d4e%3abd8f85e4%3a58366029


This error only occurs on IE7 and not on mozilla and any other browser. Please help in this .


Thanks,

Rahul.
Mira
Telerik team
 answered on 30 Aug 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
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?