Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
296 views
Hello,
 
I have a Radgrid with another radgrid in an Editform template.

An example of the structure below: 

Radgrid1
    Editform Template
                RadTab/multipage
                        Radgrid2
                                Master Table
                                        Detail1
                                            Detail2

I have a number things which I want to do server-side on the Details2 grid such as inserting footer fields, changing row colors etc.

How do I access the Radgrid2 and children server side (only Radgrid1 appears as a directly accessable object).
I'm new to ASP.Net programming so I'm probably missing something obvious. I'm used to dropping in a control and then being able to program against it server side immediately.

Thanks
Robert
  
Ramya
Top achievements
Rank 1
 answered on 04 Jan 2018
0 answers
78 views

Hi,

Is there any Telerik web control similar to wincontrol RadBrowseEditor.

In RadrowseEditor, we can dynamically set the file path in the Textarea of RadBrowseEditor through code.

In AsyncUpload , I could not find simiar functionality.

please suggest.

 

Thanks

Swarupa

 

swarupa
Top achievements
Rank 1
 asked on 04 Jan 2018
4 answers
355 views

Is it possible to insert a session variable in an SQLDataSource like so:

="SELECT * FROM Companies WHERE CompanyID = <%session(CurrentCompID)%>"

Afsah
Top achievements
Rank 1
 answered on 03 Jan 2018
0 answers
131 views
I observe a strange anomalous behavior of RadTreeView control from Telerik.Web.UI (version 2008.3.1314.35, runtime version v2.0.50727) under IE11 on Windows 10.  It is only on IE11 and only on Windows 10.  That is, the behavior is neither observed on Windows 10 in Chrome or Edge nor in IE11 on Windows 7 (not tested on Windows 8).  This behavior is not observed in any other Telerik control used by the application.

RadTreeView control has an option to highlight the node over which mouse is hovering.
The abnormal behavior in IE11 on Windows 10 is that Y coordinate of mouse cursor is misread by about 65 pixels (see the attached images).

Have anybody observed such issue and has the remedy?
Richard
Top achievements
Rank 1
 asked on 03 Jan 2018
0 answers
89 views

Hello,

so im trying to add a button to the first cell in the Filtermenu with a 'Clear all filters' functionality. However i cant seem to get a handle on the first cell.

Here's some testing that i've tried so far with various examples i've found over the internet.

Private Sub Grid_OnItemCreated(sender As Object, e As GridItemEventArgs)
            If e.Item.ItemType = GridItemType.FilteringItem Then
                Dim clearFilterButton = New RadButton() With {.ButtonType = RadButtonType.StandardButton,
                                                              .Height = 22,
                                                              .Width = 22,
                                                              .Text = "Clear Filter",
                                                              .ToolTip = "Clear all filters"}
 
                AddHandler clearFilterButton.Click, AddressOf ClearFilterButton_Click
                Dim grid As RadGrid = CType(sender, RadGrid)
 
                Dim firstcell = grid.Controls(0)
                firstcell.Controls.Add(clearFilterButton)
            End If
        End Sub
 
        Private Sub ClearFilterButton_Click(sender As Object, e As EventArgs)
            For Each grid As RadGrid In Controls.All().OfType(Of RadGrid)()
                grid.MasterTableView.FilterExpression = String.Empty
                grid.Rebind()
            Next
        End Sub

 

I cant seem to get it to do anything at all tho. Even just trying to hide the Filtermenu does not seem to do anything. And yes the event is firing, it is triggered in the basepage load. Is this the way to add a button to a filtermenu? Or is there a better way?

Regards

 

 

 

 

 

 

Johan
Top achievements
Rank 1
 asked on 03 Jan 2018
8 answers
277 views
Hello

When i use in the OrgChart , the business object to databinding ,it's work very well.

But if my Root guy on the OrgChart do not Containd parent_id == 0, the orgchart doesn't work ! and doesn't appear.

My customer use the multi level marketing (mlm) , and if the user root get a tree , it's possible his parent_id don't get a Zero in his value.

It's possible to correct in the OrgChart

id    parent_id
5       4
6       5
7       5
8       5

it' should be work.

thanks 
imane
Top achievements
Rank 1
 answered on 03 Jan 2018
3 answers
70 views

Hi,

  While user tabbing through the toolbar.and then press enter or spacebar on any of the toolbar icon's to select(like bold,italic or underline),focus is moving to RadEditor.Instead focus should remain on the toolbar's icon which ever user selected.

 

Thanks

Geeta

Marin Bratanov
Telerik team
 answered on 03 Jan 2018
0 answers
102 views
Hello

In what way can I save the values of a radcombobox with checkboxes in my database?

Then retrieve the values and show the selected checkboxes.

I use visual studio.net

I am an apprentice to the Telerik controls.
Juan Carlos
Top achievements
Rank 1
 asked on 02 Jan 2018
4 answers
350 views

I am trying to to use the AsyncUpload so that when a user chooses a file to upload via ajax it is sent to the server and put into a collection object with existing attachments associated with my form. Using a sample from the demos and documentation I have it doing, this, but I have an issue that when it uploads I want to clear the pending upload screen. Essentially I want to clear the UploadedFiles items when it does the ajax routine. However no matter what I do it won't work. I get an enumeration error when I use the clear method. Any help on this would be appreciated. Again all I want is when the upload file is selected an ajax call posts it back, it's added to a collection and then upload control is cleared so they can add more.

ASP.NET

<telerik:RadAsyncUpload ID="rulAttachments" runat="server" RenderMode="Lightweight" AutoAddFileInputs="false" Localization-Select="" MaxFileSize="5000000" OnClientFilesUploaded="OnClientFilesUploaded" OnFileUploaded="rulAttachments_FileUploaded" ></telerik:RadAsyncUpload>

 

Javascript

function OnClientClickingUpload(sender) {
    //sender.set_autoPostBack(false);
    $telerik.$(".ruFileInput").click();
}
 
(function (global, undefined) {
    var demo = {};
 
    function OnClientFilesUploaded(sender, args) {
        $find(demo.ajaxManagerID).ajaxRequest();
    }
 
    function serverID(name, id) {
        demo[name] = id;
    }
 
    global.serverID = serverID;
 
    global.OnClientFilesUploaded = OnClientFilesUploaded;
})(window);
 
//<![CDATA[
serverID("ajaxManagerID", "<%= RadAjaxManager.GetCurrent(Page).ClientID %>");
    //]]>

 

C#

protected void rulAttachments_FileUploaded(object sender, FileUploadedEventArgs e)
 {
     if (rulAttachments.UploadedFiles.Count > 0)
     {
         byte[] content;
             using (Stream str = e.File.InputStream)
             {
                 content = new byte[str.Length];
                 str.Read(content, 0, content.Length);
             }
             SelectedInventoryRequest.Attachments.Add(new BLL.FileAttachment { Id = "", Description = e.File.FileName, FileData = content, NewFile = true, FilePath = ConfigurationManager.AppSettings["DocumentumInProcessPath" + ConfigurationManager.AppSettings["CurrentRegion"]] + "/" + SelectedInventoryRequest.InventoryRequestID.ToString() });
 
         rulAttachments.UploadedFiles.RemoveAt(0);
 
         BindAttachments();
     }
 }

 

 

James Daresta
Top achievements
Rank 1
 answered on 02 Jan 2018
18 answers
867 views
I have a RadScheduler set like this:
<telerik:RadScheduler runat="server" DataEndField="EndDate"
        DataKeyField="TaskID" DataStartField="StartDate"
        DataSubjectField="Title" Skin="Web20" FirstDayOfWeek="Monday"
        LastDayOfWeek="Sunday" SelectedView="WeekView" OverflowBehavior="Expand"  
        DataSourceID="SqlDataSource1" ID="scheduler">

and on the web page when I double click and enter the all day event which is like more than 2 words long and click to save it, it shows but it's height stays the same i.e. it does not expand. If I enter the same text on any hour event it will properly expand.

Can somebody point me on what do I need to do to have the all day event expand so the user can see the whole text entered?

Thank you,
Dragan B.



Marin Bratanov
Telerik team
 answered on 02 Jan 2018
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?