Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
105 views
Could you please attend to my problem and give me a solution:
I am trying to write dhivehi language (dv-MV).

I am using a javascript to configure the fonts of divehi language to work it proper:
http://www.jawish.org/blog/uploads/jtk-4.2.1.js

Reference to the script (how it works):
http://www.jawish.org/blog/archives/322-Javascript-Thaana-Keyboard-version-4.0.html

Fonts used:
http://www.miadhu.com/dv/wp-content/themes/miadhu_dhivehi/images/miadhu_fonts.zip




HTML HEAD:
<head runat="server"> 
    <title></title> 
    <link href="StyleSheet.css" rel="stylesheet" type="text/css" /> 
        <script src="../Scripts/jtk-4.2.1.pack.js" type="text/javascript"></script> 
    <script type="text/javascript"> 
        thaanaKeyboard.defaultKeyboard = 'phonetic'; 
    </script> 
</head> 

CSS:
.thaanaKeyboardInput  
{ 
    font-family: faruma, 'mv iyyu nala', 'mv elaaf normal'; 
    direction: rtl; 
} 


Applied to RadTextbox:
 <telerik:RadTextBox ID="RadTextBox1" CssClass="thaanaKeyboardInput" Runat="server" Width="740px"  
        MaxLength="200" Rows="1" Skin="Hay" > 
        <HoveredStyle BorderColor="#A78080" /> 
        <EnabledStyle BorderColor="#D3C0C0" /> 
    </telerik:RadTextBox> 

While this method successfully works with RadTextbox (see the attached RadTextbox.jpg), this couldn't work with RadEditor(editor.jpg).

I think it is because I can't directly apply the css to the textbox inside the editor.

Could you please try to understand my problem and help me?
Rumen
Telerik team
 answered on 06 Jul 2010
10 answers
272 views

Please lookinto my code below

<MasterTableView CommandItemStyle-Font-Names="tahoma" CommandItemStyle-Font-Size="10pt" 
                            HeaderStyle-BackColor="#1C5E55" ItemStyle-BackColor="LightGray" BorderColor="Gray" 
                            BorderWidth="1px" AllowSorting="true" AutoGenerateColumns="False">  
                            <RowIndicatorColumn> 
                                <HeaderStyle Width="20px" /> 
                            </RowIndicatorColumn> 
                            <ExpandCollapseColumn> 
                                <HeaderStyle Width="20px" /> 
                            </ExpandCollapseColumn> 
                            <ItemStyle BackColor="LightGray" /> 
                            <HeaderStyle BackColor="#1C5E55" /> 
                            <CommandItemStyle Font-Names="tahoma" Font-Size="10pt" /> 
                            <Columns> 
                                  
                                <telerik:GridBoundColumn UniqueName="WorkflowType" SortExpression="WorkflowType" 
                                    HeaderText="Workflow Type" DataField="WorkflowType">  
                                </telerik:GridBoundColumn> 
                                  
                            </Columns> 
                        </MasterTableView> 

This is my code. The sort is not ascending or descending correctly for workflow column. But records are ordered in some random manner. Can any one please guide.

BV
Top achievements
Rank 1
 answered on 06 Jul 2010
2 answers
108 views
i'm getting a stack overflow on node1.select below.
tvAddr is a radtreeview. the node1/find and select java at the bottom reiterates - causing a stack overflow...any ideas or work-arounds? thanks.  i'm using 2010.1.519.35 version.  thanks.

 

function isInvoiceAddrSelectedValid(s, e) {

 

       var invaddr;

 

 

       invaddr = window.document.getElementById(

"cbInvTo").value;

 

       if (isAddrComplete(invaddr)) 

              {

       e.IsValid =

true;

 

 

              }

 

 

       else {

 

              var tree = $find("<%= tvAddr.ClientID %>");

 

              var addrvalue = window.document.getElementById("txtAddrTypeID").value;

 

              debugger;

 

              if (addrvalue != '') {

 

                     var node1 = tree.findNodeByValue(addrvalue);

                     node1.select();

                     e.IsValid =

false;

 

 

              }

              e.IsValid =

false;

 

 

}

}

 

 

MVeranis
Top achievements
Rank 1
 answered on 06 Jul 2010
2 answers
122 views
Hi all
I have a grid with some rows selected.When i change page or make a sort the grid lose all rows selected. There is a way to let the grid mantain the rows selected wheni make a sort or change a page?
Thanks in advice
incrysis incrysis
Top achievements
Rank 1
 answered on 06 Jul 2010
1 answer
77 views
Hey,

I've got a question. For a new project I've started with a basic YUI3 reset (http://developer.yahoo.com/yui/3/). I use the reset, base and font css files so everything works like a charm across browsers. And while it seemed to work perfectly, the RadEditor doesn't seem to like it very much.

In the attached screendump (I've erased text and labels, so don't worry it's not THAT messed up) on it you'll see 4 browser windows.
Internet Explorer totally lost it, Firefox somehow stretches it almost screen high, same with Safari but Chrome seems to do just fine.

I'm not a front end engineer, so I'm doing nothing fancy, this is just the mock-up before the sauce.
There are 4 stylesheets referenced: YUI3 reset, YUI3 base, YUI3 fonts and 960grid.css and while this combination seems to work perfectly for RadMenu, formDecorator and some of the basic UI elements, the editor really really doesn't seem to like it.

Anyone got a good idea how to fix this?

Thanks in advance,
Jochem.
Bozhidar
Telerik team
 answered on 06 Jul 2010
1 answer
122 views
Hi,
       I have binded a Radcombo-box items with some attributes at Client-side , After a new item was added on the Combo-box
 The item text only displayed, but the attribute columns are blank, they were not visible. Pls help to solve this problem.

    var items = combo.get_items();
    combo.trackChanges();
    var comboItem = new Telerik.Web.UI.RadComboBoxItem();
    comboItem.set_text("New");
    comboItem.set_value("Value");
    comboItem.get_attributes().setAttribute("Pieces", "2");
    comboItem.get_attributes().setAttribute("GrWt", "2.00");
    items.add(comboItem);
    combo.commitChanges();

Simon
Telerik team
 answered on 06 Jul 2010
2 answers
163 views
the GridCheckBoxColumn and LinqtoSQL don't seem to play well together
a LinqtoSQL data source seems to completely bypass a postback (a good thing, usually) so I can't just go into the ItemDataBinding event and manually set the column
the column appears but doesn't show any data
if I add a DataType an exception is thrown - something about being unable to convert a string to boolean
any assistance is appreciated
I'm working in VS2010, SQL Server 2005, latest and greatest Telerik RAD Ajax controls

the relevant aspx
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="AdminPage.aspx.vb" Inherits="AdminPage" %>
<!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>Admin Page</title>
</head>
<body>
<form id="frmAdmin" runat="server">
    <telerik:RadScriptManager ID="rsManager" runat="server" />
    <table>
    <tr>
    <td>
        <telerik:RadGrid ID="gvVendor" DataSourceID="ldsVendor" runat="server">
        <MasterTableView DataKeyNames="VendorID" AutoGenerateColumns="false" AllowSorting="true" AllowPaging="true" CommandItemDisplay="Top" >
        <Columns>
            <telerik:GridBoundColumn UniqueName="VendorID" DataField="VendorID" HeaderText="VendorID" ReadOnly="true" />
            <telerik:GridBoundColumn UniqueName="VendorName" DataField="VendorName" HeaderText="Vendor Name" />
            <telerik:GridBoundColumn UniqueName="LNSPrefix" DataField="LNSPrefix" HeaderText="LNSPrefix" />
            <telerik:GridBoundColumn UniqueName="KMSPrefix" DataField="KMSPrefix" HeaderText="KMSPrefix" />
            <telerik:GridCheckBoxColumn UniqueName="RepGroupFlag" DataFieldName="RepGroupFlag" HeaderText="Rep Group?" />
            <telerik:GridEditCommandColumn UniqueName="btnEdit" />
            <telerik:GridClientDeleteColumn UniqueName="btnDelete" />
        </Columns>
        </MasterTableView>
        </telerik:RadGrid>
    </td>
    </tr>
    </table>
    <asp:LinqDataSource ID="ldsVendor" TableName="Vendors" ContextTypeName="LtSVandorDataContext" EntityTypeName=""
        Select="new (VendorID,VendorName,LNSPrefix,KMSPrefix,RepGroupFlag)" OrderBy="VendorName"
        EnableDelete="True" EnableInsert="True" EnableUpdate="True" runat="server"></asp:LinqDataSource>
</form>
</body>
</html>

code behind
Imports System.Data
Imports Telerik.Web.UI

Partial Class AdminPage
    Inherits System.Web.UI.Page
    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        If Page.IsPostBack Then
            Exit Sub
        End If
    End Sub

why won't the grid set the checkbox properly?
I get a String was not recognized as a valid Boolean. exception thrown - but the column is tinyint
adding a DataType of System.Int16 does nothing

Marianne




Elliott
Top achievements
Rank 2
 answered on 06 Jul 2010
1 answer
70 views
Hi,

I am using this feature:

http://demos.telerik.com/aspnet-ajax/window/examples/demoemail/defaultcs.aspx

With a Hierarchial RadGrid:

http://demos.telerik.com/aspnet-ajax/grid/examples/hierarchy/declarativerelations/defaultcs.aspx

If a user clicks a row in the hierarchy, such as the second or third table beneath the first one, I would like to disable the RadWindow (The show message function from the RadWindow demo above). How can this be done? Can I disable the row select feature in detail tables? That might be the easiest way.






Mira
Telerik team
 answered on 06 Jul 2010
1 answer
87 views
Hi!
I am trying to test RadComboBox in EnableLoadOnDemand="True" Mode.
Here is my code:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Test.aspx.cs" Inherits="Test" %> 
 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> 
 
<!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"> 
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server"> 
    </telerik:RadScriptManager> 
    <div> 
                <telerik:RadComboBox ID="ActiveWebProjectCombo" runat="server" Width="350px"  
                    EnableLoadOnDemand="True" 
                    ItemsPerRequest="10" 
                ShowMoreResultsBox="True" EnableVirtualScrolling="True" onitemsrequested="ActiveWebProjectCombo_ItemsRequested"  
                    > 
                </telerik:RadComboBox> 
    </div> 
    </form> 
</body> 
</html> 

public partial class Test : System.Web.UI.Page 
{ 
    protected void Page_Load(object sender, EventArgs e) 
    { 
 
    } 
    protected void ActiveWebProjectCombo_ItemsRequested(object o, Telerik.Web.UI.RadComboBoxItemsRequestedEventArgs e) 
    { 
        WebProjectDataContext _dc = new WebProjectDataContext(); 
        int _count = (int)_dc.cms_WebProject_GetAvailableWebProjectsCount(_dc.UserId, _dc.WebProjectId, "%"); 
        int _itemsLoaded = e.NumberOfItems; 
        int _start = (int)Math.Truncate((double)(_itemsLoaded / 10)); 
        var _data = _dc.cms_WebProject_ListAvailableWebprojects(_dc.UserId, _dc.WebProjectId, "%", true, _start, 10); 
        if (e.NumberOfItems == 0) 
        { 
            ActiveWebProjectCombo.Items.Clear(); 
        } 
        foreach (cms_WebProject_ListAvailableWebprojectsResult _record in _data) 
        { 
            RadComboBoxItem _item = new RadComboBoxItem(_record.PROJECT_URL, _record.COMPONENT_ID.ToString()); 
            ActiveWebProjectCombo.Items.Add(_item); 
            _itemsLoaded++; 
        } 
        e.EndOfItems = _itemsLoaded >= _count; 
    } 
} 

It seems code is working fine, except of hidden scrollbar. What I am doing wrong?
_dc.cms_WebProject_ListAvailableWebprojects(_dc.UserId, _dc.WebProjectId, "%", true, _start, 10) implements paged access to list of data which is showed in RadComboBox.

Simon
Telerik team
 answered on 06 Jul 2010
2 answers
162 views
Hello!

I'm looking for a way to display the version of the rad controls at runtime. Any ideas?

Tonino.
Tonino
Top achievements
Rank 1
 answered on 06 Jul 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?