Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
213 views
Hi,
I want to rebind my RadComboBox and my CheckBoxList once the RadWindow had been closed. I have this javascript that runs on the OnClientClose event of RadWindow:

function closeRadwindow() {
            $find("<%= RadAjaxManager1.ClientID %>").ajaxRequest();
        }



This script invoke an ajaxRequest() in the OnClientclose event handler. Then in the Event handler rebind the radcombobox.

Private Sub RadAjaxManager1_AjaxRequest(ByVal sender As Object, ByVal e As Telerik.Web.UI.AjaxRequestEventArgs) Handles RadAjaxManager1.AjaxRequest
        ddClient.DataBind()
        chckSoftware.DataBind()
    End Sub

But I can't still rebind my RadComboBox and CheckBoxList. Any suggestion/help will be greatly appreciated.

Thanks!

Georgi Tunev
Telerik team
 answered on 31 Jan 2011
0 answers
63 views
Hello I am using Radgrid, and Image control when i close radwindow my parent control is refresh except  Image Control. 
how can i rebind image control also.
Amitkumar
Top achievements
Rank 1
 asked on 31 Jan 2011
1 answer
91 views
I get the following error when I place a RadListBox inside the edit template of a RadGrid and ajaxify them with the RadAjaxManagerProxy:

 Microsoft JScript runtime error: 'Telerik.Web.UI.RadListBox' is null or not an object

Here's a sample of code
<telerik:RadAjaxManagerProxy ID="RadAjaxProxy1" runat="server">
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="updatePanel">           
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="updatePanel"
                       LoadingPanelID="RadAjaxLoadingPanel2" /> 
                <telerik:AjaxUpdatedControl ControlID="RadGrid1" />          
            </UpdatedControls>
        </telerik:AjaxSetting>       
    </AjaxSettings>
</telerik:RadAjaxManagerProxy>
<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel2" runat="server" Skin="Default" />
 
<asp:Panel ID="updatePanel" runat="server">
 
<telerik:RadGrid ID="RadGrid1" runat="server" DataSourceID="myDataSource" AllowAutomaticInserts="false"
     AllowAutomaticUpdates="false" AllowPaging="true" PageSize="50"
     AllowAutomaticDeletes="true" onitemcommand="RadGrid1_ItemCommand"
        oninsertcommand="RadGrid1_InsertCommand"
        onupdatecommand="RadGrid1_UpdateCommand">
        <MasterTableView AutoGenerateColumns="False" DataSourceID="myDataSource"
        HeaderStyle-HorizontalAlign="Center" CommandItemDisplay="Top">
            <Columns>
                <telerik:GridEditCommandColumn ButtonType="ImageButton" EditText="Edit" />
                <telerik:GridBoundColumn DataField="Field1" HeaderText="Field1"
                    ItemStyle-HorizontalAlign="Center" ReadOnly="true" >
                </telerik:GridBoundColumn>
            </Columns>
            <EditFormSettings EditFormType="Template">
             <FormTemplate>
              <div>
              <table>
              <tr>
              <td>
              <asp:TextBox ID="txtField1" runat="server" Text='<%# Bind("Field1") %>' />
              </td>
              <td valign="top">                                   
             <telerik:RadListBox ID="lstBox1" runat="server"
                              DataSourceID="listboxDataSource" 
                             DataTextField="TextField" DataValueField="ValueField" Height="200px" Width="400px"
              CheckBoxes="true" />                                
             </td>
              </tr>
              </table>                      
                <div class="commandLinksDiv">
                 <asp:LinkButton ID="lnkBtnUpdate" runat="server"
    CommandName='<%# (Container is GridEditFormInsertItem) ? "PerformInsert" : "Update" %>'
                 CssClass="commandLinks" ValidationGroup="vldEditForm">
                    <img src="../../Styles/images/Update.gif" alt="" />
                      <span><%# (Container is GridEditFormInsertItem) ? "Insert" : "Update" %></span>
                 </asp:LinkButton>
                 <asp:LinkButton ID="lnkBtnCancel" runat="server" CausesValidation="false"
                     CommandName="Cancel" CssClass="commandLinks" Text="Cancel">
                  <img src="../../Styles/images/Cancel.gif" alt="" />
                  <span>Cancel</span>
                  </asp:LinkButton>
                 </div>
                </div>
             </FormTemplate>
                <EditColumn ButtonType="ImageButton" CancelText="Cancel" InsertText="Insert"
                    UniqueName="EditCommandColumn1" UpdateText="Update">
                </EditColumn>
            </EditFormSettings>
        </MasterTableView>
    </telerik:RadGrid>
</asp:Panel>

I get the error when I am debugging from Visual Studio and go into edit or insert mode.  Has anyone had this problem or know how to fix it?
Helen
Telerik team
 answered on 31 Jan 2011
1 answer
103 views
Hi all i have a very strange behavior concerning he RadNumericTextbox. I have numeric textboxes that are used in a grid edit template. These numeric textboxes allow for decimal typed values.

After initial insert the values are displayed correctly in the grid (see picture "numeric_tb_issue_p1.png"). when i however edit the record again the numeric values seem to be multiplied by 10.000 (see picture "numeric_tb_issue_p2.png" ). I have no clue whats so ever what's causing this behavior.

Doe anyone have any ideas how to solve this ? Below you can find the settings of one of the numeric textboxes for reference. 

 

<telerik:RadNumericTextBox ID="UnitPrice_RadNumericTextBox" runat="server"

 

 

NumberFormat-DecimalDigits="2" NumberFormat-GroupSeparator="" MaxLength="6" Text='<%# Bind("UnitPrice") %>' Type="Currency"

 

 

ontextchanged="UnitPrice_RadNumericTextBox_TextChanged" AutoPostBack="true"

 

 

CssClass="orderline-input">

 

Maria Ilieva
Telerik team
 answered on 31 Jan 2011
2 answers
156 views

I'm trying to integrate RadContextMenu into GridView , I'm ware of example which do this with RagGrid but I prefer to do it with normal gridview, I add this code into my TemplateField :

<telerik:RadContextMenu ID="ChooseDesktopImage" runat="server"
            EnableRoundedCorners="true" EnableShadows="true" OnClientItemClicked="OpenTagging">
            <Targets>
                <telerik:ContextMenuElementTarget ElementID="lblFileName" />
            </Targets>
            <Items>
                <telerik:RadMenuItem Text="Tag" Value='<%# Bind("workspace_file_mapping_id")  %>' />
            </Items>
        </telerik:RadContextMenu>

But I get compile error which says :

The RadMenuItem control with a two-way databinding to field workspace_file_mapping_id must have an ID.

Is that even possible to do what I want?

Regards
Mazdak
Mazdak
Top achievements
Rank 1
 answered on 31 Jan 2011
1 answer
53 views
Hello,

With IE i have a problem : when i click on add button to add an input to select files , it creates  2 !!
And after postback ,  the second file have the same file name of the first file ??

Thanks!!
Dimitar Terziev
Telerik team
 answered on 31 Jan 2011
1 answer
63 views
hi
i write this code in itemcommandi have error
please help

  GridFooterItem footer = (GridFooterItem)e.Item;

                                CDS.Savin.WebUI.Generals.General.SumDiscount = sumDicount;
                                CDS.Savin.WebUI.Generals.General.SumPrice = SumTotalPrice;
                                (footer["Count"].FindControl("txtSumCount") as TextBox).Text = (CDS.Savin.WebUI.Generals.General.numberToMoney(SumCount.ToString()));
                                (footer["Price"].FindControl("txtSumPrice") as TextBox).Text = (CDS.Savin.WebUI.Generals.General.numberToMoney(sumprice1.ToString()));
                                (footer["Discount"].FindControl("txtSumDiscount") as TextBox).Text = (CDS.Savin.WebUI.Generals.General.numberToMoney(sumDicount.ToString()));
                                (footer["totalPrice"].FindControl("txtSumTotalPrice") as TextBox).Text = (CDS.Savin.WebUI.Generals.General.numberToMoney(SumTotalPrice.ToString()));
                                (footer["sumprice"].FindControl("txtSumPriceT") as TextBox).Text = ((SummPrice.ToString()));

Princy
Top achievements
Rank 2
 answered on 31 Jan 2011
5 answers
127 views
Hi Community, it's me again :)

I have put some own colors in my RadEditor for MOSS 2007.

<colors>
    <color value="#FFFFFF" title="Weiss" />
    <color value="#DDDDDD" title="Grau 1" />
    <color value="#AAAAAA" title="Grau 2" />
    <color value="#666666" title="Grau 3" />
    <color value="#000000" title="Schwarz" />
    <color value="#E7EBF7" title="Blau" />
    <color value="#F3E03B" title="Gelb" />
    <color value="#CC0000" title="Rot" />
    <color value="#FF6600" title="Orange" />
    <color value="#9BC73B" title="Gruen 100" />
    <color value="#AED161" title="Gruen 80" />
    <color value="#C2DD88" title="Gruen 60" />
    <color value="#D6E8AF" title="Gruen 40" />
    <color value="#EAF3D7" title="Gruen 20" />
  </colors>

Is there a possibility to view the title attribute as text instead of the hexcode as it is used by darkorange?
Rumen
Telerik team
 answered on 31 Jan 2011
2 answers
209 views
Hi, we are working on implementing Select/Insert/Update/Delete functionality using RADGrid, it is working if we use <asp:SqlDataSource>

But when we implemented the events to call our own DAOs and do the Select/Insert/Update/Delete functionality  using the custom code

the events are not getting what can be going wrong

Thanks

The code that works:

 <
        <form id="form1" runat="server">
        <div>
            <asp:ScriptManager ID="ScriptManager1" runat="server">
            </asp:ScriptManager>
            <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
                <AjaxSettings>
                    <telerik:AjaxSetting AjaxControlID="RadGridEquityCharacterstics">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="RadGridEquityCharacterstics" />
                    </UpdatedControls>
                    </telerik:AjaxSetting>
                </AjaxSettings>
            </telerik:RadAjaxManager>
           
            <telerik:RadGrid ID="RadGridEquityCharacterstics" runat="server" AllowSorting="true" DataSourceID="SqlDataSource1"
                AllowAutomaticDeletes="true" AllowAutomaticInserts="true" AllowAutomaticUpdates="true"
                ShowStatusBar="true" Skin="Sunset" AllowMultiRowEdit="True">
                <MasterTableView AutoGenerateColumns="False" DataKeyNames="EquityCharId" DataSourceID="SqlDataSource1"
                CommandItemDisplay="TopAndBottom" EditMode="EditForms">
                    <Columns>
                        <telerik:GridEditCommandColumn UniqueName="EditCommandColumn" ButtonType="imagebutton" />
                        <telerik:GridBoundColumn DataField="EquityCharId" DataType="System.Int32" HeaderText="EquityCharId"
                            ReadOnly="True" SortExpression="EquityCharId" UniqueName="EquityCharId" Visible="False"/>   
                        <telerik:GridBoundColumn DataField="CharType" HeaderText="CharType" SortExpression="CharType"
                            UniqueName="CharType" />
                        <telerik:GridBoundColumn DataField="RepAccount" HeaderText="RepAccount" SortExpression="RepAccount"
                            UniqueName="RepAccount" />
                        <telerik:GridBoundColumn DataField="AccountABC" HeaderText="ABC" SortExpression="AccountABC"
                            UniqueName="Account703" />
                        <telerik:GridBoundColumn DataField="AccountBCD" HeaderText="BCD" SortExpression="AccountBCD"
                            UniqueName="Account103" />
                        <telerik:GridBoundColumn DataField="SP500" HeaderText="S&P 500" SortExpression="SP500"
                            UniqueName="SP500" />
                        <telerik:GridBoundColumn DataField="R1000" HeaderText="R 1000 Value" SortExpression="R1000"
                            UniqueName="R1000" />
                        <telerik:GridBoundColumn DataField="AsOfDate" DataType="System.DateTime" HeaderText="AsOfDate"
                            SortExpression="AsOfDate" UniqueName="AsOfDate" DataFormatString="{0:MM/dd/yyyy}"/>
                        <telerik:GridButtonColumn UniqueName="ButtonColumn" Text="Delete" CommandName="Delete"
                            ButtonType="imagebutton" />
                    </Columns>
                </MasterTableView>
            </telerik:RadGrid>
            <br />
            <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:DCMaster %>"
                SelectCommandType="StoredProcedure" SelectCommand="SelectEDCEquityCharacterstics" DeleteCommandType="StoredProcedure"
                DeleteCommand="DeleteEDCEquityCharacterstics" UpdateCommandType="StoredProcedure" UpdateCommand="UpdateEDCEquityCharacterstics"
                InsertCommandType="StoredProcedure" InsertCommand="InsertEDCEquityCharacterstics">
            <UpdateParameters>
                <asp:Parameter Name="CharType" Type="String" />
                <asp:Parameter Name="RepAccount" Type="String" />
                <asp:Parameter Name="AccountABC" Type="String" />
                <asp:Parameter Name="AccountBCD" Type="String" />
                <asp:Parameter Name="SP500" Type="String" />
                <asp:Parameter Name="R1000" Type="String" />
                <asp:Parameter Name="AsOfDate" Type="DateTime" />
            </UpdateParameters>
            <InsertParameters>
                <asp:Parameter Name="CharType" Type="String" />
                <asp:Parameter Name="RepAccount" Type="String" />
                <asp:Parameter Name="AccountABC" Type="String" />
                <asp:Parameter Name="AccountBCD" Type="String" />
                <asp:Parameter Name="SP500" Type="String" />
                <asp:Parameter Name="R1000" Type="String" />
                <asp:Parameter Name="AsOfDate" Type="DateTime" />
            </InsertParameters>
            </asp:SqlDataSource>
        </div>
        </form>


The code that does not work
<
private void RadGridEquityCharacterstics_InsertCommand(object source, Telerik.Web.UI.GridCommandEventArgs e) { 
GridEditableItem editedItem = e.Item as GridEditableItem
Label1.Text =
"Insert Command";  
//This is eVent is not fired
}

>

 

 

 

 

 

 

 

 

 

Princy
Top achievements
Rank 2
 answered on 31 Jan 2011
3 answers
116 views
Hi,

    i am using rad splitter in my application.i have master page and in side that i put splitter control
splitter has two region, menu region and content region. in menu region i am using rad panel bar control for vertical
menu. i am populating the menu items dynamically.after these functionalities done screen is getting too much time to
load.please tell me the solution to improve the performance.

i have attached my sample menu screen shot please refer that 
Yana
Telerik team
 answered on 31 Jan 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?