var oRadMenu = GetRadWindow().BrowserWindow.document.getElementById('RadMenu1');var item = oRadMenu.findItemByText(text);
protected void RadGridResult_ItemDataBound(object sender, GridItemEventArgs e)
{
//Format string to phone number.
if (e.Item is GridDataItem)
{
GridDataItem item = (GridDataItem) e.Item;
Object ob = item["ConfirmationLogPhone"].Text;
if (!Convert.IsDBNull(ob))
{
Int64 iParsedValue = 0;
if (Int64.TryParse(ob.ToString(), out iParsedValue))
{
TableCell cell = item["ConfirmationLogPhone"];
cell.Text =
String.Format(System.Globalization.CultureInfo.CurrentCulture, "{0:#-(###) ###-####}", new object[] { iParsedValue });
}
}
}
}
However, when I export the grid to excel, the number is display merely just a string (Ex: 12223334444). MS Excel even report error that "Number stored as text field" on every cell in the column.
>? RadListBox2.ClientChanges
Count = 2
[0]: {Telerik.Web.UI.ClientOperation<Telerik.Web.UI.RadListBoxItem>}
[1]: {Telerik.Web.UI.ClientOperation<Telerik.Web.UI.RadListBoxItem>}
Is there a way to access these items in a server side postback? Thanks
function OkClicked(sender, args) { document.getElementById("<%=btnConfirm.ClientID %>").set_enabled(false); }<telerik:RadButton ID="btnConfirm" runat="server" OnClick="btnConfirm_Click" Enabled="true"> <Icon SecondaryIconCssClass="rbOk" SecondaryIconRight="4" SecondaryIconTop="4" /></telerik:RadButton>document.getElementById("<%=btnConfirm.ClientID %>").disabled = true;Hello,
I've added 9900 + words to the default .TDF dictionary file using the Dictionary Configurator downloaded from another forum here at Telerik.
While testing some of the words, all medical in nature, I don't seem to have consistent suggestions.
For example I enter zygapophy and I should get zygapophyseal, zygapophyses, and zygapophysis as suggestions but I only receive the last two. In my dictionary I have the following entries:
zygapophyses:SKPF:SKPF
zygapophysis:SKPF:SKPF
zygapophyseal:SKPF:SKPF
I have a total of 159,596 words in the default .TDF file. Using the Custom Dictionary is not an option because of my security/network set up.
I loaded a list of words into a word document with a .TXT extension then used the Dictionary Configurator to load all of them to the existing .TDF list - this was successful. I used the DC to test this same scenario and it works perfectly but in my application I'm experiencing the issue I stated above - missing zygapophyseal from the suggestion list.
I assume the spell checker uses the second and third columns to help group words for the suggestion list, but in this case it seems not to work correctly.
Have any ideas/suggestions?
Thanks in advance,
Dan
PS. I'm using VS.Net 2008 and C#
Private Function Get_CountGridCheckBox(ByVal SelGrid As RadGrid, ByVal ColName As String, ByVal ChkBoxVal As Boolean) As Integer Dim RtnVal As Integer Dim currentPageIndex As Integer = SelGrid.CurrentPageIndex 'Set initial value to zero RtnVal = 0 For i As Integer = 0 To SelGrid.PageCount - 1 ' Loop current page and count check box values For Each item As GridDataItem In SelGrid.Items Dim CheckBx As CheckBox = DirectCast(item(ColName).Controls(0), CheckBox) Dim CheckBxVal As Boolean = CheckBx.Checked If CheckBxVal = ChkBoxVal Then RtnVal += 1 End If Next ' Go to next Grid page currentPageIndex += 1 If currentPageIndex >= SelGrid.PageCount Then currentPageIndex = 0 End If SelGrid.CurrentPageIndex = currentPageIndex SelGrid.Rebind() Next 'Return Result Return RtnVal End Function