Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
85 views
I'm working on an application that allows multiple people to collaborate on a document. Ultimately, the document has a single document owner, and multiple contributors. The document owner is the only one that can accept/reject changes.  I've found the client-side method set_canAcceptTrackChanges, but I'd still like for the user to be able to remove their own comments/changes. I was hoping there was some client-side method I could use to check when the context menu pops up. Any suggestions?
Rumen
Telerik team
 answered on 30 Apr 2019
2 answers
303 views

I am using RadGrid (2018.3.910.40) with the EnableHeaderContextMenu="true" to allow user to show/hide any columns of the grid.  Due to the number of columns being displayed in the grid vertical scrolling is needed.  On first load the grid displays 5 columns, if I right-click on any of these columns I can select the option "Select Columns" and a list of all the columns appear and each one is checked.  Now if I scroll to display the next 5 columns and right-click to select columns, the columns 2-4 are shown but are not checked anymore.  if I scroll again to display the next five, then columns 2-10 are no longer checked and this continue.  If I scroll to show the previous columns then those columns are shown as checked.  This happens on all browsers.

Any ideas?

 

John
Top achievements
Rank 1
 answered on 30 Apr 2019
3 answers
112 views

Is it possible to drag lines similar to following example?

https://bl.ocks.org/denisemauldin/538bfab8378ac9c3a32187b4d7aed2c2

Thank you

Vessy
Telerik team
 answered on 30 Apr 2019
3 answers
174 views

Hello,

I'm trying to use ImageEditor in one of our projects.

I would need to draw a line (or rectangle) over an existing image but without the mouse. The user will have to specify the coordinates in an input box and then a line is drawn.

So far, I've been able from client side to change the tool to pencil : radImageEditor1.editImageOnServer("Pencil", commandText, customArgument, callbackFunction);

But I can't found a way to draw from the client code.

Could you please tell me if this is possible or drawing is only allowed by using the mouse?

Regards,

Sabine

 

Vessy
Telerik team
 answered on 30 Apr 2019
4 answers
720 views
Hi,

I'm new user of the Telerik Controls and I have a question . . . 

I have a search screen where users can search data using various criteria.  One of the criterion is specified by making a choice in an asp.net dropdownlist.  When a certain choice is made I want to do a postback from the dropdownlist.  However, when I do this the Radgrid "NeedDataSource" Event fires.  Is there any way I can prevent the "NeedDataSource" Event from firing?  Or, is there a way to determine where the "NeedDataSource" Event was called from?  I don't need this event to fire in this case.

Thanks,

Andy 
Peter Milchev
Telerik team
 answered on 30 Apr 2019
1 answer
528 views

I have a wizard that will step users through an application and we allow users to leave the application process and return later.  We obviously don't want them to lose any progress they made previously so we store the data in the database.  What I am looking to do is if data exists for step 1, load it, Save data on clicking "Next", then load step 2 (if data exists), save on "Next", etc.. through the process.  I have the code to save the data but not sure of what RadWizard Function I should be referencing to load current step data.  Here is what I have for when they click "Next"

Private Sub RadWizard1_ActiveStepChanged(sender As Object, e As EventArgs) Handles RadWizard1.ActiveStepChanged
    Dim activeStepIndex As Integer = TryCast(sender, RadWizard).ActiveStep.Index
    If activeStepIndex = 1 Then
        SaveStep1()
    ElseIf activeStepIndex = 2 Then
        SaveStep2()
    ElseIf activeStepIndex = 3 Then
        'UploadFiles()
    End If
 
End Sub
Peter Milchev
Telerik team
 answered on 30 Apr 2019
1 answer
270 views

I have an autoCompleteBox fed with values from an XML file that I want to display all possible options when a user clicks into it (i.e. without them typing any letters in there)

<telerik:RadAutoCompleteBox RenderMode="Lightweight" ID="racbUserAccessList" runat="server"  Width="300"
   DropDownHeight="150" EmptyMessage="Select User Access" DataTextField="Text" DataSourceID="XmlDataSource1"
   AllowCustomEntry="False">
 </telerik:RadAutoCompleteBox>
 <asp:XmlDataSource runat="server" ID="XmlDataSource1" DataFile="accessList.xml"></asp:XmlDataSource>

 

How to do that?

Peter Milchev
Telerik team
 answered on 30 Apr 2019
3 answers
470 views
Hi,

I am having difficulty with the RadGrid control (inside a user control) not databinding items by the PreRender event. The documentation says the lifecycle is as follows:

First page load:
Page.Load
Grid_Instance.NeedDataSource
Foreach Item in Grid_Instance:
   ItemCreated
   ItemDataBound
Page.PreRender

I am binding to a ObjectDataSource control:

  <telerik:RadGrid ID="rgProgrammes" runat="server" AutoGenerateColumns="False"
  DataSourceID="ods_Programmes" GridLines="None" Skin="Office2007">
                <MasterTableView DataKeyNames="pim_ID, CombinedCode" DataSourceID="ods_Programmes">

(i also bind to a GridView to check if that works)
Then in code behind I do a simple check for if it has databound :

    protected void Page_PreRender(object sender, EventArgs e)
    {
        int test = rgProgrammes.Items.Count; //result = 0
        int test2 = GridView1.Rows.Count; //result = 3
    }

Have I misunderstood something about the lifecycle of the RadGrid? When I insert breakpoints in my code, the Page_PreRender
event gets called before the RadGrid_DataBound event. This is giving me difficulty using a RadGrid in a user control
.

Any help would be appreciated.
Tom




Eyup
Telerik team
 answered on 30 Apr 2019
3 answers
162 views
Hi,

How to localize the "Remove token" text of the AutocompleteBox?

Thanks,
Martin
Peter Milchev
Telerik team
 answered on 29 Apr 2019
16 answers
929 views
hello
I have a radgrid with edittemplate controls in which there is a radasyncupload. When I upload a file I want to disable the Update button. So I have this code:


<telerik:RadScriptBlock ID="RadScriptBlock1" runat="server">
<script type="text/javascript">
alert("1");
var masterTable = $find('<%=rdgrd_Rassegna.ClientID%>').get_masterTableView();
alert("2");
 </script>
 </telerik:RadScriptBlock>

I can get no references to mastertableview, I see alert 1 but no alert 2.Where I am wrong?

Thanks
Eyup
Telerik team
 answered on 29 Apr 2019
Narrow your results
Selected tags
Tags
+? more
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?