Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
94 views
I need to query via javascript, what the CssClass is set to on a RadPane.  But, I can't find any exposed property to do so.  Is there a way to do this?  For now I'm using a value from a hidden input, but I'd rather be able to query the pane directly.
Doug Beard
Top achievements
Rank 1
 answered on 12 Oct 2009
1 answer
131 views
Based off the demo for calendar databinding, I'm using the radgrid to create a control which has a value specified for a specific date.  In the ascx I have instructed the radgrid and the mastertableview to show horizontal gridlines only.  However, vertical ones still appear.  Here is the radgrid definition in my ascx.  What am I missing?

            <telerik:RadGrid ID="objRadGrid" runat="server" AutoGenerateColumns="False" Skin="Web20" EnableViewState="false" 
                Width="300px" OnNeedDataSource="objRadGrid_NeedDataSource" OnUpdateCommand="objRadGrid_UpdateCommand" 
                GridLines="Horizontal"
                <MasterTableView Width="100%" ShowHeader="false" GridLines="Horizontal"
                    <Columns> 
                        <telerik:GridTemplateColumn HeaderText="Goal Value" UniqueName="TemplateColumn"
                            <ItemTemplate> 
                                <asp:Label runat="server" ID="date" Text='<%# Eval("Date", "{0:d}") %>'
                                </asp:Label> 
                                &nbsp; 
                            </ItemTemplate>                            
                            <EditItemTemplate> 
                                <asp:TextBox runat="server" ID="txtGoalValue" Text='<%# Eval("Goal") %>' Visible="true" /> 
                            </EditItemTemplate>   
                        </telerik:GridTemplateColumn> 
                        <telerik:GridEditCommandColumn ButtonType="ImageButton" /> 
                    </Columns> 
                </MasterTableView> 
            </telerik:RadGrid> 

Dimo
Telerik team
 answered on 12 Oct 2009
6 answers
142 views
Hello,
I am attempting to use SEOPagingQueryStringKey on the RadGrid but whenever I enable SEO Paging my grid says that there are no records whenever the SEOPagingQueryStringKey appears in the URL. If I use SEOPagingQueryStringKey on the MasterTableView it works. I don't get it? I am using this incorrectly?
I am using the latest version (Q3 2008) of the controls.
I am using the OnNeedDataSource event to populate the results of the grid through codebehind from an OracleDataReader.
Again it works fine if I set the SEOPagingQueryStringKey and EnableSEOPaging on the PagerStyle of the MasterTableView just not if I set it on the RadGrid.
The only reason I posted this is because I spent a few hours ripping my hair out trying to figure out what I was doing wrong.
Thanks
Nate
Nikolay Rusev
Telerik team
 answered on 12 Oct 2009
2 answers
193 views
Hi,

I have an XML file as Source file for Tree View control. How to load the data to tree view control. Is there any example for tree view control which accepts data as XML file?

I have visited http://demos.telerik.com/aspnet-ajax/treeview/examples/overview/defaultvb.aspx. In this I didnt get any sample for my requirement. Please help regarding the same.

Regards,
Medac
Medac
Top achievements
Rank 1
 answered on 12 Oct 2009
3 answers
121 views
Hi everyone,

I can't tell you how excited I got when I first saw the Visual StyleBuilder. Man, what a tool. At first.

But, what I've found, is that the VSB is behaving sorta funny. Suddenly when editing a grid skin, the view changes to display the grid in "data edit mode", and applied styles are often forgotten an just plain rendered wrong (or not at all).

Maybe I just don't get it. Is there - besides the two short introductory videos - a more comprehensive tutorial and/or documentation for the VSB?

I LOVE the IDEA behind this tool, but currently I'm not sure that it's that big of an advantage over editing stylesheets by hand.

But again... is it just me?

Jeppe Jespersen
Denmark

Alex Gyoshev
Telerik team
 answered on 12 Oct 2009
1 answer
101 views
Hi all,

What would cause program execution to keep switching between a Page_Load event and a RadAjaxManager_AjaxRequest event ? And sometimes even a function and a RadAjaxManager_AjaxRequest event?

I experience this when I try to debug my program, and as I am stepping through it, line execution keeps switching from one to the other. And not only that, after completing one round of switching between Page_Load and RadAjaxManager, the whole process is repeated not once, not twice, but at least 3-4 times.

Although I still get my desired results, without any noticeable delay, it sure is so much inefficient and very confusing to debug.

I would have wanted to paste my actual code but it is too big. I'm just wondering why this is happening and what should I consider doing so that the execution is more efficient and predictable.

Any feedback or help would be appreciated.

Thanks,
_______________
Virgil Rodriguez
Iana Tsolova
Telerik team
 answered on 12 Oct 2009
1 answer
155 views
Hi,

I have added a Radeditor control into my ascx page, but I am having problems with the toolbar functionality of the editor. The 2 buttons that I have included are the Bold and Bullet List buttons.

The Bold button seems to work ok, but I am having problems with the bullet list. It is a little hard to explain but this is what I am doing:-

In the rededitior (it is completely empty of text) I type some plain text into the editor. (this is fine) On the very next line I want to add a buttet list, so after my text I press the return key on my keyboard (ok so far) Now I click on the bullet list button on the editors toolbar, but nothing appears to happen and the cursor disappears.

As an alternative, I type a list of plain text of the items that I want in the bullet list, I then highlight the items and click on the Bullet list. This creates the list ok, but it jumps down 2 lines before the bullet list starts.

I hope this makes some sence!
Am I just trying to use the bullet list in the wrong way or is there something wrong? Can I restrict how many lines that the bullet list drops down before it is shown in the editor?

Regards

Gary

Rumen
Telerik team
 answered on 12 Oct 2009
1 answer
168 views
Hi Support,

I was trying the example of combobox load on demand.
However, i get a Javascript alert message when there is no match found instead of "No Match found" message under the combobox. How can I fix this? I have tried latest version and also latest internal build

Screencap:
http://www.ximnet.com.my/telerik_support_screens/combobox%20demand%20search.png
Simon
Telerik team
 answered on 12 Oct 2009
1 answer
334 views
Hi Telerik !

Iam using the RAD FILE EXPLORER control in my project. I have added the CUSTOM BUTTON on to the RADTOOLBAR & named "ARCHIVE " . As result of which it gets appeared on to both the

a. TREE VIEW
b. GRID CONTEXT VIEW

Now what I want to do is to get the path of the folder or file of the selected ITEM(folder/file) in javascript , so that I can ARCHIVE the selected folder/file.

Presently, iam getting the FILE name using javascript function but Im not getting the FULL PATH where that particular file is located.

Please help me to solve the problem.

Iam using the below mentioned code in my file :-

<asp:Content ID="Content1" ContentPlaceHolderID="MasterContentPlaceHolder" runat="Server">  
 
    <script language="javascript" type="text/javascript">  
 
        function OnClientFileOpen(oExplorer, args) {  
            var item = args.get_item();  
            var fileExtension = item.get_extension();  
            // File is a image document, do not open a new window  
            args.set_cancel(true);  
 
            // Tell browser to open file directly  
            var requestImage = "FileSystemHandler.ashx?path=" + item.get_url();  
            document.location = requestImage;  
            //}  
        }  
 
 
        function toolbarClicked(toolbar, args) {  
            debugger  
            var buttonValue = args.get_item().get_value();  
            if (buttonValue == "Archive")  
                DoPostBack();  
        }  
 
        function gridContextMenuClicked(toolbar, args) {  
            debugger  
            var buttonValue = args.get_item().get_value();  
            //var filename = args._targetElement.childNodes[0].nodeValue;  
            //var test = filename;  
            //var buttontext = args.get_node().get_contextMenu().get_selectedValue();  
            if (buttonValue == "Archive") {  
                DoPostBack();  
            }  
 
            //var filelocation = "Z:\testdmsdocs\SharedDocuments" + filename.get_url();  
            //document.location = filelocation;  
                         
                  
              
        }  
 
        function treeContextMenuClicked(toolbar, args) {  
            debugger  
            var buttonValue = args.get_menuItem().get_value();  
            if (buttonValue == "custom_Menu")  
                DoPostBack();  
        }  
 
        function DoPostBack() {  
            __doPostBack('Archive', 'Archive');  
        }  
 
        function attachHandlers(explorer, args) {  
             
            var toolbar = explorer.get_toolbar();  
            toolbar.add_buttonClicked(toolbarClicked);  
            //support for tree context menu  
            var tree = explorer.get_tree();  
            tree.add_contextMenuItemClicked(treeContextMenuClicked);  
            //support for grid context menu  
            var gridContextMenu = explorer.get_gridContextMenu();  
            gridContextMenu.add_itemClicked(gridContextMenuClicked);  
        }  
 
        function OnClientDelete(oExplorer, args) {  
 
            var isRoot = isRootDir(oExplorer.get_tree(), args.get_path());  
            // Check whether the moved item is a directorty and whether it is the root directory;  
            if (args.get_item().isDirectory() && isRoot) {  
                alert("You cannot delete the root directory");  
                args.set_cancel(true);  
            }  
 
        }  
 
        function OnClientMove(oExplorer, args) {  
 
            var isRoot = isRootDir(oExplorer.get_tree(), args.get_path());  
            // Check whether the moved item is a directorty and whether it is the root directory;  
            if (args.get_item().isDirectory() && isRoot) {  
                // Check whether this is a renaming ;  
                if (isRenaming(args.get_newPath())) {// The renaming operation ;  
                    alert("You cannot rename the root directory");  
                    args.set_cancel(true);  
                }  
            }  
        }  
 
        function isRootDir(oTree, path) {  
            var dirForDelete = oTree.findNodeByValue(path);  
 
            if (dirForDelete != null) {  
                return dirForDelete.get_level() == 0;  
            }  
            // Will occurs only when the "path" parameter is not a valid folder path.  
            else return false  
        }  
 
        function isRenaming(destPath) {  
            if (destPath.search("/\//") == -1) {  
                return true;  
            }  
            else {  
                return false;  
            }  
        }  
       
    </script> 
 
    <style type="text/css">  
        .test_button span span span span  
        {  
            background-image: none !important;  
            padding-left: 2px !important;  
            border: solid 1px grey;  
        }  
    </style> 
    <table width="100%">  
        <tr> 
            <td> 
                <%-- <div id="eventConsole" style="height: 470px; width: 300px; overflow: auto; display:none;">  
                </div>--%> 
                <telerik:RadFileExplorer runat="server" ID="DocumentsRadFileExplorer" Width="734px" 
                    Height="400px" VisibleControls="All" EnableCreateNewFolder="true" EnableCopy="true" 
                    EnableOpenFile="true" OnClientMove="OnClientMove" OnClientDelete="OnClientDelete" 
                    OnClientLoad="attachHandlers"    
                    OnClientFileOpen="OnClientFileOpen"   
                    ongridpopulated="DocumentsRadFileExplorer_GridPopulated">  
                    <Configuration SearchPatterns="*.*" MaxUploadFileSize="10485760"></Configuration> 
                </telerik:RadFileExplorer> 
            </td> 
        </tr> 
    </table> 
</asp:Content> 
 
While the  method that Iam using in my FILESYSTEM.CS file is shown below as :-

public static string ArchiveFolder(string path)  
    {  
        string NewFile_Name = "";  
        string File_Path = "";  
        Glb_Entities.ExecuteSP(new object[] {"Usp_Dms_ArchiveFile"          
            ,"File_Name", path.Substring( path.LastIndexOf("/")+1)  
            ,"NewFile_Name", NewFile_Name  
            ,"File_Path", File_Path  
            ,"File_ArchivedBy", HttpContext.Current.Session["UserID"].ToString()  
            });  
        return string.Empty;  
 
    } 
It would be my pleasure if you please help me try to solve my problem.

Thanks

Ajay
Fiko
Telerik team
 answered on 12 Oct 2009
5 answers
199 views
Hi there,

im trying to add a css class to my pager style but it always just reverts to the orginal GridPager_Default.

here is my code:

<telerik:RadGrid ID="grdProperties" runat="server" GridLines="None" AllowPaging="True" 
                                            AllowSorting="True" AutoGenerateColumns="False" PageSize="3" OnNeedDataSource="grdProperties_NeedDataSource" 
                                            OnItemDataBound="grdProperties_ItemDataBound" EnableEmbeddedSkins="false">  
                                            <PagerStyle ShowPagerText="false" VerticalAlign="Middle" ForeColor="White" CssClass="ProfilePager_Default" Mode="NextPrevAndNumeric" EnableSEOPaging="True" PrevPageImageUrl="/surf4property/images/btnPrevious.png" NextPageImageUrl="/surf4property/images/btnNext.png"></PagerStyle> 
 
                                            <MasterTableView NoMasterRecordsText="No Properties to display">  
 
Number of columns.....  
 
</Columns> 
                                                <RowIndicatorColumn Visible="False">  
                                                    <HeaderStyle Width="20px"></HeaderStyle> 
                                                </RowIndicatorColumn> 
                                                <ExpandCollapseColumn Visible="False" Resizable="False">  
                                                    <HeaderStyle Width="20px"></HeaderStyle> 
                                                </ExpandCollapseColumn> 
                                                <EditFormSettings> 
                                                    <PopUpSettings ScrollBars="None"></PopUpSettings> 
                                                </EditFormSettings> 
                                            </MasterTableView> 
                                        </telerik:RadGrid> 

In the above example i try to create a new CSSClass but it doesnt work? it keeps using the original GridPager_Default
Sebastian
Telerik team
 answered on 12 Oct 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?