Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
100 views

Hello everyone, need help if possible...
I'm currently trying to hide the "Cancel" on my edit form and leave the Update visible

Here's how my editforms looks like

 

<

 

EditFormSettings>

 

 

<EditColumn UniqueName="EditCommandColumn" ButtonType="ImageButton" UpdateImageUrl="Images/update2.png" CancelImageUrl="Images/cancel.png" Visible="True">

 

 

</EditColumn>

 

</

 

EditFormSettings>

 

 

 

If I change the Visible to = false it hides both.

Any help is greatly appreciated, I'm currently new to Telerik

Thanks!

aj
Top achievements
Rank 1
 answered on 11 Jul 2012
1 answer
111 views
hi everyone

by using RadUpload inside RadGrid  how can i send path to database and  store file in an folder ..... i tested some of the code but i didn't succeed

i am using C#
Bozhidar
Telerik team
 answered on 11 Jul 2012
4 answers
164 views
Hi,
  I have multi-line radTextBox used all over my application. I want to associate a generic validation across all these multi-line radTextBoxes. To accomplish that, I thought of using jQuery to find control of type textarea (found this through firebug) and called my validation function. All this is fine. I'm able to trigger validation. One part where I didn't succeed is in my validation function, I'm using args which is not getting passed when I trigger it through jQuery. Is there a way to get around this problem?

To give you code example, in the below code, args is not defined when I try to add validation dynamically
$('textarea').keypress(function (sender, args) {
            ValidateSpecialCharcters(sender, args);
        });

        function ValidateSpecialCharcters(sender, args) {
           if(validation condition fails)
                args.set_cancel(true);
            }
        }

any ideas?

~/Ananth
Ananthalvan
Top achievements
Rank 1
 answered on 11 Jul 2012
2 answers
109 views
Hi,

I'm being given data from our DAL which returns properties, such as ParentContent.ID, however when I pass this to the TreeView it fails on databind, please see my below code:

this.rtv_LeftMenu.DataSource = contentList;
this.rtv_LeftMenu.DataTextField = "Title";
this.rtv_LeftMenu.DataFieldID = "ID";
this.rtv_LeftMenu.DataValueField = "ID";
this.rtv_LeftMenu.DataFieldParentID = "ParentContent.ID";
this.rtv_LeftMenu.Style.Add("margin", "5");
this.rtv_LeftMenu.Style.Add("padding", "5");
this.rtv_LeftMenu.DataBind();

At run time I get a NotSupportedException saying it can't find the property ParentContent.ID. I have checked to make sure the property exists and is accessible. Please let me know if there is a way to get the TreeView control to accept properties like this?

I had this working with our previous DAL, so am confident that everything else is working correctly.

Many thanks.
Anthony
Top achievements
Rank 1
 answered on 11 Jul 2012
3 answers
89 views
The spell check control inserts a newline when the control is empty. Is there anyway i can avoid that. I have attached a screenshot of the problem.

One way i was thinking about doing it was dynamically adding/removing controls to the spellcheck depending on the content of the controls.

You can reproduce the behavior on your demo page.
http://demos.telerik.com/aspnet-ajax/spell/examples/multiplechecks/defaultcs.aspx
Jack
Top achievements
Rank 1
 answered on 11 Jul 2012
6 answers
160 views
Hi..

ok.. established a working setup on a content page which included a radcalendar and radgrid control that when the date is clicked it selects and displays data on the rad grid.

W hat I want to do now is place the radcalendar on my master page so that when I select a date I can update the content displayed on my radgrid and update the content page's datasource. I'm unsure how to reference a control on my content page from the master..

is there a working example somewhere?
Jake
Top achievements
Rank 1
 answered on 11 Jul 2012
0 answers
232 views
Hi,

I am working on one simple ASP.Net page which has very few controls (textbox, combo box and search button) apart from two separate Radgrid controls. 

I am attaching data coming from WCF service after hitting Search button. The data coming from WCF is also correct and comparatively small in size. (15 -20 records at the max).

This scenario is works for other pages on the application except one page, I am getting following JavaScript error while loading ViewState-  Microsoft JScript runtime error: Sys.WebForms.PageRequestManagerServerErrorException: Failed to load viewstate.  The control tree into which viewstate is being loaded must match the control tree that was used to save viewstate during the previous request.  For example, when adding controls dynamically, the controls added during a post-back must match the type and position of the controls added during the initial request.

So I managed to display data by using following settings

EnableViewState="true" ViewStateMode="Disabled".

But the issue is I want to use inline edit mode for insert and some other events are also not fired with disabled viewstate.

I would like to know what might go wrong with the radGrid and i am getting the above error?
This behavior is not observed on other ASP.Net pages on the site.

During testing, i just binded data to simple code like
<rad:RadGrid ID="grAccruals" runat="server" /> and got view state error
and I am able to display data with
<rad:RadGrid ID="grAccruals" runat="server" EnableViewState="true" ViewStateMode="Disabled"/>

Can anybody help me on debugging this issue? Which area I should look for to enable view state?

Thanks in advanced.

Mandy
Top achievements
Rank 1
 asked on 11 Jul 2012
1 answer
87 views
Hello
I have the following ASPX code

<telerik:RadNumericTextBox ID="Tmonto" runat="server" SkinID="campoNT">

This used to render as the following HTML code prior to the upgrade (formatting tags removed)
<input name="ctl00_CP1_Tmonto_text" class="riTextBox riEnabled" id="ctl00_CP1_Tmonto_text"&nbsp; type="text" />


But now it renders as:
<input name="ctl00$CP1$Tmonto" class="riTextBox riHover" id="ctl00_CP1_Tmonto"&nbsp; type="text" />


The control ID has changed!? However, I have a lot of script code that references "ctl00_cp1_Tmonto_text"  !
Do I need to change all such code? Is there some setting that allows "old style" rendering? Which are now the "rules"? is" _text" no longer appended?

Kostadin
Telerik team
 answered on 11 Jul 2012
1 answer
227 views
In a radtreeview I need to change the text colour when expand. i.e. nodes should have a different colour if it get expanded once.
Princy
Top achievements
Rank 2
 answered on 11 Jul 2012
3 answers
91 views
I have a grid with a very large number of columns (40+). We hide most by default, but we need to be able to show/hide all of them. Because there are so many columns, the 'Columns' menu in the HeaderContextMenu has become unusably large, especially on lower resolution screens. I'd like to split this menu into several much smaller menus. I've been able to add more menus to the HeaderContextMenu and move items from the 'Columns' menu into my new menus, but once I move the items, they no longer function. How can I split them into multiple menus and have them still behave as expected?
Maria Ilieva
Telerik team
 answered on 11 Jul 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?