Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
518 views

This was the previous code in aspx file (done by previous developer)

 

  <radG:RadGrid ID="uxUsers" runat="server" RadControlsDir="~/RadControls/" AllowPaging="False"  HorizontalAlign="NotSet">        
        <MasterTableView AllowMultiColumnSorting="True" AllowSorting="True" ShowFooter="False" AutoGenerateColumns="False">           
            <Columns>
                <radG:GridBoundColumn DataField="name" HeaderText="Name" ReadOnly="True" UniqueName="name" />        
                <radG:GridBoundColumn DataField="email" HeaderText="Email" ReadOnly="True" UniqueName="email" /> 
               </Columns>
        </MasterTableView>
    </radG:RadGrid>

 

and the code behind it is 

  Private Sub BindEmployerUsers()
        uxUsers.DataSource = DB.GetData("SELECT eu.id, u.email, u.name + ' ' + u.surname AS name, CASE WHEN u.emailverified IS NULL THEN 'No' ELSE 'Yes' END AS emailverified, u.active FROM EmployerUser eu INNER JOIN [User] u ON eu.userid = u.id WHERE u.deleted = 0 AND  eu.employerid = " & Employer.ID)
        uxUsers.DataBind()
    End Sub

 

 

That was working fine. now i have added another column 

 

 <radG:RadGrid ID="uxUsers" runat="server" RadControlsDir="~/RadControls/" AllowPaging="False"  HorizontalAlign="NotSet">        
        <MasterTableView AllowMultiColumnSorting="True" AllowSorting="True" ShowFooter="False" AutoGenerateColumns="False">           
            <Columns>
                <radG:GridBoundColumn DataField="name" HeaderText="Name" ReadOnly="True" UniqueName="name" />        
                <radG:GridBoundColumn DataField="email" HeaderText="Email" ReadOnly="True" UniqueName="email" /> 
                <radG:GridBoundColumn DataField="primaruser" HeaderText="PrimarUser" ReadOnly="True" UniqueName="PrimarUser" /> 

              </Columns>
        </MasterTableView>
    </radG:RadGrid>

 

and the code behind this is 

 

    Private Sub BindEmployerUsers()
        uxUsers.DataSource = DB.GetData("SELECT  eu.id, u.email, u.name + ' ' + u.surname AS name,  CASE WHEN eu.id=e.primaryemployeruserid  THEN 'yes' ELSE 'No' END AS PrimaryUser, CASE WHEN u.emailverified IS NULL THEN 'No' ELSE 'Yes' END AS emailverified, u.active FROM Employer e INNER JOIN EmployerUser eu on e.id=eu.employerid INNER JOIN [User] u ON eu.userid = u.id WHERE u.deleted = 0 AND  eu.employerid = " & Employer.ID)
        uxUsers.DataBind()

    End Sub

 

but i get 'System.Data.DataRowView instead of real value.

 

how to fix this

Doncho
Telerik team
 answered on 17 Sep 2020
24 answers
235 views

Hello

I want to be able to open the 'find-and-replace' popup outside of the parent RadEditor window.  Is there any way to do this?

Thanks
Raka

Sandhia
Top achievements
Rank 1
 answered on 17 Sep 2020
3 answers
633 views

I have grid where data is grouped and some of columns are not displayed. Column header context menu is enabled, so user can add columns to be shown in grid.

 

Main problem is when user hide/show columns, group header row does not change with columns. I have pictures for these situations.

Problem 1: When user add columns to show, group header row does not grow to fill whole grid, pictures & explanations
1. Starting situation at end of grid where 13 columns are displayed
2. User open context menu from header
3. User select one column to show (in this case Insp. point after AWW Date will be added some point before captured picture area)
4. Column has added to grid in its own place, but at the end of grid group header row is missing one column style fill.
5. When changing runtime code to group header row colspan from 13 to 14 (originally 13 columns to show now 14) last column

Problem 2: When user remove columns to show, group header row does not get smaller with columns count, pictures & explanations
6. When user is hiding columns, now removed two columns from that added one situation
7. Group header row stay with 13 columns and “data” area columns get white area

Group header row will correct itself if whole grid is refresh/rebind but I would not like to do that because it is then doing whole page reload and "flash" the screen so is there any way to do that in client side code? 

Attila Antal
Telerik team
 answered on 17 Sep 2020
10 answers
420 views
I'm trying to bind data to the combobox using my own ITemplate and then insert new items as separators to simulate grouping of the items in the list.  My tests so far have indicated that while it is possible to add a separator to the list of items after databinding, the text of the inserted item does not show.  What I'd like the list of items to look like is something like:

* Separator Item (With Text Showing)
* Templated Item
* Templated Item
* Separator Item (With Text Showing)
* Templated Item
* Templated Item
* Templated Item

I've got a bunch of client-side events hooked in - all of which work great - which is why I figured it would be easiest to add separator items since they can't be clicked.  But without the text in the separator item the groups don't make sense.  Any ideas?
Peter Milchev
Telerik team
 answered on 17 Sep 2020
0 answers
109 views

I am new in RadCloudUpload in Telerik. I am working on Amazon s3 Bucket. When I am uploading small images  with size 87.9 KB (ex: sample1.jpg) it is working fine with RadCloudUpload control but when I am trying to upload another image with size 4.15 MB (ex: sample2.jpg) , the control is firing an error saying "Size validation failed". I am using the below mentioned code: 

 <telerik:RadCloudUpload ID="RadCloudUpload1" runat="server" MaxFileSize="3145728" RenderMode="Lightweight" MultipleFileSelection="Automatic"  OnFileUploaded="RadCloudUpload1_FileUploaded" ProviderType="Amazon" >
        </telerik:RadCloudUpload>

 

I have tested the same from below link also (same issue exist) :

https://demos.telerik.com/aspnet-ajax/cloud-upload/examples/overview/defaultcs.aspx?show-source=true

I am following -- https://docs.telerik.com/devtools/aspnet-ajax/controls/cloudupload/cloud-storage-providers/amazon-s3

 

How to resolve the issue as I need to upload large size file(Images, PDF, Doc and etc) in Amazon S3 server.

Thanks.

 

Soumen
Top achievements
Rank 1
Veteran
 asked on 16 Sep 2020
5 answers
160 views

     Hi, Looking at this demo with the Material skin, I was wondering if it was possible to show the text below the image?

https://demos.telerik.com/aspnet-ajax/wizard/overview/defaultcs.aspx?skin=Material

 

Doncho
Telerik team
 answered on 15 Sep 2020
2 answers
82 views

When I run my application using RadScheduler from Visual Studio, everything works properly.

When I publish it to an Azure Web App, some of the features stop working.

My default view is Week. I can create, edit, adjust or move appointments within that week without any issues.

  • I can't use the back/forward arrow keys to select a different week
  • I can't switch to a different view (Day, Month, Agenda)
  • I can't use the arrow keys to select a different week.

I have the latest version of Telerik UI for ASP.NET Ajax installed along with the latest version of Visual Studio 2019.

I'm not getting any error messages of any sort. The most frustrating part is that when I go back to my development environment to try to diagnose the problem (inside Visual Studio) everything works properly. So, I'm at a loss to explain why it would behave differently on Azure than inside Visual Studio.

 

Greg
Top achievements
Rank 1
Veteran
 answered on 15 Sep 2020
3 answers
191 views
Hi,

We are working on a RadPanelBar upgrade initiative. We are currently using RadPanelbar.Net2 (v2.0.50727) and want to upgrade it to the latest version (Latest Version is 2020.2.617).

The problem we are facing at the moment is:

- RadPanelBar requires Script Manager added to the page. In our implementation RadPanelBar is added to Master Page and so it requires a form tag having Script Manager on it.
- Some of the child pages in our case don't have form on them but there are instances where Child pages do have form on them. So, in these cases application stops working because the child page form becomes nested.
- We tried to resolve nested form issue by dynamically creating Form from Code-behind but it is not working as per expectations.

Is there any possibility to use RadPanelBar without Script Manager - this way it will become the save as of v2.0.50727?
Peter Milchev
Telerik team
 answered on 15 Sep 2020
1 answer
357 views

Hi,

How can we set source for video in client side using radmediaplayer..I'm struggling with this problem can someone help me on this issue

Thanks,

Yogesh Kumar

Eric R | Senior Technical Support Engineer
Telerik team
 answered on 14 Sep 2020
1 answer
649 views

Hi,

I am currently working on a problem where I have to add a radComboBox in editItemTemplate.

Background: The radGrid I am using is being added from the codebehind. All the columns are being added from the code behind too and are based on a local DataTable. The Grid is in BatchEditMode and has a RadAjaxManager used with it. It saves the change to the table as soon as the change is made. It is handled by calling SaveChanges function from javascript of cell value changed.

Problem: I need to add an ItemTemplate column to radGrid for a column in DataTable which has multiple values in it. Lets call this column as Tags. The values stored in it are either {Tag1}, {Tag2}, {} or {Tag1, Tag2}. It shows that multiple values(or no values) can be associated with one record. I need to be able to select these items or unselect them and then trigger the cell value changed function or any other function in the codebehind.

 

Can someone help me with a demo for this problem please? I am open for changing it to some other control if RadComboBox is not a good item to be used here.

Thanks in advance,

Swanand Nalawade

Doncho
Telerik team
 answered on 14 Sep 2020
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?