Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
127 views
Dears,

I’m facing some problems with my rad grid view when i'm doing any postpack please check the attached image

thank you
khalil hamad

Maria Ilieva
Telerik team
 answered on 15 Mar 2011
2 answers
142 views
Hi,

I am philip. I am using your product in our project.

I am using RadAjaxManagerProxy in my code. When I run the code I got the error like, Sys.InvalidOperation: Could not find the update panel with ID 'ctl00_ctl00_ContentPlaceHolder1_txtDailuLimtvaluepanel'. Pls find the code below.. Pls solve the problem to avoid the error. Pls find the attachment of error.

<asp:Content ID="BodyContent" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <telerik:RadWindowManager ID="RadWindowManager" runat="server" 
        Skin="Office2007"></telerik:RadWindowManager>    
    <telerik:RadAjaxPanel ID="radAjaxPanel" runat="server">    
        <div id="content">
            <div id="container">
                <div class="left_col">
                    <table class="table">
                        <tr>
                            <td class="table">
                                <div class="box stacked">
                                    <ucCountryBasicInfo:CountryBasicInfo ID="ucCountryBasicInfo" runat="server" />
                                </div>
                            </td>
                        </tr>             
                    </table>
                </div>
                <div class="right_col">
                    <table class="table">
                        <tr>
                            <td class="table">
                                <h2>
                                    <asp:Literal ID="ltrlHomeCountryActivity" runat="server" Text="Home Country Activity"></asp:Literal>
                                </h2>
                            </td>
                        </tr>
                        <tr>
                            <td class="table">
                                <fieldset>
                                    <table class="table">
                                        <tr>
                                            <td class="tableLeft">
                                                <label>
                                                    <asp:Literal ID="ltrlSirasVelocityProfile" runat="server" Text="Siras Velocity Profile"></asp:Literal>
                                                </label>
                                            </td>                                            
                                            <td>
                                                <telerik:RadComboBox ID="cmbVelocityProfileId" runat="server" 
                                                    AutoPostBack="true" 
                                                    Width="210px" 
                                                    onselectedindexchanged="cmbVelocityProfileId_SelectedIndexChanged1">
                                                </telerik:RadComboBox>                                           
                                            </td>
                                        </tr>
                                    </table>
                                </fieldset>
                            </td>
                        </tr>
                    </table>
                </div>
                <table class="table">
                    <tr>
                        <td style="height: 1px;" valign="top">
                            <div class="box">
                                <fieldset>
                                    <table>                                            
                                        <tr>                                                                                            
                                            <td style="width: 25%;" valign="top">
                                                <table style="width: 100px;height:130px;" >
                                                    <tr>
                                                        <td style="width: 20%;height:16%;" >
                                                        </td> 
                                                    </tr>
                                                    <tr>
                                                        <td style="width: 20%;height:20%;">
                                                            <label>                                                   
                                                                <asp:Literal ID="ltrlDaily" runat="server" Text="Daily"></asp:Literal>
                                                            </label>
                                                        </td> 
                                                    </tr>
                                                    <tr>
                                                        <td style="width: 20%;height :20%;" >
                                                            <label>                                                   
                                                                <asp:Literal ID="ltrlWeekly" runat="server" Text="Weekly"></asp:Literal>
                                                            </label>
                                                        </td> 
                                                    </tr>
                                                    <tr>
                                                        <td style="width: 20%;height :20%;" >
                                                            <label>                                                   
                                                                <asp:Literal ID="ltrlMonthly" runat="server" Text="Monthly"></asp:Literal>
                                                            </label>
                                                        </td> 
                                                    </tr>
                                                    <tr>
                                                        <td style="width: 20%;height :20%;" >
                                                            <label>                                                   
                                                                <asp:Literal ID="ltrlTransactions" runat="server" Text="Transactions"></asp:Literal>
                                                            </label>
                                                        </td> 
                                                    </tr>
                                                </table>
                                            </td>
                                            <td style="width: 25%;" valign="top"  runat="server" id="tblValue">
                                                <table style="width: 100px;height:120px;" >
                                                    <tr>
                                                        <td style="width: 20%;height:16%;" >
                                                            <label>                                                   
                                                               <asp:Literal ID="ltrlValue" runat="server" Text="Value"></asp:Literal>
                                                            </label>
                                                        </td> 
                                                    </tr>
                                                    <tr>
                                                        <td style="width: 20%;height:20%;" >
                                                            <asp:TextBox ID="txtDailyValueLimit" runat="server" Width="120px" MaxLength="12"></asp:TextBox>
                                                        </td> 
                                                    </tr>
                                                    <tr>
                                                        <td style="width: 20%;height: 20%;" >
                                                            <asp:TextBox ID="txtWeeklyValueLimit" runat="server" Width="120px" MaxLength="12"></asp:TextBox>
                                                        </td> 
                                                    </tr>
                                                    <tr>
                                                        <td style="width: 20%;height: 20%;" >
                                                            <asp:TextBox ID="txtMonthlyValueLimit" runat="server" Width="120px" MaxLength="12"></asp:TextBox>
                                                        </td> 
                                                    </tr>
                                                    <tr>
                                                        <td style="width: 20%;height: 20%;" >
                                                            <asp:TextBox ID="txtTransactionValueLimit" runat="server" Width="120px" MaxLength="12"></asp:TextBox>
                                                        </td> 
                                                    </tr>
                                                </table>
                                            </td>
                                            <td style="width: 25%;" valign="top" runat="server" id="tblVolume">
                                                <table style="width: 100px;height: 120px;" >
                                                    <tr>
                                                        <td style="width: 20%;height: 16%;" >
                                                            <label>                                                   
                                                                <asp:Literal ID="ltrlVolume" runat="server" Text="Volume"></asp:Literal>
                                                            </label>
                                                        </td> 
                                                    </tr>
                                                    <tr>
                                                        <td style="width: 20%;height: 20%;" >
                                                            <asp:TextBox ID="txtDailyVolumeLimit" runat="server" Width="120px" MaxLength="9"></asp:TextBox>
                                                        </td> 
                                                    </tr>
                                                    <tr>
                                                        <td style="width: 20%;height: 20%;" >
                                                            <asp:TextBox ID="txtWeeklyVolumeLimit" runat="server" Width="120px" MaxLength="9"></asp:TextBox>
                                                        </td> 
                                                    </tr>
                                                    <tr>
                                                        <td style="width: 20%;height: 20%;" >
                                                            <asp:TextBox ID="txtMonthlyVolumeLimit" runat="server" Width="120px" MaxLength="9"></asp:TextBox>
                                                        </td> 
                                                    </tr>
                                                    <tr>
                                                        <td style="width: 20%;height: 20%;" >
                                                            <asp:TextBox ID="txtTransactionVolumeLimit" runat="server" Width="120px" MaxLength="9"></asp:TextBox>
                                                        </td> 
                                                    </tr>
                                                </table>
                                            </td>
                                            <td style="width: 25%;" valign="top" runat="server" id="tblUsage" >
                                                <table style="width: 100px;height: 120px;" >
                                                    <tr>
                                                        <td style="width: 20%;height: 16%;" >
                                                            <label>                                                   
                                                                <asp:Literal ID="ltrlUsage" runat="server" Text="Usage"></asp:Literal>
                                                            </label>
                                                        </td> 
                                                    </tr>
                                                    <tr>
                                                        <td style="width: 20%;height: 20%;" >
                                                            <asp:TextBox ID="txtDailyUsageLimit" runat="server" Width="120px" MaxLength="4"></asp:TextBox>
                                                        </td> 
                                                    </tr>
                                                    <tr>
                                                        <td style="width: 20%;height: 20%;" >
                                                            <asp:TextBox ID="txtWeeklyUsageLimit" runat="server" Width="120px" MaxLength="4"></asp:TextBox>
                                                        </td> 
                                                    </tr>
                                                    <tr>
                                                        <td style="width: 20%;height: 20%;" >
                                                            <asp:TextBox ID="txtMonthlyUsageLimit" runat="server" Width="120px" MaxLength="4"></asp:TextBox>
                                                        </td> 
                                                    </tr>
                                                    <tr>
                                                        <td style="width: 20%;height: 20%;" >
                                                            <asp:TextBox ID="TextBox1" runat="server" Width="120px" MaxLength="4" Visible="false"></asp:TextBox>
                                                        </td> 
                                                    </tr>                                                    
                                                </table>
                                            </td>
                                            <td style="width: 50%;" valign="top" runat="server" id="tblEmpty"></td>
                                        </tr>
                                    </table>
                                </fieldset>
                            </div>
                        </td>
                    </tr>
                </table>                    
                <p class="buttons">
                    <asp:Button runat="server" ID="btnSave" Text="Save" onclick="btnSave_Click" />
                    <asp:Button runat="server" ID="btnReset" Text="Reset" 
                        onclick="btnReset_Click" />
                </p>
            </div>
            <div id="container-footer">
            </div>
        </div>
        <telerik:RadInputManager ID="radInputManager" runat="server">
            <telerik:RegExpTextBoxSetting BehaviorID="DailyValue" ValidationExpression="^\d+$" ErrorMessage="Numbers Only">
                <TargetControls>
                    <telerik:TargetInput ControlID="txtDailyValueLimit" />
                </TargetControls>
            </telerik:RegExpTextBoxSetting>
            <telerik:RegExpTextBoxSetting BehaviorID="DailyVolume" ValidationExpression="^\d+$" ErrorMessage="Numbers Only">
                <TargetControls>
                    <telerik:TargetInput ControlID="txtDailyVolumeLimit" />
                </TargetControls>
            </telerik:RegExpTextBoxSetting>
            <telerik:RegExpTextBoxSetting BehaviorID="DailyUsage" ValidationExpression="^\d+$" ErrorMessage="Numbers Only">
                <TargetControls>
                    <telerik:TargetInput ControlID="txtDailyUsageLimit" />
                </TargetControls>
            </telerik:RegExpTextBoxSetting>
            <telerik:RegExpTextBoxSetting BehaviorID="WeeklyValue" ValidationExpression="^\d+$" ErrorMessage="Numbers Only">
                <TargetControls>
                    <telerik:TargetInput ControlID="txtWeeklyValueLimit" />
                </TargetControls>
            </telerik:RegExpTextBoxSetting>
            <telerik:RegExpTextBoxSetting BehaviorID="WeeklyVolume" ValidationExpression="^\d+$" ErrorMessage="Numbers Only">
                <TargetControls>
                    <telerik:TargetInput ControlID="txtWeeklyVolumeLimit" />
                </TargetControls>
            </telerik:RegExpTextBoxSetting>
            <telerik:RegExpTextBoxSetting BehaviorID="WeeklyUsage" ValidationExpression="^\d+$" ErrorMessage="Numbers Only">
                <TargetControls>
                    <telerik:TargetInput ControlID="txtWeeklyUsageLimit" />
                </TargetControls>
            </telerik:RegExpTextBoxSetting>
            <telerik:RegExpTextBoxSetting BehaviorID="MonthlyValue" ValidationExpression="^\d+$" ErrorMessage="Numbers Only">
                <TargetControls>
                    <telerik:TargetInput ControlID="txtMonthlyValueLimit" />
                </TargetControls>
            </telerik:RegExpTextBoxSetting>
            <telerik:RegExpTextBoxSetting BehaviorID="MonthlyVolume" ValidationExpression="^\d+$" ErrorMessage="Numbers Only">
                <TargetControls>
                    <telerik:TargetInput ControlID="txtMonthlyVolumeLimit" />
                </TargetControls>
            </telerik:RegExpTextBoxSetting>
            <telerik:RegExpTextBoxSetting BehaviorID="MonthlyUsage" ValidationExpression="^\d+$" ErrorMessage="Numbers Only">
                <TargetControls>
                    <telerik:TargetInput ControlID="txtMonthlyUsageLimit" />
                </TargetControls>
            </telerik:RegExpTextBoxSetting>
            <telerik:RegExpTextBoxSetting BehaviorID="TransValue" ValidationExpression="^\d+$" ErrorMessage="Numbers Only">
                <TargetControls>
                    <telerik:TargetInput ControlID="txtTransactionValueLimit" />
                </TargetControls>
            </telerik:RegExpTextBoxSetting>
            <telerik:RegExpTextBoxSetting BehaviorID="TransVolume" ValidationExpression="^\d+$" ErrorMessage="Numbers Only">
                <TargetControls>
                    <telerik:TargetInput ControlID="txtTransactionVolumeLimit" />
                </TargetControls>
            </telerik:RegExpTextBoxSetting>
        </telerik:RadInputManager> 
        <telerik:RadAjaxManagerProxy ID="radAjaxManager" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="btnSave">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="txtDailyValueLimit" />
                    <telerik:AjaxUpdatedControl ControlID="txtWeeklyValueLimit" />
                    <telerik:AjaxUpdatedControl ControlID="txtMonthlyValueLimit" />
                    <telerik:AjaxUpdatedControl ControlID="txtTransactionsValueLimit" />
                    <telerik:AjaxUpdatedControl ControlID="txtDailyVolumeLimit" />
                    <telerik:AjaxUpdatedControl ControlID="txtWeeklyVolumeLimit" />
                    <telerik:AjaxUpdatedControl ControlID="txtMonthlyVolumeLimit" />
                    <telerik:AjaxUpdatedControl ControlID="txtTransactionsVolumeLimit" />
                    <telerik:AjaxUpdatedControl ControlID="txtDailyUsageLimit" />
                    <telerik:AjaxUpdatedControl ControlID="txtWeeklyUsageLimit" />
                    <telerik:AjaxUpdatedControl ControlID="txtMonthlyUsageLimit" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="cmbVelocityProfileID">
                <UpdatedControls>                    
                    <telerik:AjaxUpdatedControl ControlID="txtDailyValueLimit" />
                    <telerik:AjaxUpdatedControl ControlID="txtWeeklyValueLimit" />
                    <telerik:AjaxUpdatedControl ControlID="txtMonthlyValueLimit" />
                    <telerik:AjaxUpdatedControl ControlID="txtTransactionsValueLimit" />
                    <telerik:AjaxUpdatedControl ControlID="txtDailyVolumeLimit" />
                    <telerik:AjaxUpdatedControl ControlID="txtWeeklyVolumeLimit" />
                    <telerik:AjaxUpdatedControl ControlID="txtMonthlyVolumeLimit" />
                    <telerik:AjaxUpdatedControl ControlID="txtTransactionsVolumeLimit" />
                    <telerik:AjaxUpdatedControl ControlID="txtDailyUsageLimit" />
                    <telerik:AjaxUpdatedControl ControlID="txtWeeklyUsageLimit" />
                    <telerik:AjaxUpdatedControl ControlID="txtMonthlyUsageLimit" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManagerProxy> 
    </telerik:RadAjaxPanel>       
</asp:Content>
Maria Ilieva
Telerik team
 answered on 15 Mar 2011
3 answers
131 views
Can someone help me with a problem.
Actually 2 problems...
The first one is Telerik related but maybe not a Telerik issue per-se
I am using Telerik Telerik.Web.UI.dll Version 2010.3.1317.40 on a DotNetNuke 04.09.05 website
http://Sarvac.ca

On any page using modules I create with Ajax, I get an error that I need to have an Ajax Script Manager on the page.
Adding one does not help.
I don't know why I get that error because I never needed one before because in the DotNetNuke host settings there is an option for Use Ajax and in the module settings a checkbox for Allow Prerendering .
Also, on my Dev server (IIS 7, Windows 7) it works fine- same site files and same web.config but no error.

I get around this by adding the Telerik Script manager and the Telerik Ajax manager and all is OK but...
For my own modules I created I don't mind doing this but for 3rd party modules which I dont have the source code for, it is a problem.

Does anyone know of something that could be different that would cause this issue?
On the prod server that I get the error, it is Windows Server 2003, IIS 6

Second issue:
How do you handle requirements to use 2 different versions of Telerik dll at same time.

This is regarding 3rd party 'Rezults' module I installed from OnyakTech which use an older version of Telerik than I use.
Heres what happenned:
- Uninstalled Onyaktech library
- It also removed Telerik DLL which I need for modules I created
- I replaced the Telerik DLL- OK
- Reinstalled Library- no errors
- Tested the OnyakTech Rezults module- seemed to work OK now
- Replaced the Telerik DLL with newer version
- Rezults broken again.

 " Could not load file or assembly 'Telerik.Web.UI, Version=2009.3.1103.20 "
Bill
Top achievements
Rank 1
 answered on 15 Mar 2011
3 answers
77 views
I'm using the code from the demo Grid / Window Editing. 

This part of the code doesn't work. 

 

 

Dim Details As HyperLink = DirectCast(e.Item.FindControl("DetailsLink"), HyperLink)

 

 

Details is set to nothing.

 


Tsvetoslav
Telerik team
 answered on 15 Mar 2011
1 answer
74 views
I couldn't find a direct answer to this question, and I haven't had any luck making it work either.

For example:
on "Page0.aspx", I have a RadWindowManager and a button.
When I click the button, a RadWindow is created and added to the RadWindowManager server-side.

Initially, the RadWindow loads "Page1.aspx"....from "Page1", I navigate to "Page2.aspx" (This is all inside the RadWindow)

Now, I click the button on "Page0.aspx" and it adds another RadWindow to the RadWindowManager.

My first RadWindow which should be showing "Page2", now goes back to its default page: "Page1".

I've messed with opening RadWindows client-side and that seems to do what I want to a limited extent.

But I want to be able to work with the RadWindows server side.  Possible?
Cori
Top achievements
Rank 2
 answered on 15 Mar 2011
1 answer
270 views
I am having some trouble using the repaint method??
The problem I am having is that the filter is a set of textboxes, drop-down, etc.  When I hide them the grid moves up and expands to fill the available space, as I would like it to do.  But the grid contents just move up and dont expand.

Here is my javascript code (I am able to access the grid, but the repaint method does not seem to exist):
case "tbrQueryPanel":
    var filter = contentWin.document.getElementById("filter");
    if (filter) {
        if (filter.style.display == '') {
            filter.style.display = 'none';
        }
        else {
            filter.style.display = '';
        }
    }
    var grid = contentWin.document.getElementById("Grid_RadGrid");
    grid.repaint();
    break;

Here is my Grid (scrolling and static headers are enabled, and it is nested inside a user control, which is nested inside a radpane, inside another container):
<telerik:RadScriptManager ID="ScriptManager" runat="server" />
<telerik:RadGrid ID="RadGrid" runat="server" Width="100%" Height="100%"
    Font-Names="Verdana" GridLines="Horizontal" AllowSorting="True" ShowGroupPanel="True" 
    Skin="Office2007" AllowPaging="True" PageSize="50" AutoPostBack="True"
    <MasterTableView>
        <HeaderStyle Wrap="false" />
    </MasterTableView>
    <ClientSettings AllowDragToGroup="True">
        <Scrolling UseStaticHeaders="true" AllowScroll="True" SaveScrollPosition="True"/>
        <Selecting AllowRowSelect="True" />
        <ClientEvents OnRowDblClick="RowDblClick" />
    </ClientSettings>
    <PagerStyle AlwaysVisible="true" />
    <ExportSettings ExportOnlyData="true" IgnorePaging="true"/>
</telerik:RadGrid>
...
Galin
Telerik team
 answered on 15 Mar 2011
1 answer
203 views
Hi:

I am just trying to bind radgird from client side with WCF service, I found one example online it is not working.
The senario is i need to pass 3 to 4 parameters to the service to get the result from the service and bind to grid.
if any example that can give an idea will help. I am totally new to WCF.

Thanks
Vasu

Tsvetina
Telerik team
 answered on 15 Mar 2011
4 answers
112 views
Hello Dears

I post this subject agian please any help i will be grateful:)

I took the the Demo Gird Example with Delete ,Update ,Insert Buttons  but when i'm press any button the server side code didnt called .

 

 

<telerik:RadGrid ID="RadGrid1" runat="server" CssClass="RadGrid" GridLines="None"

 

 

 

AllowPaging="True" PageSize="20" AllowSorting="True" AutoGenerateColumns="False"

 

 

 

ShowStatusBar="True" AllowAutomaticDeletes="True" AllowAutomaticInserts="True"

 

 

 

AllowAutomaticUpdates="True" OnItemDeleted="RadGrid1_ItemDeleted" OnItemInserted="RadGrid1_ItemInserted"

 

 

 

OnItemUpdated="RadGrid1_ItemUpdated" OnItemCommand="RadGrid1_ItemCommand" OnPreRender="RadGrid1_PreRender">

 

 

 

<MasterTableView CommandItemDisplay="TopAndBottom" DataKeyNames="الأجراء">

 

 

 

<CommandItemSettings ExportToPdfText="Export to Pdf" />

 

 

 

<RowIndicatorColumn FilterControlAltText="Filter RowIndicator column">

 

 

 

</RowIndicatorColumn>

 

 

 

<ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column">

 

 

 

</ExpandCollapseColumn>

 

 

 

<Columns>

 

 

 

<telerik:GridEditCommandColumn CancelText="الغاء" EditText="تعديل" InsertText="حفظ"

 

 

 

UpdateText="تعديل">

 

 

 

</telerik:GridEditCommandColumn>

 

 

 

<telerik:GridBoundColumn UniqueName="Case Id" HeaderText="رقم الحالة" DataField="الحالة">

 

 

 

<HeaderStyle ForeColor="Silver" Width="20px"></HeaderStyle>

 

 

 

<ItemStyle ForeColor="Gray" />

 

 

 

</telerik:GridBoundColumn>

 

 

 

<telerik:GridBoundColumn UniqueName="Activity UID" HeaderText="رقم الأجراء" DataField="الأجراء">

 

 

 

<HeaderStyle ForeColor="Silver" Width="20px"></HeaderStyle>

 

 

 

<ItemStyle ForeColor="Gray" />

 

 

 

</telerik:GridBoundColumn>

 

 

 

<telerik:GridBoundColumn UniqueName="Type" HeaderText="نوع الأجراء" DataField="نوع">

 

 

 

<HeaderStyle Width="60px"></HeaderStyle>

 

 

 

</telerik:GridBoundColumn>

 

 

 

<telerik:GridBoundColumn UniqueName="Created" HeaderText="تاريخ الأجراء" DataField="تاريخ"

 

 

 

DataFormatString="{0:d}">

 

 

 

</telerik:GridBoundColumn>

 

 

 

<telerik:GridBoundColumn UniqueName="Owned By" HeaderText="الموظفين" DataField="الموظفين">

 

 

 

</telerik:GridBoundColumn>

 

 

 

<telerik:GridBoundColumn UniqueName="Description" HeaderText="الوصف" DataField="الوصف">

 

 

 

</telerik:GridBoundColumn>

 

 

 

<telerik:GridButtonColumn CommandName="Delete" Text="حذف" UniqueName="column">

 

 

 

</telerik:GridButtonColumn>

 

 

 

</Columns>

 

 

 

<EditFormSettings EditFormType="Template">

 

 

 

<EditColumn FilterControlAltText="Filter EditCommandColumn1 column" UniqueName="EditCommandColumn1">

 

 

 

</EditColumn>

 

 

 

<FormTemplate>

 

 

 

<table id="Table2" cellspacing="2" cellpadding="1" width="100%" border="0" rules="none"

 

 

 

style="border-collapse: collapse; background: white;">

 

 

 

<tr class="EditFormHeader">

 

 

 

<td colspan="2" style="font-size: small">

 

 

 

<b></b>

 

 

 

</td>

 

 

 

</tr>

 

 

 

<tr>

 

 

 

<td colspan="2">

 

 

 

<b></b>

 

 

 

</td>

 

 

 

</tr>

 

 

 

<tr>

 

 

 

<td>

 

 

 

<table id="Table3" cellspacing="1" cellpadding="1" width="250" border="0" class="module">

 

 

 

<tr>

 

 

 

<td>

 

 

 

</td>

 

 

 

<td>

 

 

 

</td>

 

 

 

</tr>

 

 

 

<tr>

 

 

 

<td>

 

رقم الأجراء:

 

 

</td>

 

 

 

<td>

 

 

 

<asp:TextBox ID="TextBox7" runat="server" Text='<%# Bind("الأجراء") %>'>

 

 

 

</asp:TextBox>

 

 

 

</td>

 

 

 

</tr>

 

 

 

<tr>

 

 

 

<td>

 

الموظفين:

 

 

</td>

 

 

 

<td>

 

 

 

<asp:TextBox ID="TextBox8" runat="server" Text='<%# Bind("الموظفين") %>' TabIndex="1">

 

 

 

</asp:TextBox>

 

<%

 

-- onclick="ShowPersonsDialog('الموظفين','Nationality','X_NATIONALITY','ctl00_ContentPlaceHolder1_RadGrid1_ctl00_ctl11_TextBox8');return false;"--%>

 

 

 

 

<button id="btnGrid" runat="server" style="width: 20px;">

 

...

 

 

</button>

 

 

 

</td>

 

 

 

</tr>

 

 

 

<tr>

 

 

 

<td>

 

 

 

</td>

 

 

 

<td>

 

 

 

</td>

 

 

 

</tr>

 

 

 

<tr>

 

 

 

<td>

 

تاريخ الأجراء:

 

 

</td>

 

 

 

<td>

 

 

 

<telerik:RadDatePicker ID="BirthDatePicker" runat="server" MinDate="1/1/1900" DbSelectedDate='<%# Eval("تاريخ") %>'

 

 

 

TabIndex="4">

 

 

 

</telerik:RadDatePicker>

 

 

 

</td>

 

 

 

</tr>

 

 

 

<tr>

 

 

 

<td>

 

نوع الأجراء

 

 

</td>

 

 

 

<td>

 

 

 

<asp:DropDownList ID="ddlTOC" runat="server" TabIndex="7" AppendDataBoundItems="True">

 

 

 

<asp:ListItem Selected="True" Text="Select" Value=""></asp:ListItem>

 

 

 

</asp:DropDownList>

 

 

 

</td>

 

 

 

</tr>

 

 

 

</table>

 

 

 

</td>

 

 

 

<td>

 

 

 

<table id="Table1" cellspacing="1" cellpadding="1" width="250" border="0" class="module">

 

 

 

<tr>

 

 

 

<td>

 

الوصف:

 

 

</td>

 

 

 

</tr>

 

 

 

<tr>

 

 

 

<td>

 

 

 

<asp:TextBox ID="txtDesc" Text='<%# Bind("الوصف") %>' runat="server" TextMode="MultiLine"

 

 

 

Rows="5" Columns="40" TabIndex="5">

 

 

 

</asp:TextBox>

 

 

 

</td>

 

 

 

</tr>

 

 

 

</table>

 

 

 

</td>

 

 

 

</tr>

 

 

 

<tr>

 

 

 

<td align="right" colspan="2">

 

 

 

<asp:Button ID="btnUpdate" Text='<%# Iif (TypeOf Container is GridEditFormInsertItem, "Insert", "Update")%>'

 

 

 

runat="server" CommandName='<%#Iif (TypeOf Container is GridEditFormInsertItem, "PerformInsert", "Update") %>'>

 

 

 

</asp:Button>&nbsp;

 

<%

 

-- <asp:Button ID="btnUpdate" Text= "Insert"

 

 

runat="server" CommandName="PerformInsert" >

 

</asp:Button>&nbsp;

 

<asp:Button ID="btnCancel" Text="Cancel" runat="server" CausesValidation="False"

 

CommandName="Cancel"></asp:Button>--

 

 

%>

 

 

 

 

</td>

 

 

 

</tr>

 

 

 

</table>

 

 

 

</FormTemplate>

 

 

 

</EditFormSettings>

 

 

 

</MasterTableView>

 

 

 

<ClientSettings>

 

 

 

<ClientEvents OnRowDblClick="RowDblClick" />

 

 

 

</ClientSettings>

 

 

 

<FilterMenu EnableImageSprites="False">

 

 

 

</FilterMenu>

 

 

 

<HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Default">

 

 

 

</HeaderContextMenu>

 

 

 

</telerik:RadGrid>

 

 

 

<telerik:GridTextBoxColumnEditor ID="GridTextBoxColumnEditor2" runat="server" TextBoxStyle-Width="150px" />

 



 

 

Protected Sub RadGrid1_ItemInserted(ByVal source As Object, ByVal e As GridInsertedEventArgs) Handles RadGrid1.ItemInserted

 

 

 

 

If e.Exception IsNot Nothing Then

 

e.ExceptionHandled =

 

True

 

e.KeepInInsertMode =

 

True

 

DisplayMessage(

 

True, "Employee cannot be inserted. Reason: " & Convert.ToString(e.Exception.Message))

 

 

 

 

Else

 

DisplayMessage(

 

False, "Employee inserted")

 

 

 

 

End If

 

 

 

Dim gridEditFormItem As GridEditFormItem = DirectCast(e.Item, GridEditFormItem)

 

 

 

 

Dim dropDownList As DropDownList = DirectCast(gridEditFormItem.FindControl("ddlTOC"), DropDownList)

 

 

 

 

Dim TextBox As TextBox = DirectCast(gridEditFormItem.FindControl("TextBox8"), TextBox)

 

 

 

 

Dim txtDesc As TextBox = DirectCast(gridEditFormItem.FindControl("txtDesc"), TextBox)

 

 

 

 

Dim Btn As HtmlButton = DirectCast(gridEditFormItem.FindControl("btnGrid"), HtmlButton)

 

 

 

 

Dim strPartyInfo(,) As String

 

strPartyInfo = {{

 

"Type", dropDownList.SelectedItem.Text}, {"Owned By", TextBox.Text}, _

 

 

{

 

"Description", txtDesc.Text}, {"Case Id", rbDDLCorrCategory.SelectedItem.Text}}

 

 

setSiebelBusinessComponentData(

 

"HMM Correspondence", "Action", strPartyInfo)

 

 

 

 

End Sub

 


thank you
khalil_ck2002
Top achievements
Rank 1
 answered on 15 Mar 2011
8 answers
234 views
Hi,

i am using Radbinary control to display image in rad grid. it is displaying well in developement server. but when i deploy on production server. some images are not displaying and some are display . same in numeber of time refresh some display and some are not.

Please do needful

Thanks,
Jayesh Goyani
Radoslav
Telerik team
 answered on 15 Mar 2011
13 answers
314 views

Hello.

I'm found in doc separate examples about exporting and downloading attachments from ajaxified RadGrid.

After Implementing both of them = exporting doesn't work. Is it possible to combine this functions in one grid?

Thanks.

Daniel
Telerik team
 answered on 15 Mar 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?