Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
69 views
Hello,

my trees are very dynamic an so it takes a lot of time to generate them node by node,
level by level.

So my Question is, if it is possible to return a complete part of a tree with all its subnotes in one step.
I think I've to return a Treenode-object not a TreenodeData-object. Have'nt I?

Best regards.
Nikolay Tsenkov
Telerik team
 answered on 15 Jun 2011
1 answer
114 views
When I group a RadGrid from the context menu, the headers all become slightly smaller than the data portion of the columns they are associated with.  The result of this is that a white rectangle appears on the right hand side of the Header Bar.  I have included the html for the grid below and included an attached file containing the image of the event happening.  

I imagine this is something I can rectify by overriding the style for headers when the grouping is applied (Add a pixel or 2 to the RadGrid grouped header border style) but I would like to know if there is something that I should be doing that is more natural to the control itself

<telerik:RadGrid runat="server" ID="rgAMASM" DataSourceID="odsAMASM" AllowPaging="True"
    GridLines="None" Skin="Office2007" AllowSorting="True" Height="347px" OnPageSizeChanged="rgAMASM_PageSizeChanged"
    OnColumnCreated="rgAMASM_ColumnCreated">
    <ClientSettings>
        <Selecting AllowRowSelect="True" />
        <Scrolling AllowScroll="True" UseStaticHeaders="True" />
    </ClientSettings>
    <MasterTableView DataSourceID="odsAMASM" CommandItemDisplay="Bottom" DataKeyNames="Asset_ID">
        <CommandItemSettings ExportToPdfText="Export to Pdf"
            ShowAddNewRecordButton="False" ShowRefreshButton="False">
        </CommandItemSettings>
        <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column">
            <HeaderStyle Width="20px"></HeaderStyle>
        </RowIndicatorColumn>
        <ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column">
            <HeaderStyle Width="20px"></HeaderStyle>
        </ExpandCollapseColumn>
        <EditFormSettings>
            <EditColumn FilterControlAltText="Filter EditCommandColumn column">
            </EditColumn>
        </EditFormSettings>
    </MasterTableView>
    <FilterMenu EnableImageSprites="False">
    </FilterMenu>
    <HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Default">
    </HeaderContextMenu>
</telerik:RadGrid>
<asp:ObjectDataSource ID="odsAMASM" runat="server" SelectMethod="WT_BROWSEAMASM"
    TypeName="WorkTech.WTLIB+WTDAL+Functions" OnSelecting="odsAMASM_Selecting" OnSelected="odsAMASM_Selected">
    <SelectParameters>
        <asp:Parameter Name="uid" Type="Int32" />
    </SelectParameters>
</asp:ObjectDataSource>

Pavlina
Telerik team
 answered on 15 Jun 2011
1 answer
242 views

Hi Telerik Team,

Before posting this issue, I tried search for similar issue here and tried. But couldn't solve our issue.

About our issue - (Which works fine in Firefox, but not working in IE8/9)
We are using Telerik RadGrid - which is displaying properly if there is NO vertical scrollbar. (Attachment - IE - With No Scrollbar.JPG)
If a vertical scroll-bar appears, the alignment between header and item goes wrong. (Attachment - IE.JPG)
This is displaying fine in Firefox - (Attachment - Firefox.JPG)

We noticed that if we resize the column width using mouse manually, entire alignment issue vanishes!! (Attachment - IE - Resizing.JPG & IE - After Resize.JPG)

I believe this explanation & screen-shots make sense.

This issue really kills the appearance of Telerik RadGrid and we are not satisfied with it - We tried a lot to fix it.

Finally we found that we are using on javascript to resize Grid's height & width based on the browser's width & height. That was causing this issue. When we commented the javascript code to set the grid's width, I think this issue is solved.

After posting the question for help only, we found this solution!!

Let us test this issue and will be back, if we have any issues.

Thanks
Steve


Pavlina
Telerik team
 answered on 15 Jun 2011
1 answer
37 views
hi,
i have column without fieldName with itemtemplate that display text by another field, and i want to enable sorting this column by the display text. is it imposible?
thanks.
Pavel
Telerik team
 answered on 15 Jun 2011
4 answers
176 views
Hi all,

I need some help. We need to apply the selected SharePoint 2010 skin to each RadControl used in our Silverlight application and also used in our webparts.

Is there any way to handle this?

Best regards,
Ralf
Ralf
Top achievements
Rank 1
 answered on 15 Jun 2011
5 answers
173 views
I have a SP 2010 webpart that has a rad Splitter with 2 panes and a vertical splitter.  The web part is hosted in a single full page vertical webpart page template.   The problem is the  web part does expand to fill the zone horizontally,  but clips the webpart vertically (height).  

I know the webpart template works because I have another webpart thas is essentially a log that when deployed in that template fills the page and scrolls vertically as expected.

Does anyone have ay examples of getting the controls to cause the zone to expand vertically?

Thanks in advance for any help.

s.
Stanimir
Telerik team
 answered on 15 Jun 2011
1 answer
261 views
When I tries to upload file using RadFileExplorer it gives me following js error.

Microsoft JScript runtime error: 'this.get_windowManager()' is null or not an object.

after this error file gets uploaded but other icons like create folder, open, refresh  add and other icons get hide.

Following is my code. Please let me know if I am missing anything

aspx page

<head id="Head1" runat="server">

    <style type="text/css">
        h5
        {
            margin: 3px;
            margin-top: 6px;
        }
    </style>
   <telerik:RadCodeBlock ID="codeBlock1" runat="server">

        <script type="text/javascript">
            //<![CDATA[
            function OnClientItemSelected(sender, args) {
              
            }
            //]]>
        </script>

    </telerik:RadCodeBlock>
</head>
<body class="BODY">
    <form id="form1" runat="server">
    
    <telerik:RadScriptManager ID="RadScriptManager1" runat="Server">
    </telerik:RadScriptManager>
    <telerik:RadFormDecorator runat="server" ID="RadFormDecorator1" DecoratedControls="All" />
    <table cellspacing="4">
        <tr>
            <td rowspan="2" style="vertical-align: top;">
                <telerik:RadFileExplorer runat="server" ID="FileExplorer1" Width="520px" Height="520px"
                    OnClientItemSelected="OnClientItemSelected">
                    <Configuration ViewPaths="~/ClaimFiles" UploadPaths="~/ClaimFiles"
                        DeletePaths="~/ClaimFiles" />
                </telerik:RadFileExplorer>
               
            </td>
          
        </tr>
    </table>
    
    </form>
</body>

-------
aspx.cs code

protected void Page_Load(object sender, EventArgs e)
    {

        //set properties according to configuration panel
        //FileExplorer1.VisibleControls = GetVisibleControls();
        FileExplorer1.EnableOpenFile = true;
        FileExplorer1.DisplayUpFolderItem = true;
        FileExplorer1.AllowPaging = true;
        FileExplorer1.EnableCreateNewFolder = true;
        //FileExplorer1.Configuration.ContentProviderTypeName = typeof(CustomProvider).AssemblyQualifiedName;



        FileExplorer1.Configuration.UploadPaths = new string[] { "~/ClaimFiles" };
        
        if (!IsPostBack)
        {
            //Set initial folder to open. Note that the path is case sensitive!
            FileExplorer1.InitialPath = Page.ResolveUrl("~/ClaimFiles");
        }
    }


I am using latest telerik version ie 2011.1.519.40. I just noticed that it is working fine in firefox but creating problem in IE. I am using IE8.

Your help is highly appriciated.
Thanks
Mehul
Pero
Telerik team
 answered on 15 Jun 2011
4 answers
151 views
hi i noticed with the excel like radgrid sample found here (http://www.telerik.com/community/code-library/aspnet-ajax/grid/excel-like-radgrid.aspx) that the backspace button doesnt work when i am highlighting a text i wish to edit..

also is there a way that the excel like grid has some columns that are
- pre-filled  rad comboboxes

because my goal is to have a Multi-insert rad grid
Vasil
Telerik team
 answered on 15 Jun 2011
1 answer
62 views
Hi, I am using RadGrid control into my web form and editing within grid. But when click on update then i am getting old values which has been picked up from database but i need to get new values added into grid text box. Please have a look on code guid me how may i fix this.

<

 

radGrid:RadGrid ID="gdViewOrders" runat ="server" AutoGenerateColumns="false"  AllowMultiRowSelection="false" EnableAJAX="true" AllowMultiRowEdit="true" OnEditCommand="gdViewOrder_EditMode" OnUpdateCommand="gdViewOrder_UpdateMode">

 

 

<MasterTableView EditMode="InPlace" DataKeyNames="OrdID">

 

 

<Columns>

 

 

    <radGrid:GridEditCommandColumn UniqueName="EditCommandColumn"></radGrid:GridEditCommandColumn>

 

 

    <radGrid:GridBoundColumn HeaderText="Order ID" DataField="OrdID" ReadOnly="true"></radGrid:GridBoundColumn>

 

 

    <radGrid:GridBoundColumn HeaderText="Name" DataField="CustName" UniqueName="Name"></radGrid:GridBoundColumn>

 

 

</Columns>

 

 

 

</MasterTableView>

 

 

</radGrid:RadGrid>

 


Code:

protected

 

void gdViewOrder_UpdateMode(object sender, Telerik.WebControls.GridCommandEventArgs e)

 

 

{

 

 

        GridEditableItem editedItem = (GridEditableItem)e.Item;

 

 

 

        int id = Convert.ToInt32(editedItem.GetDataKeyValue("OrdID"));

 

 

 

        string objName = (editedItem["Name"].Controls[0] as TextBox).Text;

 

 

        bool response = objOrders.UpdateOrder(id, objName, objAddress.Text, objSeller.Text, Convert.ToInt32(objStatus.Text));

 

 

 

        lblMessage.Text = "Order has not been updated successfully.";

 

 

}


Thanks
Shinu
Top achievements
Rank 2
 answered on 15 Jun 2011
1 answer
160 views
I am using RadTextbox in my program as a password:

<telerik:RadAjaxPanel ID="radAjaxPanelUserManagement" runat="server">
        <telerik:RadPanelBar runat="server" ID="radPanelBarUser" Width="100%">
            <Items>
                <telerik:RadPanelItem Enabled="True" Text="Add/Edit User" runat="server" Expanded="false"
                    Visible="false" Value="userMasterPanel">
                    <Items>
                        <telerik:RadPanelItem Enabled="True" runat="server" Value="userPanel" Expanded="false">
                            <ItemTemplate>

<asp:Label ID="lblTextboxPassword" runat="server" Text="Password " CssClass="custom-label"></asp:Label>
<telerik:RadTextBox ID="txtPassword" runat="server" CssClass="custom-txtbox" Rows="1" Width="175px" MaxLength="15" ShowButton="False" SelectionOnFocus="None" TextMode="Password" CausesValidation="true" TabIndex="4" >
</telerik:RadTextBox><asp:Label ID="lblTextboxConfirmPassword" runat="server" Text="Confirm Password "
                                                        CssClass="custom-label"></asp:Label>

<telerik:RadTextBox ID="txtConfirmPassword" runat="server" TextMode="Password" Rows="1"
                                                        MaxLength="15" Width="175px" CssClass="custom-txtbox" CausesValidation="true"
                                                        TabIndex="5" >
                                                    </telerik:RadTextBox>
</ItemTemplate>
                        </telerik:RadPanelItem>
                    </Items>
                </telerik:RadPanelItem>
            </Items>
            <CollapseAnimation Duration="100" Type="None" />
            <ExpandAnimation Duration="100" Type="None" />
        </telerik:RadPanelBar>
    </telerik:RadAjaxPanel>

Issue creates when i want to fill value of this text box on .cs file. That value is not showing on the web page.

public void editUser(Object sender, EventArgs arg)
{
     RadTextBox txtPassword = ((RadTextBox)radPanelBarUser.FindItemByValue(PureAnalyzer_WebApp.UserPanel).FindControl("txtPassword"));
            RadTextBox txtConfirmPassword = RadTextBox)radPanelBarUser.FindItemByValue(PureAnalyzer_WebApp.UserPanel).FindControl("txtConfirmPassword"));

txtPassword.Text="abc#123";
txtConfirmPassword .Text="abc#123";

}

In this code i want to fill value of fill some dynamic value to radtextbox but this shows as a blank. 
Please help me in this issue.
Iana Tsolova
Telerik team
 answered on 15 Jun 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
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?