Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
75 views
Please ignore/delete this thread.  I tried a different approach.  Unfortunately, that didn't work out for me.  it's here if anybody wants to follow up.
golddog
Top achievements
Rank 1
 asked on 23 Oct 2011
5 answers
197 views
Hi ,
     I am trying to bind the data to  telerick tree view dataSoure .But the data not getting into binded to the tree  view.Telerick tree view is not rendering to the page with data in ItemCommand event.


Please find the code below which I am using to bind the data tree view in ItemCommand event

 

protected void radGridHierarchies_ItemCommand(object source, GridCommandEventArgs e)

 

{

 

if (e.CommandName == "RowClick" && radGridHierarchies.SelectedItems.Count == 1)

 

{

 

int datascopeId = Convert.ToInt32(radGridHierarchies.SelectedValues["DatasourceId"]);

 

 

int dimensionId = Convert.ToInt32(radGridHierarchies.SelectedValues["DimensionId"]);

 

 

string hierName = radGridHierarchies.SelectedValues["HierarchyName"].ToString();

 

datascopeId = 11;

 

List<CharHierLevel> lstHierLevel = _presenter.GetCharHierLevelDetails(datascopeId, dimensionId, hierName);

 

radTreeCharHierLevel.DataTextField =

"HierarchyLevelName";

 

radTreeCharHierLevel.DataValueField =

"HierarchyLevelName";

 

radTreeCharHierLevel.DataFieldID =

"HierarchyLevelName";

 

radTreeCharHierLevel.DataFieldParentID =

"HierarchyLevelParent";

 

radTreeCharHierLevel.DataSource = lstHierLevel;

radTreeCharHierLevel.DataBind();

}

 

}

Note:The issue I could not find in design time .if any one got this king of issue the Immediate help will be highly appreciated

awni
Top achievements
Rank 1
 answered on 22 Oct 2011
1 answer
195 views
HI,

I am trying to bind image to radBinaryImage in serverside. but its not working.
Please refer my code.

string BefFileNAMe, AftFileName;
       if (e.Item.ItemType == RadListViewItemType.DataItem || e.Item.ItemType == RadListViewItemType.AlternatingItem)
       {
           RadBinaryImage imgBeforePhoto = (RadBinaryImage)e.Item.FindControl("imgBeforePhoto");
           imgBeforePhoto.ImageUrl = Server.MapPath("~/Image/5SLanding/Before/") + beforePhoto.FileName;
        }

It is giving following error in Chrome debugger.
Not allowed to load local resource: path/Image/5SLanding/Before/82before-5s.JPG
I cheked the path. The path is correct.
Please help me to solve this. 
Thanks
Andrew Galea
Top achievements
Rank 1
 answered on 22 Oct 2011
4 answers
199 views
Hello everybody

I'm new in Telerik controls and this is my first post here. I'm trying to create a nested Radgrids of two levels where each record of parent will be related to two child records. I'm trying to use RadMultiPage with RadTabStrip to display the two childs as a radgrid.

The skeleton of my code is like this
<form id="form1" runat="server">
    <telerik:RadScriptManager ID="RadScriptManager1" Runat="server">
    </telerik:RadScriptManager>
    <asp:SqlDataSource ID="SqlDataSource1" ></asp:SqlDataSource>
    <asp:SqlDataSource ID="SqlDataSource2" ></asp:SqlDataSource>
    <asp:SqlDataSource ID="SqlDataSource3" ></asp:SqlDataSource>
    <telerik:RadGrid ID="RadGrid1" DataSourceID="SqlDataSource1" >
        <MasterTableView DataSourceID="SqlDataSource1">
            <NestedViewTemplate>
                <telerik:RadTabStrip ID="RadTabStrip1" MultiPageID="RadMultiPage1">
                    <Tabs>
                        <telerik:RadTab PageViewID="PageView1"></telerik:RadTab>
                        <telerik:RadTab PageViewID="PageView2"></telerik:RadTab>
                    </Tabs>
                </telerik:RadTabStrip>
                <telerik:RadMultiPage ID="RadMultiPage1">
                    <telerik:RadPageView ID="PageView1">
                        <telerik:RadGrid ID="RadGrid2" DataSourceID="SqlDataSource2" >
                            <MasterTableView DataSourceID="SqlDataSource2">
                                <Columns>
                                    <telerik:GridBoundColumn></telerik:GridBoundColumn>
                                </Columns>
                            </MasterTableView>
                        </telerik:RadGrid>
                    </telerik:RadPageView>
                    <telerik:RadPageView ID="PageView2">
                        <telerik:RadGrid ID="RadGrid3" DataSourceID="SqlDataSource3">
                            <MasterTableView DataSourceID="SqlDataSource3">
                                <Columns>
                                        <telerik:GridBoundColumn></telerik:GridBoundColumn>
                                </Columns>
                            </MasterTableView>
                        </telerik:RadGrid>
                    </telerik:RadPageView>
                </telerik:RadMultiPage>
            </NestedViewTemplate>
            <Columns>
                <telerik:GridBoundColumn></telerik:GridBoundColumn>
            </Columns>
        </MasterTableView>
    </telerik:RadGrid>
</form>

I removed unnecessary code.

With this skeleton and when I click on the each records, it show the tabs but it did not list any records. I thought at the beginning that the problem of missing <ParentTableRelation> tag, but how to make the nested radgrid related to its parent. The problem that I could not use <GridTableView> because I could not integrate it with RadMultipage and RadTabStrip controls.

I want something like this example.

Any Idea plz?

Mohammed
Jayesh Goyani
Top achievements
Rank 2
 answered on 22 Oct 2011
23 answers
500 views
Greetings,

I've added a ButtonColumn on my RadGrid and i need to open a popup when i click on it.
Afterwards, I need to fill this popup in code Behind...

Can anyone say me how i can get acess to this button ?
Jayesh Goyani
Top achievements
Rank 2
 answered on 22 Oct 2011
1 answer
93 views
Hi,
  I am stuck on a problem I need some help with, I have made a sample project to show the problem. This page has two grids, a parent grid showing Product Types and when you edit on any of the records it brings up the edit form with another grid showing the different types of product you wanted to edit. This grid in edit form has "inPlace" editing and I have used Item Template columns since i had to put required validators in for these fields since in my real project these are required fields. I noticed in the grid in the edit form the Filters are not working? I have tried to set the "autoPostbackonFilter" property to true, Can someone help me use these filters on the ItemTemplate columns? I have to use these since in my project in the grid in edit form there will be possibly many many items so the User needs the ability to filter,  Please let me know of how to accomplish this, thanks
Jayesh Goyani
Top achievements
Rank 2
 answered on 22 Oct 2011
2 answers
296 views
Hello
i am using javascript to select the Row ID using RowMouseOver.  This is working fine.
I am trying to send the Image of the 'hover' selected row to the RadWindow by clicking on
the hyperlink in the Grid Template column.
The Images are files on the server. The database only stores the file name.
All code is currently ASPX and Javascript. 
Is there a better way to transfer the hover 'selected' image direct to the RadWindow as the code below does not show the image.

Below is my RadGrid ASPX (Unfortunately the Code snippet tool didnt work here)

                    <telerik:GridTemplateColumn HeaderText="" SortExpression="XTV7_Categories_Image"
                        UniqueName="XTV7_Categories_Sub_Image">
                        <ItemTemplate>
                            <asp:HyperLink ID="btnImageDisplay" runat="server" Width="100px" Height="77px" 
                            CommandName="Select" 
                            ImageUrl='<%# "~/App_Portal/xTrain/Images/VideoThumbs/" + Eval("XTV7_Videos_Image") %>' 
                            NavigateUrl='<%# "~/App_Portal/xTrain/Images/VideoImages/" + Eval("XTV7_Videos_Image") %>'                  
                            onclick="openRadWin();return false;" />
                        </ItemTemplate>
                    </telerik:GridTemplateColumn>

Below is my RadCodeBlock Javascript with the RowmouseOver and openRadWin samples.

            function RowMouseOver(sender, args) {
                document.getElementById("<%= Label1.ClientID %>").innerHTML =
                 "<b>XTV7_Videos_ID: </b>" + args.getDataKeyValue("XTV7_Videos_ID") +
                 "<br />" +
                 "<b>Title: </b>" + args.getDataKeyValue("XTV7_Videos_Title") +
                   "<br />" +
                 "<b>SubTitle: </b>" + args.getDataKeyValue("XTV7_Videos_SubTitle") +
                   "<br />" +
                 "<b>Image Name: </b>" + args.getDataKeyValue("XTV7_Videos_Image") +
                   "<br />" +
                 "<b>M4V Name: </b>" + args.getDataKeyValue("XTV7_Videos_Ipod_Filename") +
                   "<br />" +
                 "<b>SWF Name: </b>" + args.getDataKeyValue("XTV7_Videos_FileName");
            }
            function openRadWin() {
                radopen('<%# "~/App_Portal/xTrain/Images/VideoImages/" + Eval("XTV7_Videos_Image") %>', "RadWindow1");
            }


// OLD RadWindow CODE
//           function openRadWindow(url) {
//                var oWnd = radopen(url);
//                return false;
//            }

The basic RadWindow settings;

 <telerik:RadWindowManager ID="RadWindowManager1" runat="server" Modal="true" VisibleStatusbar="false"
        ForeColor="Black" BackColor="Black" Behaviors="Reload,Resize,Minimize,Maximize,Close"
        VisibleTitlebar="true" VisibleOnPageLoad="false" KeepInScreenBounds="True" Skin="Black"
        AutoSize="true" Animation="Resize">
        <Windows>
            <telerik:RadWindow runat="server" ID="RadWindow1" Title="XGIS Lesson Image Viewer"
                OnClientClose="onClose">
            </telerik:RadWindow>


Trent
Top achievements
Rank 2
 answered on 22 Oct 2011
2 answers
146 views
Hi,

Is it possible to combine an input contol like the RadNumericTextBox with the RadComboBox?

Cheers,
Jani
Jani
Top achievements
Rank 1
 answered on 22 Oct 2011
2 answers
362 views
Hi,

I have list box control with transferable items working.
I would like to see all items transferred to the right (destination) listbox to be automatically sorted by text of the item.

So I attached JavaScript handler to "OnClientTransferred" client side event of the source listbox.

This is portion of my code:

                    //Sorting items in the right list box -----------------------
                    var items = e.get_destinationListBox().get_items();                                                     
                    arrTexts = new Array();
 
                    for (var i = 0; i < items.get_count(); i++) {
                        arrTexts[i] = items.getItem(i).get_text();                     
                    }
 
                    arrTexts.sort();              
                                                 
                    for (var i = 0; i < arrTexts.length; i++) {
                        //alert(arrTexts[i]);                       
                    }

As you see, I can get text values from destination listbox, put them into string array and sort that array. 
I just need advise on how I can now sort the content of the destination listbox.

Thanks!
brian
Top achievements
Rank 1
 answered on 21 Oct 2011
3 answers
108 views
Hello,

i'm using the GridClientSelectColumn in the radGrid.  Is there anyway to not show the checkbox in the header? and display a header text?

My column is definate below, but the header text doesn't show.  I want to hide the checkbox in the header as well.  Thanks in advance for any help.

<

 

 

telerik:GridClientSelectColumn HeaderText="Incl" HeaderStyle-Width="5%" UniqueName="ClientSelectColumn" />

 


Jayesh Goyani
Top achievements
Rank 2
 answered on 21 Oct 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?