Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
152 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
252 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
134 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
60 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
152 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
1 answer
913 views
I have a grid where I am showing a price field with 5 decimal places, but I only want to show decimal places when I need them.

e.g.
1,234.56000 >>> I would like to look like  >>>> 1,234.56

Although in the same grid I could have >>>>> 0.98765

Thanks,
Chuck
Martin
Telerik team
 answered on 15 Jun 2011
1 answer
106 views

Hi,

Currently we are using RADEDITOR control with the version of 5.3.2.0.By using this control we are adding the reports and storing in the sharepoint publishing page.So the report is storing the following format in the Sharepoint list.

<div><iframe id="iframe_1" src="http://webURL"></iframe></div>
<p>RAD EDITOR CONTROL<br>\r\n<br>\r\nRAD EDITOR CONTROL</p>

Now my requirment is i want to chage the src value from http into https under iframe control.Here i have more than
500 pages with the src value of http.So to update the value for each page,i have created separate utiltiy and getting the src value of the page.If the src value has http://,replacing with https:// under iframe control.Its updating fine in the Sharepoint List.

But the problem is when you update with <iframe> control,the <iframe> control is storing as Empty.When i fetch the item again am getting the folllowing format.

<div> </div>
<p>RAD EDITOR CONTROL<br>\r\n<br>\r\nRAD EDITOR CONTROL</p>

Content is storing (RAD EDITOR CONTROL) fine with out any issues.But am not sure Why its not updating with IFrame control in SPListItem update.Please let me know.Wating for your reply

With Regards,
Rajesh

 

Stanimir
Telerik team
 answered on 15 Jun 2011
1 answer
80 views
Hi,
I am using radgrid to display user information.( name, position, company, IsExternal, IsPreferred)
Each row will have edit button.
When user clicks edit button, if that user is external user, the all fields will be editable.
If the user is Internal user, then only Ispreferred should be editable, and all other fields should be readonly.

Any help pls,
Thanks,
pams
Princy
Top achievements
Rank 2
 answered on 15 Jun 2011
1 answer
81 views
Hi,

I want to use grouping functionality on a Enum field, so in GridGroupByField I want to put a Text instead of enum integer value, is that possible?

Regards
Mazdak
Vasil
Telerik team
 answered on 15 Jun 2011
3 answers
68 views
Hi,
I added an appointment from 3-3-11 to 25-3-11.Then i took week view.Clicking on the side arrow button it shows the next week with the event.But when i took the week view of the calendar that is last week 3/20/2011 - 3/26/2011,the appointment for the last day is displaying separately.Is there is any way to display it correctly?.I have attached a screen shot with this.Please check it.
Veronica
Telerik team
 answered on 15 Jun 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?