Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
111 views
Hi All,

I have huge number of columns in a table i am binding them to grid. how to show all the columns in the same screen without scrolling, i mean splitting a record in to multiple rows.

Can we do it using telerik rad grid, Please help me regarding this.
pradeep k
Top achievements
Rank 1
 answered on 12 Nov 2009
0 answers
133 views

 

i hav a document in microsoft word document(like a form).i want to fill this document from sql table.....how can i do this??????

plz reply

pradeep baloni
Top achievements
Rank 1
 asked on 12 Nov 2009
6 answers
185 views
We are still using the old, ASP.NET, non-AJAXified verison of the RadEditor (due to issues we have with getting the newer version to appear correctly on our website's pages).  There are a couple of things I'd like to do that seem from the forums only to be do-able via the Telerik control's javascript libraries, but I'm having trouble figuring out how to use those in the old version of the tool (where the libraries were not consolidated and accessible via the $ symbol as they are post-Prometheus release).  Here's what I'm looking to do:

1) Check the length of strings being entered into the control, and limit the length to a set number of characters (including the HTML markup) (or, even more ideally, but maybe harder - not limit the allowed length, but detect it and show a warning if a set length is exceeded - but not with a popup but rather by just updating text of a control on the page to show the warning / not show the warning on paste and keystroke).  I see the post at   http://www.telerik.com/community/forums/aspnet-ajax/editor/maximum-text-length.aspx , but it depends on the $ javascript library

2) Capture the paste event and pop up a window offering to strip ALL formatting from the pasted content (not just MS Word formatting), and based on the user's choice either leave the pasted content intact or strip all.  I see the posts on this that point to 

Telerik.Web.DomElement.addExternalHandler as the javascript library to call (pre the introduction of the $ library), but when I try to call this, I get a popup saying "Exception while executing client event "OnClientLoad" Error: 'Telerik' is undefined."  so basically I'm not referencing the library right, but I'm not sure how to do so correctly. 

Many thanks for your aid!

FYI, Here's the code for my test application page that throws the exception cited above:
 

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="TelerikTest2._Default" %> 
<%@ Register TagPrefix="telerik" Namespace="Telerik.WebControls" Assembly="RadEditor.Net2" %> 
 
<!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>  
</head> 
<body> 
    <form id="form1" runat="server">  
    <div> 
      
    <script type="text/javascript">  
    function OnClientLoad(editor, args)  
    {  
        var element = document.all;  
        Telerik.Web.DomElement.addExternalHandler(element, "paste", function(e) {  
            window.setTimeout(function() {  
                //write here your code which you want to execute when the paste event is fired  
                //after that execute the editor's clean filters  
                var oSelElem = editor.get_html();  
                alert(oSelElem);  
                editor.fire("SelectAll");  
                editor.fire("FormatStripper", { value: "FONT" });  
                editor.fire("FormatStripper", { value: "SPAN" });  
                editor.fire("FormatStripper", { value: "CSS" });  
                alert(editor.get_html());  
                alert(oSelElem);  
            }, 300);  
        });  
    }  
    </script> 
 
    <telerik:radeditor runat="server" ID="RadEditor1" OnClientLoad="OnClientLoad"  StripFormattingOptions="NonesupressCleanMessage">  
    </telerik:radeditor> 
    </div> 
    </form> 
</body> 
</html> 
 

Rumen
Telerik team
 answered on 12 Nov 2009
3 answers
105 views
I want to make a context menu for image like here:
http://demos.telerik.com/aspnet-ajax/editor/examples/builtinmodules/defaultcs.aspx

But when I add EditorTool Name="ImageEditor" I have an alert:
"the command ImageEditor is not implemented yet"

What I'm doing wrong?
I have simple RadEditor.


Grzesiek
Top achievements
Rank 2
Iron
 answered on 12 Nov 2009
3 answers
132 views

To be honest, I'm unsure if this is a TreeView or Splitter problem, so please bare with me.

I have a TreeView in a RadPane. The TreeView, when expanded, puts some of the nodes close to, or past the RadPane's edge. If the overlapping nodes are neither selected or hovered over, all is OK, but otherwise, well you can see for yourself in ss3.gif (attached).

FYI, this happens in IE8 but not FF3.5. The skins are Q1 2009's WebBlue.

-- 

Stuart

Stuart Hemming
Top achievements
Rank 2
 answered on 12 Nov 2009
1 answer
163 views

Hi,

 

I place telerik grid inside Splitter. I want that splitter should display only vertical scroll so I try using Scrolling="X" and also Scrolling="Y", even after add Scrolling it display horizontal scrollbar. If I add Scrolling="None" it not display any scrollbar but I want that It should show me vertical scroll bar when scrolling need.

 

In deep when I check with RadGrid I found that I use PopUp In my application when user add/edit record using <MasterTableView EditMode="PopUp" Here if I replace EditMode="EditForms" in this case Scrolling work fine, but I don’t want to change my application appearance.

 

 

Dimo
Telerik team
 answered on 12 Nov 2009
5 answers
93 views
Hi,

I have just updated to 2009.2.826 and noticed that when the Sunset skin is used, the Month view on my Scheduler does not display any dates (it looks like they are actually set to the same colour as the background).  All other built in skins appear to be OK.

David Penny.
Peter
Telerik team
 answered on 12 Nov 2009
1 answer
127 views
Hi, how can the items from the LinkManager popup be removed from the page? ie. css class field, tooltip field
Shinu
Top achievements
Rank 2
 answered on 12 Nov 2009
3 answers
237 views
I try to fire the server side function when click on the image of the image librairy:

                                <telerik:RadListView runat="server" ID="RadLVPhotos" Enabled="false" Visible="true" 
                                    AllowPaging="true" PageSize="10" DataKeyNames="Id" 
                                     OnNeedDataSource="RadLVPhotos_NeedDataSource" OnSelectedIndexChanged="RadLVPhotos_SelectedIndexChanged" ItemPlaceholderID="ProductsHolder">  
                                    <LayoutTemplate> 
                                        <div id="list">  
                                            <div style="clear: both;">  
                                            </div> 
                                            <fieldset runat="server" id="ProductsHolder" /> 
                                            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  
                                            <div style="clear: both;">  
                                            </div> 
                                        </div> 
                                    </LayoutTemplate> 
                                    <EmptyDataTemplate> 
                                        <legend>Photos</legend>Aucune photo...  
                                    </EmptyDataTemplate> 
                                    <ItemTemplate> 
                                        <fieldset style="float: left; margin: 5px 5px 5px 5px; padding: 2px 2px 2px 2px;  
                                            background: #eeeeee" class="myClass" onmouseover="containerMouseover(this)" onmouseout="containerMouseout(this)">  
                                            <telerik:RadBinaryImage Style="cursor: pointer;" runat="server" ID="RadBinaryImage1" 
                                                DataValue='<%#Eval("Fichier.Content") %>' AlternateText='<%#Eval("Fichier.itemID") %>' Height="120px" Width="120px" 
                                                ResizeMode="Fit" onclick="" /> 
                                            <br /> 
                                            <div style="margin-top: -30px; position: fixed; display: none; width: 60px;">  
                                            </div> 
                                        </fieldset> 
                                    </ItemTemplate> 
                                </telerik:RadListView> 

    Protected Sub RadLVPhotos_SelectedIndexChanged(ByVal sender As Object, ByVal e As EventArgs)  
        Dim radLVPhotos As RadListView = DirectCast(sender, RadListView)  
 
        If radLVPhotos.SelectedItems.Count <> 0 Then 
 
        Else 
            radLVPhotos.ClearSelectedItems()  
        End If 
    End Sub 

Nothing append...

any suggestion?
Sebastian
Telerik team
 answered on 12 Nov 2009
2 answers
92 views
Hi,

In Q2, I followed  the tutorial http://www.telerik.com/support/kb/aspnet-ajax/editor/using-the-image-and-document-managers-outside-radeditor.aspx to use a standalone imageEditorManger dialog and it worked well.
Here is my client script to load the Editor:


    function OpenImageEditor()  
    {  
      debugger;  
        var args = new Telerik.Web.UI.EditorCommandEventArgs("DocumentManager", null, document.createElement("a"));  
        args.CssClasses = [];  
        var img = $get('<%= Image1.ClientID %>');    
        args.imageSrc = img.src;  
        debugger;  
        var dialog = $find('<%= DialogOpener1.ClientID %>');  
        dialog.open('ImageEditor', args);  
        } 

Since Q3, the Telerik.Web.UI.EditorCommandEventArgs is undefined. I don't know when the registerclass is called for the EditorCommandEventArgs but the class is not present on the page, There is another way in Q3 to pass arguments to the dialog ?

Thanks and regards

Alain
Rumen
Telerik team
 answered on 12 Nov 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?