Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
168 views

I have a table with a phone number stored as a long/nullable. (I can’t change it…)

All is well except for editing the record with an empty fax number in this case. An error dialog tells me that I don’t have a valid value for int64.

If I input a value of 0 in the radmaskedtextbox the record saves but then I have a 0 for the fax number. I need it to be blank/null if there is no number entered

Thanks for any help!

Bill

<telerik:GridBoundColumn DataField="AgencyMainFax" DataType="System.Int64" HeaderText="Main Fax" DataFormatString="{0:(###) ###-####}"  AllowFiltering="false" SortExpression="AgencyMainFax" UniqueName="AgencyMainFax">

</telerik:GridBoundColumn>

The edittemplate:

<telerik:radmaskedtextbox ID="RadMaskedTextBox2" runat="server" Mask="(###) ###-####"

Text='<%# Bind("AgencyMainFax") %>' Width="125px">

</telerik:radmaskedtextbox>

 

Maria Ilieva
Telerik team
 answered on 18 Sep 2008
1 answer
81 views
If i check a client select checkbox inside a grid and after pressing the button that particular row should be inserted.can you give me the code for this.what event should i use?how will i select that particular crow and insert into database.
Missing User
 answered on 18 Sep 2008
1 answer
217 views
I am trying to use this example:
http://www.telerik.com/community/code-library/submission/b311D-bcdkac.aspx

When I click on apply changes it does not save, I cannot even access the objects.  Is there a way that when you click apply changes it fires an event that does the work in the code behind and saving the grid in the updated order?
Missing User
 answered on 18 Sep 2008
2 answers
150 views
Is it possible to have a RadGrid where not every column in the RadGrid uses the google suggest-like filtering?  In the examples I saw, it almost looked like you have to use it for all columns in a particular RadGrid.  I have a few columns in my RadGrid where it makes sense to give the user a combobox with google suggest-like filtering, but there are also columns where it doesn't make sense.
librido
Top achievements
Rank 1
 answered on 18 Sep 2008
2 answers
235 views

Hi
     I want to know whether TreeView support radio button or not.
     And one more thing that can we arrange the different treeview's nodes into different rows of a tables
for better perception given below the e.g.

AVP - John Miller - Northern
     RM - Andrew Mill - NorthEast
         ARM - Nancy Stewart - NorthEast
          DM - K. Joyce - Upper NY
              TSR - Joe Young - Upper NY South
              PHR - Peter Fox - Upper NY East
              PHR - Sandra Smith - Upper NY West
              Intern - Monica Sorawski - Upper NY North
          DM - Nathan T. - North PA
     RM - Dan Ackman- NorthWest
          DM - Larry Kidman - South MD
          DM - Jacob Jenkins - North MD
     RM - Marcus Lego - SouthEast


Praveen
Top achievements
Rank 1
 answered on 18 Sep 2008
8 answers
147 views

I am using DNN 4.8.4 and defaulted HtmlEditor to RadEditor in the web.config.
I have a module which load the DnnEditor ("~/Controls/texteditor.ascx"), I am receiving the below mentioned error while loading the module:

A critical error has occurred.
The control collection cannot be modified during DataBind, Init, Load, PreRender or Unload phases.

When I switch back the "FckHtmlEditorProvider" as default there wont be any error. In this page I am using the RadAjax too.

I have downloaded the "RadControls_for_ASP.NET_AJAX_2008_2_723_dev.exe" and using it.

Could you please help me in resolving the above mentioned issue?

Thanks in Advance.

Regards,

Dax

Lini
Telerik team
 answered on 18 Sep 2008
2 answers
137 views
I have a RadTree inside an UpdatePanel and a Javascript function for ClientNodeExpanded event. I have everything inside the RadTree in a NodeTemplate. I am calling eventArgs.get_node() and then do a findControl but I am getting a javascript error saying "Object does not support his property or method" . Can you please tell me what I am doing wrong?
Below is my code snippet.

function ClientNodeExpanded(sender, eventArgs)
{
    var node = eventArgs.get_node();
    alert(node); //so far so good. I am getting [object object]  
    var hdNodeExpandCtrl = node.findControl("hdNodeExpand");
}

<asp

:UpdatePanel ID="RadTreeUpdatePanel" runat="server" ChildrenAsTriggers="false" UpdateMode="Conditional">
<ContentTemplate>
<telerik:RadTreeView ID="RadTreeView1" Width="100%" runat="server" ShowLineImages="False"
OnClientNodeExpanded="ClientNodeExpanded" Skin="Web20"OnClientNodeCollapsed="ClientNodeCollapsed" >
<NodeTemplate>
<div id="nodeEle" runat="server">
            <input type="hidden" id="hdNodeExpand" value="0" />
</div>
</NodeTemplate>
</telerik:RadTreeView>
</ContentTemplate>
</asp:UpdatePanel>

 

hbanerjee
Top achievements
Rank 1
 answered on 18 Sep 2008
1 answer
176 views
Hi, I am following the image gallery sample and it is working perfectly, however when I mouseover one of the thumbnails I would like to open the image up in a radwindow. I am binding the radcontrol to xml data. How can I do this? Thanks.
Georgi Tunev
Telerik team
 answered on 18 Sep 2008
1 answer
168 views
I use a custom stylesheet for the body of the editor to set the font and background colors. Here is what the css looks like:

body

{
font-family: Arial, Helvetica, san-serif; font-size: 11px;
background-color: #383838;
color: #fff;
}

But something wierd happens when using the editor. If I start typing in the editor without changing anything, the text looks just fine. But if I select the text i have entered, hit backspace to delete and type some more, the editor wraps that text in a <span> tag and applies a different background color to that text. Here is the markup the editor creates:

<span style="background-color: #383838">this is a test</span>

Normally this would be fine, but it just so happens that the page I am putting the output of the editor on does not always have the same background color so the text looks highlighted. Is there any way to prevent it from putting a background color unless specifically added via the text background tool?

Rumen
Telerik team
 answered on 18 Sep 2008
2 answers
141 views
Hi All,

I am using RadAjaxManager on an asp.net page and this page also includes a master page.

On running it gives the error.

The Controls collection cannot be modified because the control contains code blocks (i.e. ). at System.Web.UI.ControlCollection.AddAt(Int32 index, Control child) at Telerik.Web.UI.RadAjaxControl.MoveUpdatePanel(Control initiator, Control updated

Please suggest.
Maria Ilieva
Telerik team
 answered on 18 Sep 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?