Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
108 views
Hopefully you wont take this as a "Please send me the codez" type post though I'm sure it's going to kind of look like one.

It's a simple application. Search for and select a patient. Show a bunch of bits of information about that patient. On a couple of the tabs show the many events that have happened to those patients. Operations for example.

I was given a skeleton of an application to work with that didn't have much on it besides some basic HTML data controls, a Telerik tab control with paging.

What I'd like help with is the big picture basic architecture of how to put that together using Telerik controls.

I'm using the Entity Framework for the Data Layer and I have that connected to the Operations grid in code.
Like this:
this.EntityDataSource2.WhereParameters.Clear();
this.EntityDataSource2.AutoGenerateWhereClause = true;
this.EntityDataSource2.WhereParameters.Add("PATIENT_ID", TypeCode.Int32, ddlSearchSSN.SelectedValue);
 
this.gridOperations.DataSource = EntityDataSource2;
this.gridOperations.DataBind();

So I fill up a combo box, pick the patient SSN from that combo box, populate all the HTML controls vie code and then filter and bind the grid for showing operations. All that is working (for read) but I think there has to be a better way.

Something like a parent control for the operations Grid that I can put all the HTML controls in. You know, like a Parent-Child grid relationship where the parent shows only one record that I can bind to a datasource.

Thanks,

MArk (Plz send hte codez) B.
Daniel
Telerik team
 answered on 13 Dec 2012
5 answers
239 views
Hi,
I am using Telerik_AJAX_Controls_2012_3_1016_for_SharePoint_2010.
When calling the ImageManager from RadEditor uploading and selecting images work fine.
However, when I click on an existing image in the ImageManager and start the ImageEditor - regardless of what I do - after saving the file the image does not exist. The Item does exist - preview (well, the old preview), metadata and all - but the newly created image does not.

Any ideas on what the problem might be?

Best,
Nils
Rumen
Telerik team
 answered on 13 Dec 2012
3 answers
266 views
Hi, Can I somehow add additional data to a treeview node AND access it through javascript?  For example, what if I wanted to bind "category" data to be stored with each node below?

siteData.Add(new SiteDataItem(6, 2, "RadEditor", "editor"));
siteData.Add(new SiteDataItem(7, 3, "RadGrid", "grid"));
siteData.Add(new SiteDataItem(8, 3, "RadMenu", "menu"));
siteData.Add(new SiteDataItem(9, 3, "RadEditor", "editor")); 
....          
treeView.DataTextField = "Text";
treeView.DataFieldID = "ID";
treeView.DataValueField = "Value";
treeView.DataFieldParentID = "ParentID";
treeView.DataSource = siteData;
treeView.DataBind();

...Can I then pull the category value using javascript similar to how I access the value or text?

node.get_value()
"ajax"

node.get_text()
"RadControls for ASP.NET Ajax"



Marbry
Top achievements
Rank 1
 answered on 13 Dec 2012
3 answers
159 views
Can this control be used with data from multiple sources with separators for each data source?
Kalina
Telerik team
 answered on 13 Dec 2012
3 answers
178 views
On my master page I have a DIV that is used to return a list of results when  a user uses our generic search function at the top of all the pages in our site.  I am currently using jquery dialog to make the Search Result DIV look and act like a window.  While this works great, it is a departure from the look and feel from the rest of the site because it is not styled like Telerik controls...

Is there a means to do a similar ability in Telerik asp.net ajax? 

In my code I have something like this:
function OpenSearchInfo() {
            var search = $("#RadTextBoxTag").val();
  
            if (search.length < 3) {
                alert("A minimum of three characters is required for Search.");
                return false;
            }
  
            $("#SearchResults").show();
            $("#SearchResults").dialog({
                title:"Results",
                height: 300, width: 500,
                position: ['middle', 40],
                close: function() {
                      $find("<%= RadTextBoxTag.ClientID %>").clear();
                }
  
            });


The panel and Div
  <asp:Panel ID="PanelFindTag" runat="server" DefaultButton="ImageButtonSearch">
                    <div class="FindTag">
                        <table>
                            <tr>
                                <td>
                                    <telerik:RadTextBox ID="RadTextBoxTag" runat="server" EmptyMessage="Tag / Serial Search"
                                        ClientIDMode="Static" />
                                    <div id="SearchResults">
                                        <div id="innerSearchResults">
                                        </div>
                                    </div>
                                </td>
                                <td>
                                    <asp:ImageButton ID="ImageButtonSearch" AlternateText="Tag / Serial Search" ToolTip="Tag / Serial Search"
                                        runat="server" OnClientClick="OpenSearchInfo();return false;" />
                                </td>
                            </tr>
                        </table>
                    </div>
                </asp:Panel>
Marin Bratanov
Telerik team
 answered on 13 Dec 2012
1 answer
280 views
Hi

I am trying to implement within an Image Viewing application, a Radwindow which opens on the click of a button.

The main window is a div which contains two other divs - a left "sidebar" and a right "viewer"
<div id="container">
        <asp:Panel ID="sidebar" runat="server">
           <asp:PlaceHolder ID="phSideBar" runat="server"></asp:PlaceHolder>
        </asp:Panel>
        <asp:Panel ID="viewer" runat="server">
            <asp:PlaceHolder ID="phViewer" runat="server"></asp:PlaceHolder>
        </asp:Panel>
    </div>

The sidebar contains navigation buttons and links and the viewer panel contains a java applet which handles the image viewing.

During page load, the user controls are added to the placeholders.
protected void Page_Load(object sender, EventArgs e)
{     
        System.Web.UI.Control contSideBar = (System.Web.UI.Control)LoadControl("vwDisplayTest.ascx");
        phSideBar.Controls.Add(contSideBar);      // Add Navigation Control to side bar

       
System.Web.UI.Control contHardCopyOrdering = (System.Web.UI.Control)LoadControl("vwHardCopy.ascx");
        phSideBar.Controls.Add(contHardCopyOrdering);      // Add Order button Control to SideBar  phSideBar
        }

In order for this to work, it appears I need to declare the RadWindow in BOTH the main aspx page AND the ascx page.

Is this correct?  I have searched various topics, but perhaps I have missed something.

Regards
Roger

Marin Bratanov
Telerik team
 answered on 13 Dec 2012
2 answers
104 views
I'm trying to zoom the image in on image load by doing the following, bound to OnClientLoad:

function ZoomImage(sender, args) {
sender.zoomBestFit();
}

This works fine in IE9, Firefox, and Safari, but on Chrome 23, no zooming occurs.  I have the same problem if I substitute a call to zoomImage.

The status panel of the control *claims* to be at 25% zoom, but it visibly isn't.

Any ideas?
David
Top achievements
Rank 1
 answered on 13 Dec 2012
1 answer
147 views
Basically I have created a user control containing a Telerik RadGrid, inside the control I have another two controls that have Telerik RadGrid inside them. I am trying to bind the modified data back into the User Control inside the parent user control. I have checked that the data is correct after they have been edited but when the form is binded again the inner controls have the same data as the form is first loaded. I am using RadWindow. Coworkers have suggested that it works with asp.net form controls however it seems that there is an issue with Telerik controls. Is there a easy way to force a rebind of the control?
Pavlina
Telerik team
 answered on 13 Dec 2012
3 answers
416 views

Facing issue when trying to close the radwindow and reload of the parent page.
 
Below mentioned is the java function used to reload the parent page. Its is giving the warning[Please find the attachment]

function CloseAndRebind(args) {
//GetRadWindow().BrowserWindow.location.reload();

var oWind = GetRadWindow();
oWind.close();

GetRadWindow().BrowserWindow.location.reload();

 

//top.location.href = top.location.href;

}


Could you please help me out in resolving this issue, Searched in the forum found the above solution only, but its not working for me.

rdmptn
Top achievements
Rank 1
 answered on 13 Dec 2012
1 answer
141 views
I've walked through the following code in the debugger and it is indeed marking the nodes as expanded=true.  However, on the page the nodes do not expand.  Does anyone have any suggestions?

private void findAndExpand(RadTreeNode selectedNode)
{
            RadTreeNode parentNode = selectedNode.ParentNode;
 
            while (parentNode != null)
            {
                parentNode.Expanded = true;
                parentNode = parentNode.ParentNode;
            }
}
Kit Cat
Top achievements
Rank 1
 answered on 13 Dec 2012
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?