Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
52 views

I have 2 RadGrids on the page one above the other

I use data entity for data source and The first RadGrid  data source is this

protected void RadGrid1_NeedDataSource(object sender, Web.UI.GridNeedDataSourceEventArgs e)
        {
            var result = from r in DbContext.LinkAnalysis
                         where r.LinkAnalysisCreator == dbuser
                         select r;
            RadGrid1.DataSource = result.ToList();
        }
 

The second Rad Grid Data source is this

 

protected void SubjectRadGrid_NeedDataSource(object sender, Web.UI.GridNeedDataSourceEventArgs e)
       {
            
           var results = from r in DbContext.Subjects
                         where r.LinkAnalysisId == linkId
                         select r;
           SubjectRadGrid.DataSource = results.ToList();
 
 
       }

When the page first loads the SubjectRadGrid shows no records.  This is okay but when a user clocks on one of the row in the RadGrid1 I want SubjectRadGrid to display the child objects for the selected row.

I obtain the "linkId" variable for the second RadGrid using this code

public void RadGrid1_SelectedIndexChanged(object sender, EventArgs e)
        {
            GridDataItem item = (GridDataItem)RadGrid1.SelectedItems[0];
            string ID = RadGrid1.SelectedValue.ToString();//Retrieving primary key field values for selected items
            linkId = Convert.ToInt16(ID);
 
            SubjectRadGrid.Rebind();
        }

This works works and if I place a break point in the SubjectRadGrid_NeedDataSource code I can see the data, during the Rebind, I need is being pulled.  But no data still does not show up in the SubjectRadGrid.

What am I missing here?

Viktor Tachev
Telerik team
 answered on 08 Dec 2015
1 answer
98 views

Hi,

I would like to build a multi-month calendar, with initially max. 3 columns and as many rows as needed for a given period. That in itself can be accomplished with the MultiViewRows and MultiViewColumns properties of RadCalendar.

However, I would like the calendar-grid to behave 'responsive'. So when the available horizontal space gets narrower than needed for the 3 columns, I would like the calendars that don't fit in the availabel space anymore to 'wrap' to the next line.

Is that possible? And if so, how can it be achieved?

Best regard, Marja Ribbers

Konstantin Dikov
Telerik team
 answered on 08 Dec 2015
21 answers
202 views
The RadMaskedTextBox does not work properly with the stock android mobile browsers or Chrome for android. Any plans to fix this?

Charles
Marin
Telerik team
 answered on 08 Dec 2015
1 answer
95 views
Hi all,

Please help me to solve the attached issue.
Issue is dropdown list items box getting stick while scrolling and overlapping on other controls.
Viktor Tachev
Telerik team
 answered on 08 Dec 2015
3 answers
159 views

Hello, i'm new to this forum..

I have a question: I would like to know how pass data to EditForm.ascx during itemcommand event?

in the code below you can see what i'm trying to do

 

if (e.CommandName == RadGrid.InitInsertCommandName)
        {
            e.Canceled = true;
            GridKASKO.EditIndexes.Clear();

            e.Item.OwnerTableView.EditFormSettings.UserControlName = "~mypath\\InsertTax.ascx";
            // I WANT TO PASS a VALUE INTO InsertTax.ascx
            e.Item.OwnerTableView.InsertItem();
        }
        else if (e.CommandName == RadGrid.EditCommandName)
        {
            e.Item.OwnerTableView.IsItemInserted = false;
            e.Item.OwnerTableView.EditFormSettings.UserControlName =  "~mypath\\EditTax.ascx";
        }

Thanks in advance,

Eyup
Telerik team
 answered on 08 Dec 2015
9 answers
473 views

I have a RadTabStrip paired with a RadMultiPage.  The RadPageViews are created dynamically in the OnDataBinding event of the RadTabStrip.  Everything is working fine except when the tabs have spaces (or other special characters) in their titles.  When I click on those particular tabs, I examined the rendered html for the RadMultiPage -- what happens is that the "class=rmpHiddenView" is not removed from the div representing the page view (at this point the other tabs have this CSS class applied plus the inline style "display:none").  When I click on the tabs without spaces in their names, everything works -- that class is removed (and the inline style "display:none" is also removed).

This is the markup:
<telrik:RadTabStrip runat="server" ID="uiTabs" DataSource="<%#this.RetrieveSubpageData()%>"
    OnDataBinding="uiTabs_OnDataBinding" MultiPageID="uiPages"
    SelectedIndex="0" DataTextField="PageTitle">
</telrik:RadTabStrip>
<telrik:RadMultiPage runat="server" ID="uiPages" SelectedIndex="0">
</telrik:RadMultiPage>

Here is what the rendered html looks like after I click on the third tab:

Note that in this picture, I'm URL encoding the id of the RADPageView when I set it in my codebehind, but I get the same result when I don't URL encode it.
Ivan Danchev
Telerik team
 answered on 07 Dec 2015
1 answer
244 views
I have a custom edit form let's call it UserControlForm.ascx. When the user control form loads, I have a dropdown list that I need to pre-populate with data based on some other key values from another row(any row) on that grid(Grid1). I've seen the documentation on how to reference the edited row if the grid is in edit mode, but haven't found anything on how to get values from other rows.
Eyup
Telerik team
 answered on 07 Dec 2015
6 answers
174 views

Hi,

 Can I add custom MenuItem "Add Permission" to Folder or File of FileExplorer?? and on Click on that Menu Item I want to open a popup or new Window where I can pass the ItemID as querystring or something of selected Folder. Here is my code

 

<telerik:RadFileExplorer VisibleControls="TreeView,Toolbar,ListView,Grid,FileList,ContextMenus"
                runat="server" ID="RadFileExplorer1"   OnClientItemSelected="OnClientItemSelected"
                EnableOpenFile="true">
            </telerik:RadFileExplorer>

 protected void Page_Load(object sender, System.EventArgs e)
   {

       RadFileExplorer1.Configuration.SearchPatterns = new string[] { "*.jpg", "*.jpeg"};
       RadFileExplorer1.Configuration.ContentProviderTypeName = typeof(DBContentProvider).AssemblyQualifiedName;
       RadFileExplorer1.Configuration.ViewPaths = new string[] { "Files" };
       RadFileExplorer1.Configuration.UploadPaths = new string[] { "Files" };
       RadFileExplorer1.Configuration.DeletePaths = new string[] { "Files" };
   }

 

Vessy
Telerik team
 answered on 07 Dec 2015
9 answers
117 views

Hello,

When I upload new image the image is uploaded, but after the upload the ImageManager refreshes and display the warning that the same filename allreday exists: "A file with a name same as the target already exists!". 

How can I prevent this? I don't have a file with the same name. I thing that the problem is in refreshing that is happening after upload.

 

Thanks

Vessy
Telerik team
 answered on 07 Dec 2015
4 answers
540 views
I have noticed that drag and drop does not work on the MS Edge browser. Do you know if this a temporary glitch or permanent?
Nencho
Telerik team
 answered on 07 Dec 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Andrey
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Andrey
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?