Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
201 views
Hello,

i'm trying to incorporate a rtl toolbar into my web app.
i've incountered the following problem:

Let's assume i have a rtl toolbar, where the first item is a drop down item. Basically, it'll go something like this:
<telerik:RadToolBar div="rtl" runat...>
<items>
<telerik:RadToolBarDropDown text="short">
<Buttons>
<telerik:RadToolBarButton text="very long text" />
</Buttons>
</telerik:RadToolBarDropDown>
</items>
</telerik:RadToolBar>

now, problems is that the sub menu which opened from the drop down button is aligned to the left of the drop down button himself, as inherited from the left to right layout.
But, when the toolbar is rtl, the alignement should be to the right.
What does it metter? in the example above, the submenu's text is much longer than the parent dropdown's text. Thus the submenu is opened into the right of the browser, creating a horizontal scrollbar, which you can't use to scroll right to view the submenu's full text, because once you click on it, the sub menu disappear.

I tried to see if that's a known issue, but couldn't find it..
Any suggestions?
Yana
Telerik team
 answered on 11 Nov 2008
1 answer
168 views
I would like to use the on click event to open the menu ( which can be done) and use the mouse wheel to scroll down the items without having to hover on the arrows at the top and open of the menu.
Is this possible?
T. Tsonev
Telerik team
 answered on 11 Nov 2008
7 answers
425 views
I see how to use CaptionFormatString and CaptionDataField to edit the caption on the popup edit form.

How do you set the caption when you are doing an insert using the popup edit form?

Thanks,

Paul
MD
Top achievements
Rank 1
 answered on 11 Nov 2008
2 answers
192 views
Check your link: http://demos.telerik.com/ASPNET/Prometheus/Scheduler/Examples/DbSchedulerProvider/DefaultCS.aspx
To be able to save data in my own SQL DB you suggest the following:

In order to turn on the write support, you need to download and run the samples locally. Set the RadScheduler's ReadOnly property to "false", then change persistChanges to true in web.config:

    <telerik.web.ui>

        <radScheduler defaultAppointmentProvider="Integrated">

            <appointmentProviders>

                <add name="ReadOnlySchedulerData" type="Telerik.Web.Examples.Scheduler.MyDbSchedulerProvider"

                    connectionStringName="TelerikConnectionString"

                    persistChanges="true" />

            </appointmentProviders>

        </radScheduler>

    </telerik.web.ui>



I followed every single instruction and also modified the ConnectionStrings to point at my own SQL Express 2008.
Ran the application without problems but the data is not being saved in my SQL DB 'SchedulerData'.

Thanks in advance for your help.


T. Tsonev
Telerik team
 answered on 11 Nov 2008
3 answers
106 views
Is there an example of how to use the RadSpell in a custom search engine out side of RadEditor?

Basically I want to create a google type search in my content management system that does something like the following.


| My coool search | [search]
did you mean "My cool search"?

1)  bla bla bla, my cool search.
http://www.mysite.com/default.aspx?id=3
Rumen
Telerik team
 answered on 11 Nov 2008
1 answer
302 views
Hi..
How can I programmatically open a combobox from code-behind in C#

I have an event that poplulates a combo box.. I would like to open the box - to display the items and setfocus.

thanks
Yana
Telerik team
 answered on 11 Nov 2008
5 answers
118 views
Dear All,

I have an AJAX Grid in my application.

It is displayed in hierarchical mode.

While binding the data to it, it has a column between the expand indicator and the columns that is bounded.

I am binding the grid dynamically.

Daniel
Telerik team
 answered on 11 Nov 2008
2 answers
135 views
Hi,
When I try to expand a record, it pop up an error message as follows:

Type 'Telerik.Web.UI.GridTableCell' in Assembly 'Telerik.Web.UI, Version=2008.2.723.20, Culture=neutral, PublicKeyToken=121fae78165ba3d4' is not marked as serializable.

I didn't get this error message when test on my machine, but got it when test on testing server.

Can someone help me out? This is urgent.

Thanks

Anthony Wang
Anthony
Top achievements
Rank 1
 answered on 11 Nov 2008
3 answers
180 views

Hi ,
I want to change LinkButton2 text dynamically. ("Update" to "blabla".)

<telerik:GridTemplateColumn UniqueName="TemplateColumn1">  
            <EditItemTemplate> 
                <asp:LinkButton  ID="LinkButton2" runat="server" CommandName="Update" Text="Update" CommandArgument='<%# Eval("CUSTOMERREF") %>'></asp:LinkButton> 
                &nbsp;<asp:LinkButton runat="server" CausesValidation="false" CommandName="Cancel"   
                    Text="Cancel"></asp:LinkButton> 
            </EditItemTemplate> 
            <ItemTemplate> 
                <asp:LinkButton runat="server" CausesValidation="false" CommandName="Edit"   
                    Text="Edit" ></asp:LinkButton> 
            </ItemTemplate> 
        </telerik:GridTemplateColumn> 
        <telerik:GridTemplateColumn UniqueName="TemplateColumn">  
            <ItemTemplate> 
                <asp:LinkButton runat="server" CausesValidation="false" CommandName="Delete"   
                    Text="Delete" CommandArgument='<%# Eval("CUSTOMERREF") %>'></asp:LinkButton> 
            </ItemTemplate> 
        </telerik:GridTemplateColumn> 
YAVUZ
Top achievements
Rank 1
 answered on 11 Nov 2008
2 answers
183 views
Hi,

I'm using radgrid with a context menu. Upon clicking the id column of the row is saved in a hidden textbox. The context menu uses the textbox value to open a radwindow. Following is the related code.

 function RowContextMenu(sender, eventArgs) 
            { 
                var menu = $find("<%=RadMenu1.ClientID %>"); 
                var evt = eventArgs.get_domEvent(); 
                 
                if(evt.target.tagName == "INPUT" || evt.target.tagName == "A"
                { 
                  return
                } 
               var dataItem = $get(eventArgs.get_id()); 
               var grid = sender; 
               var MasterTable = grid.get_masterTableView(); 
               var row = MasterTable.get_dataItems()[dataItem.rowIndex-1]; 
               var cell = MasterTable.getCellByColumnUniqueName(row, "TicketNo"); 
              //here cell.innerHTML holds the value of the cell 
              var TicketNo = cell.innerText; 
         
                var index = eventArgs.get_itemIndexHierarchical(); 
                document.getElementById("radGridClickedRowIndex").value = TicketNo; 
                sender.get_masterTableView().selectItem(sender.get_masterTableView().get_dataItems()[index].get_element(), true); 

                menu.show(evt); 
                 
                evt.cancelBubble = true
                evt.returnValue = false
 
                if (evt.stopPropagation) 
                { 
                   evt.stopPropagation(); 
                   evt.preventDefault(); 
                } 
            } 





When a context menu item is clicked:

function onClicking(sender, eventArgs) 
            { 
             
              var item = eventArgs.get_item(); 
              var navigateUrl = item.get_text(); 
              var ticketNo = document.getElementById("radGridClickedRowIndex").value; 
              if (navigateUrl == "Reassign"
              { 
                 var oWindow = window.radopen ("Reassign.aspx?INC=" + ticketNo, null); 
                 oWindow.setSize(300,200); 
                 oWindow.moveTo(400, 300);    
                 oWindow.add_close(OnClientClose); 
              } 


The issue occurs on grouping the grid with 2 or more columns. It works fine with first few rows(5-7) but as we go down to lower rows, I get

Microsoft JScript runtime error: 'undefined' is null or not an object

It breaks on following code:
getCellByColumnUniqueName:function(_1de,_1df){ 
for(var i=0;i<this.get_columns().length;i++){ 
if(this.get_columns()[i].get_element().UniqueName.toUpperCase()==_1df.toUpperCase()){ 
return _1de.get_element().cells[i]; <-- This is where the error points -->

Please look into this issue. Going by the function name it looks like its a grid related issue.

Edit: System Info
Web.UI Version - 2008.1.515.35
.NET Framework - 3.5
Visual Studio 2008
Browser - IE 7


Regards
Mridul
Yavor
Telerik team
 answered on 11 Nov 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?