Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
62 views
Hi
How can we manipulate a rad upload inside a user control cause it return  UploadedFiles.count as 0. 
Thank you
Med
Top achievements
Rank 1
 answered on 04 May 2012
2 answers
139 views
Hi,

I have Radupload control in .ascx file some thing like this.

<tel:RadUpload ID="ruConsent" runat="server" AllowedFileExtensions="jpg,jpeg,png,gif,pdf,doc,docx,xls,xlsx"
                           ControlObjectsVisibility="None" Height="24px" MaxFileSize="10485760">
                       </tel:RadUpload>

On Submit button's Click event on code behind

i have written liek this:
if (ruConsent.UploadedFiles.Count > 0 && ruConsent.InvalidFiles.Count == 0)
{
// upload file
}
else
{
//Show error message that files are not valid
}

but i always ruConsent.UploadedFiles.Count remains 0. If i put it out side of RadAjaxPanel then it is working fine. But when kept inside it is not working. Any idea why ?
Med
Top achievements
Rank 1
 answered on 04 May 2012
1 answer
75 views
Hello,

Is it possible to customize the HTML tags written by RADEditor when a modification is made in the content (eg. adding comment, adding hyperlink, changing text to bold etc).  I need to modify the tags in order to add information about the user who is making the change.  This enables me to track changes in a document.

Thanks,
James
Rumen
Telerik team
 answered on 04 May 2012
1 answer
134 views
Hello
Is it possible  to set PromptChar for RadMaskedTextBox via javascript, something like

var Addr = $find(idAddr);

Addr._setPromptChar("_");

Thanks, Alex.

Princy
Top achievements
Rank 2
 answered on 04 May 2012
1 answer
147 views
what is the fastest way to remove nodes on the client side? I am using 
node.get_parent().get_nodes().removeAt(0)
to get this functionality, but it looks to take comparatively more time, like to remove 200 nodes it takes around 2-3 seconds. Is there any other efficient method/way to achieve this.
Plamen
Telerik team
 answered on 04 May 2012
1 answer
64 views
radtreeview has addNodesTo() method for faster adding a treenodecollection to the treeview. Do we have some simillar kind of method even to insert a treenodecollection to the treeview on the client side. Right now we can only insert one record at a time in the treeview, so is there some way to insert a collection of nodes to the treeview on the client side so that the output is fast.
Plamen
Telerik team
 answered on 04 May 2012
0 answers
120 views
Hi,
I used following code in my page.

<%

 

@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %>

<

 

 

form id="form1" runat="server">

 

 

 

<telerik:RadScriptManager ID="RadScriptManagerCP" runat="server">

 

 

 

</telerik:RadScriptManager>

 

 

 

<table cellpadding="0" cellspacing="0" border="0">

 

 

 

<tr>

 

 

 

<td>

 

Est Prod Date

 

&nbsp;</td>

 

 

 

<td style="padding-right: 20px">

 

 

 

<table border="0" cellpadding="0" cellspacing="0">

 

 

 

<tr>

 

 

 

<td>

 

 

 

<asp:TextBox ID="prodDT" runat="server"></asp:TextBox></td>

 

 

 

<td>

 

 

 

<asp:Panel ID="panelProdDT" runat="server">

 

 

 

</asp:Panel>

 

 

 

</td>

 

 

 

</tr>

 

 

 

</table>

 

 

 

</td>

 

 

 

</tr>

 

 

 

<tr><td><asp:TextBox runat="server" ID="txt" TextMode="MultiLine"></asp:TextBox></td>

 

 

 

<td><telerik:RadSpell ID="spell1" Runat="server" ControlsToCheck="txt" IsClientID="true" ButtonText="Spell Check"/></td></tr>

 

 

 

</table>

 

 

 

 

</form>

Now the page is throwing error.
 

 

Object reference not set to an instance of an object.

 

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[NullReferenceException: Object reference not set to an instance of an object.]
   OboutInc.Calendar2.ScriptManagerHelper.RegisterHiddenField(Control control, String name, String value) +145
   OboutInc.Calendar2.Calendar.OnPreRender(EventArgs e) +190
   System.Web.UI.Control.PreRenderRecursiveInternal() +103
   System.Web.UI.Control.PreRenderRecursiveInternal() +175
   System.Web.UI.Control.PreRenderRecursiveInternal() +175
   System.Web.UI.Control.PreRenderRecursiveInternal() +175
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2496

But when i remove RadSpell control's tag calender control is working fine.
Please suggest.
Amit
Top achievements
Rank 1
 asked on 04 May 2012
2 answers
300 views
Hi,

I have a few questions to ask. I'm not able to update the data and select the item from the dropdownlist.
I have the code here. It is the exact same things i refer from ( http://demos.telerik.com/aspnet-ajax/grid/examples/dataediting/alleditablecolumns/defaultvb.aspx# ). Only change the dropdownlist to ItemTemplate
because it is not populate from the databinding.

<telerik:GridTemplateColumn HeaderText="Branch" SortExpression="Branch" UniqueName="TemplateColumn"
    EditFormColumnIndex="1">
    <ItemTemplate>
        <asp:Label runat="server" ID="lblBranch" ><%# DataBinder.Eval(Container.DataItem, "Branch")%></asp:Label>
    </ItemTemplate>
    <EditItemTemplate>
      <asp:DropDownList ID="DropDownList1" runat="server" >   
        <asp:ListItem Value="KL" >KL Head Office</asp:ListItem>       
        <asp:ListItem Value="PG" >Penang</asp:ListItem>  
        <asp:ListItem Value="JB" >Johor Bahru</asp:ListItem>
      </asp:DropDownList
    </EditItemTemplate
</telerik:GridTemplateColumn>

If I put SelectedValue='<%# Bind("Branch") %>'  at the EditItemTemplate I can update the data but
I cannot add new record. It will appear this error:
Microsoft JScript runtime error: Sys.WebForms.PageRequestManagerServerErrorException:
'DropDownList1' has a SelectedValue which is invalid because it does not exist in the list of items.
Parameter name: value
And if I remove the SelectedValue, I can add new record but I cannot update the data.
It will appear this error:
User with ID 3 cannot be updated. Reason: Cannot insert the value NULL into column 'Branch', table 'eDMS42.dbo.TblBranchApprover'; column does not allow nulls. UPDATE fails.
The statement has been terminated.
It's been bugging me for a week now. Please help me out.
Sheila
Top achievements
Rank 1
 answered on 04 May 2012
1 answer
521 views
Hi,

I am having a radcombobox which gets populated in ItemsRequested event.I have set IsCaseSensitive to false.All my Items are in uppercase.When i enter an uppercase text it filters correspondingly and i am able to get selectedvalue but when i enter a lowercase text it filters but unable to take selectedvalue.

Plz help
Thnx in advance
Princy
Top achievements
Rank 2
 answered on 04 May 2012
3 answers
114 views
Hello Team,


I am working with RadEditor,when i was  using radeditor
control with Framwork 4.0 i found a extra Rectengulr box at 
the bottom of Radeditor .But as the same control ,when i am 
using with framwork 2.0, its not shown,that i exactlly want.

So,tell me how i can set invisibale mode or remove that
Rectangular Bottom Box


i also attached a simple snap shot hopfully .It's helpfull
for team understanding about issue.
Alok
Top achievements
Rank 1
 answered on 04 May 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?