Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
117 views
hi, i am currently developed a form with radgrid that using hierarchy radgrid. I had custom the css for the radgrid. Everything is look ok for the radgrid but... i face a problem..the hierarchy grid didn't show the "plus" images to expand and "minus" images for the collapse function. When i am mouse over the grid, there us a cursor appears and the grid can expand and collapse as usual!!! so, how can i include the image for the radgrid? i had go through the css, but i can't find the way...!!Your help is consider very much to me!!!!
Thanks.

best regards;
s.k
sk
Top achievements
Rank 1
 answered on 29 May 2009
6 answers
387 views
Is there a way to change the Scrolling property of the RadPane object (eg Both, None, X, Y) from a JavaScript call?

I first create my page with the RadPane Scrolling="None" ....

Then on a button click, I am calling the set_contentUrl method to navigate to a new page in that Pane, and I would like to enable the scroll bars in that Pane when I do this (the pane previously was created with Scrolling = None).

Thanks,
Jay
Jay O'Brien
Top achievements
Rank 1
 answered on 29 May 2009
17 answers
1.0K+ views

Has anyone gotten the OnClientClose or ClientCallbackFunction method to fire when a window is closed?  I am opening a window but neither method gets called anymore.  Below is my code:

                var url = "<%=DocuSys.DocuView.SitePages.PreOp.Screening%>?showheader=" + showheader;  
                var oWnd = window.radopen(url,null);   
                oWnd.set_Status(url);  
                oWnd.set_Title("Drug Screening");   
                oWnd.setSize(_docWidth - 30, _docHeight - 130);   
                oWnd.center();         
                oWnd.<OnClientClose|ClientCallBackFunction> = function (radWindow, returnValue)  
                                              {     alert("returnValue");  
                                                    if(returnValue == "accept")  
                                                    {  
                                                        SignPreop();  
                                                    }  
                                              } 



The <OnClientClose|ClientCallBackFunction> is to show I have tried both of those methods. 

Jason

chris
Top achievements
Rank 1
 answered on 29 May 2009
2 answers
193 views

Hi, i use a radgrid, if i select other page don't show anhyting.

I using this:

<telerik:RadGrid ID="rgResults" runat="server" AllowPaging="True" 
AllowSorting="True" OnNeedDataSource="rgResults_NeedDataSource" 
GridLines="None" Skin="WebBlue" 
onitemcommand="rgResults_ItemCommand" >
<FilterMenu EnableTheming="True">  
<CollapseAnimation Duration="200" Type="OutQuint" />
</FilterMenu>
<PagerStyle FirstPageToolTip="Primera Página" LastPageToolTip="Última Página" 
NextPagesToolTip="Siguiente Página" NextPageToolTip="Siguiente Página" 
PagerTextFormat="Cambiar Página: {4} &amp;nbsp;Página &lt;strong&gt;{0}&lt;/strong&gt; de &lt;strong&gt;{1}&lt;/strong&gt;, Registros &lt;strong&gt;{2}&lt;/strong&gt; a &lt;strong&gt;{3}&lt;/strong&gt; de &lt;strong&gt;{5}&lt;/strong&gt; Encontrados." 
PrevPagesToolTip="Página Anterior" PrevPageToolTip="Página Anterior" />
<MasterTableView NoMasterRecordsText="No se encontraron registros." >  
<Columns>
<telerik:GridButtonColumn CommandName="Select" Text="Ver" 
UniqueName="column">
</telerik:GridButtonColumn>
</Columns>
<PagerStyle FirstPageToolTip="Primera Página" LastPageToolTip="Última Página" 
NextPagesToolTip="Siguiente Página" NextPageToolTip="Siguiente Página" 
PagerTextFormat="Cambiar Página: {4} &amp;nbsp;Página &lt;strong&gt;{0}&lt;/strong&gt; de &lt;strong&gt;{1}&lt;/strong&gt;, Registros &lt;strong&gt;{2}&lt;/strong&gt; a &lt;strong&gt;{3}&lt;/strong&gt; de &lt;strong&gt;{5}&lt;/strong&gt; encontrados." 
PrevPagesToolTip="Página Anterior" PrevPageToolTip="Página Anterior" />
</MasterTableView>
<GroupingSettings GroupSplitDisplayFormat="Mostrando {0} de {1} registros." />
<ClientSettings AllowExpandCollapse="False" AllowGroupExpandCollapse="False" 
AllowKeyboardNavigation="True">
<DataBinding EnableCaching="True">
</DataBinding>
<Selecting AllowRowSelect="True" />
<ClientMessages PagerTooltipFormatString="Página &lt;strong&gt;{0}&lt;/strong&gt; de &lt;strong&gt;{1}&lt;/strong&gt;" />
</ClientSettings>
<SortingSettings SortedAscToolTip="Ordenar Ascendente" 
SortedDescToolTip="Ordenar Descendente" SortToolTip="Haga clic para ordenar" />
</telerik:RadGrid>

And codebehind:

  protected void rgResults_NeedDataSource(object source, Telerik.Web.UI.GridNeedDataSourceEventArgs e)
{

DataSet Results = new DataSet();          Userconection.ConnectionString = "Server=" + server + ";Port=" + port + ";Database=" + database + ";Uid=" + user + ";Pwd=" + paswd + ";";

Userconection.Open();

MySqlDataAdapter adapter = new MySqlDataAdapter("Select ID from table1", Userconection);
adapter.Fill(Results);

             rgResults.DataSource =Results;

}

Thanks for you help!

Briayan

Brygom
Top achievements
Rank 1
 answered on 28 May 2009
1 answer
202 views
In need of help selecting the first child item when clicking a parent item if child items exists. For example, we have products series names as parent items in RadPanelBar and the first child is a Series Features page. We'd like to automatically select the series features child object when a user clicks the top level product name triggering it's appropriate "selected" css, etc.

Example .ASPX:
<telerik:RadPanelBar ID="testPanel" CollapseAnimation-Duration="100"   
            CollapseAnimation-Type="Linear" ExpandAnimation-Duration="50"   
            ExpandAnimation-Type="Linear" PersistStateInCookie="true" 
            ExpandMode="SingleExpandedItem" CausesValidation="False" runat="server"   
             Skin="WebBlue" AllowCollapseAllItems="true"></telerik:RadPanelBar> 

Example Code Behind:
protected void Page_Load(object sender, EventArgs e)  
        {  
            if (!Page.IsPostBack)  
            {  
                RadPanelItem productOne = new RadPanelItem();  
                productOne.Text = "Product One";  
                productOne.CssClass = "MainItem";  
                testPanel.Items.Add(productOne);  
 
                RadPanelItem featuresOne = new RadPanelItem();  
                featuresOne.Text = "Series Features";  
                productOne.Items.Add(featuresOne);  
 
                RadPanelItem productTwo = new RadPanelItem();  
                productTwo.Text = "Product Two";  
                productTwo.CssClass = "MainItem";  
                testPanel.Items.Add(productTwo);  
 
                RadPanelItem featuresTwo = new RadPanelItem();  
                featuresTwo.Text = "Series Features";  
                productTwo.Items.Add(featuresTwo);  
            }  
        } 

There are no url's in the example for panelbar items, nor any items without child objects, but that shouldn't matter correct?
Thanks for the help.
Arroyocode
Top achievements
Rank 1
 answered on 28 May 2009
2 answers
132 views
Guys,
I am trying to add RadTreeview into my sharepoint webpart but every time i add it i keep getting the following error in my sharepoint page which host the Webpart am developing

An unexpected error has occurred.

Web Parts Maintenance Page: If you have permission, you can use this page to temporarily close Web Parts or remove personal settings. For more information, contact your site administrator.

Troubleshoot issues with Windows SharePoint Services.

I have been tring every thing, I added the dlls as a safe cotrol in my web.config as descriped in http://www.telerik.com/help/aspnet-ajax/create-ajax-enabled-sharepoint-webpart-radcontrols.html


This is my simple code:

Protected Overrides Sub CreateChildControls()
            MyBase.CreateChildControls()

          

            Dim panel As Panel = New Panel()
            panel.ID = "Panel1"

            Dim treeView As RadTreeView = New RadTreeView()
            treeView.ID = "RadTreeView1"
            treeView.Nodes.Add(New RadTreeNode("What's the time?"))
            panel.Controls.Add(treeView)
          
            Dim Label As New Label()
            Label.Text = "This is a label"
            panel.Controls.Add(Label)
            Me.Controls.Add(panel)

       
        End Sub

Please help !!!






osama
Top achievements
Rank 1
 answered on 28 May 2009
1 answer
583 views
Here is my situation. I have a mater page called masterpage.master to show a total count of users. in content page, I have a iframe. Inside iframe, I have all pages to use another master page called FrameMasterPage.master.  so in one of the content page inside iframe, how can I call a method in masterpage.master.  For a content page that not inside iframe, I can use following code.

 if ((Page.Master != null) && (Page.Master is MasterPage))
            (this.Page.Master as MasterPage).UpdateUserCount(AjaxManager, ajaxcontrol);

Thanks,
Anthony
Top achievements
Rank 1
 answered on 28 May 2009
1 answer
108 views
I received an error that administrator rights are needed to run the VSE install.

I had to start a commandprompt as administrator and run the .msi from there.

/Jesper
Missing User
 answered on 28 May 2009
3 answers
333 views
When I export from the RadGrid while the grid is grouping the data and export, the style for the group header and group footer are not showing on the PDF.  The source HTML looks exactly like the overall footer for the group footer with the exception of the overall footer being in the <tfoot> tags.  In the group footer and header there is a background color but it is not showing in the PDF and also some of the cells in the footer have right aligned text but it's all left aligned.  Also, the font size isnt the same as the rest of the grid in the group footer. 

We are using a custom skin file based on the Outlook2007 skin.
Daniel
Telerik team
 answered on 28 May 2009
1 answer
80 views
Just went to find what AllowRounding does on the GridNumericColumn control.  Here is the link:

http://www.telerik.com/help/aspnet-ajax/telerik.web.ui-telerik.web.ui.gridnumericcolumn-allowrounding.html

This is not useful information.  So many of your properties have just this level of (automatically generated) documentation.  We've paid a fair coin for your components, and this documentation is just not up to par at all.  Please use the dollars we are investing in you to likewise invest in making the controls easy to use.  Having to turn to Reflector to read code just to figure out how your stuff works is not efficient at all.

And please, tell me what AllowRounding does.
Nikolay Rusev
Telerik team
 answered on 28 May 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?