Telerik Forums
UI for ASP.NET AJAX Forum
14 answers
727 views
I have a user control which I am using for Edits and Inserts. The usercontrol has properties on it that need to be set when rendered or when the editcommand is issued. I am trying to find the usercontrol in the RadGrid so that I can set its properties before it is shown in the edittemplate. The properties that need to be set change the user controls appearence when it is shown and the way it processes data, so the properties have to be set before data is bound....I have tried many events (the EditCommand follows) but the uc cannot be found and is allways Nothing/null.

 

 

Private Sub rg_EditCommand(sender As Object, e As Telerik.Web.UI.GridCommandEventArgs) Handles rg.EditCommand

 

 

 

    Dim uc As UserControl = CType(e.Item.FindControl(GridEditFormItem.EditFormUserControlID), UserControl)

 

    lbl_test.Text =

 

CType(uc, uc_Steps_Party).ID 'this is where the error occurs because uc == Nothing

 

 

 

End Sub

 

I have also tried:
EditCommand

ItemDataBound

ItemCreated

ItemCommand

Always a null exception refering tot he usercontrol.

The Telerick examples seem to only show finding the usercontrol (after) it has renedered like in the UpdateCommand or InsertCommand. I need to find the user control and set its properties before it gets to those events, when the usercontrol is first shown.


reguapo
Top achievements
Rank 1
 answered on 20 Mar 2014
4 answers
128 views
Hello

I add programmaticaly Tab on my TabStrip,
but if the user Refresh the WebPage, i loose My TabStrip and Multipage.

It's possible to Save Tab and Multipage when the user press F5 ?

this sample can  help or not ? : http://demos.telerik.com/aspnet-ajax/tabstrip/examples/application-scenarios/persisting-tabstrip-settings/defaultcs.aspx

Cause the restore not work , for Multipage.

thanks for your help
Olivier,
Olivier
Top achievements
Rank 2
 answered on 20 Mar 2014
3 answers
230 views
How do I hide the control if the SqlDataSource does not have any records?

I tried to get the items.count but it does not seem to work in PreRender or DataBound.

Marty
Marin Bratanov
Telerik team
 answered on 20 Mar 2014
1 answer
172 views

We're experiencing this on our own site, but I also reproduced it in the Default Example for RadEditor.  Steps to take:

  1. Open the example.
  2. Go to the HTML tab and delete ALL the content.
  3. Go to the Preview tab.  Preview content is blank, of course.
  4. Go to the Design tab.  Click anywhere in the editor. The cursor will not appear.
  5. Type any letter and suddenly the cursor appears.  Backspace to delete that letter (so the editor content is empty again) and the cursor remains.
Ross Presser
Top achievements
Rank 1
 answered on 20 Mar 2014
2 answers
601 views
How set RadDatePicker DatePopupButton-ToolTip visible to false?
I vant to remove the tooltip text "Open the calendar popup" Se attached image....
This not work RadDatePicker DatePopupButton-ToolTip=""
Kjell
Top achievements
Rank 1
Iron
Iron
 answered on 20 Mar 2014
1 answer
388 views
Hi Folks - Apologies in advance, this may not be the best place to post.

I have an ASP.NET 3.5 app.  I have a page with a multi-select listbox, a button, a radgrid and a SQL datasource.  The datasource has one param that looks sorta like this ...

<asp:ControlParameter Name="Param1" ControlID="lstParam1" PropertyName="SelectedValue" />

so, currently, without any extra code, only the first selected value from the listbox is passed to the sql datasource.

I have code to make a comma sep list of the multi selected values, and I have a sproc for list_to_table type functionality so thats not the problem.

Problem is that Im having a hard time finding the right event to use to override the default value of this param. 

I can supply more markup/code if needed.

Any help is appreciated ... apologies agian if Im using the wrong forum.
Konstantin Dikov
Telerik team
 answered on 20 Mar 2014
3 answers
157 views
Hi,
Does anyone have any experience as how to display negative value in Pie / donut using htmlcharts?

Thanks,
Danail Vasilev
Telerik team
 answered on 20 Mar 2014
3 answers
63 views
I'm not sure quite how to begin.  I have pages using tabbed set up (RadTabStrip/RadMultiPage/RadPageView, etc)

The idea of this setup is that under certain conditions the second tab becomes visible to permit entry of additional data.  Up till now I've used ASCXs as preloaded preset forms that are hidden/exposed as needed.  There are only a few of them.

Future developments may have made this impossibly complex.  What I have tried in the past is to load the ASCXs dynamically but so far I have not been able to get that to work.

Does anyone have any suggestions regarding a better way to handle the loading of multiple varied forms, either using Ajax or JavaScript?
Ivan Zhekov
Telerik team
 answered on 20 Mar 2014
3 answers
178 views
There is a column (B) in my grid that is read only and it's value is dependent on the value of another column (A).

What I'd like is for the value of B to be updated when the row is in edit mode (or insert) and the value of A is changed. So for example when the input box for value A changes or loses focus. Because if the value of B isn't retrievable, then the value of A is invalid I'd like to notify the user of this before they save the invalid record.
Makes sense? Can anyone help?

I can see an easy way to do this for insert by extracting the insert from the grid, but I'd like to keep it in the grid if possible to match edit mode.
Viktor Tachev
Telerik team
 answered on 20 Mar 2014
6 answers
246 views
I am using version 2013.3.1114.45.

I had this code to my Page_Load event:

RadFileExplorer1.TreeView.EnableDragAndDrop = false;
RadFileExplorer1.Grid.ClientSettings.AllowRowsDragDrop = false;

But, I can still drag items in the client.  I added events to cancel the process, but I don't even want the animation to show.
Vessy
Telerik team
 answered on 20 Mar 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?