Telerik Forums
UI for ASP.NET AJAX Forum
6 answers
498 views
I Have rad grid Inside ,I have 5 column, In that one column consist , Rad text Box ,in "insert Item" template ,And also I have Rad window Inside  ,The Rad window manager ,In the rad window  content template consist of the ,rad text Box 2, user give value and click on, OK Button ,I want transfer the value to "Rad Text  Box" Inside the rad grid . I want to These operation "In rad grid and edit mode".
In Need these operation using "javascript" .
How to access the rad-grid,column and controls in it,using java script  
ex:-
1.rad grid1-->master table---> 5 columns-->1 column--> item template
                                                                                      insert item template
                                                                                                     <rad text box>

2.rad window manager-->windows-->rad window-->content template-->Rad Text Box---> access

Radtextbox1.text=RadTextBox2.text;

How to access the both ,in using java script
like
<"%=radgrid1.client-id%=">

Help me telerik team.
Sairam
Top achievements
Rank 1
 answered on 04 Jun 2013
1 answer
100 views
Perhaps someone can help with this.

I'm currently trying to upload some files to be inserted into a db table.  The files are linked to a parent record id in a different table.

Appointment <= (Many) Attachments

So one appointment can have many attachments.

Within a radgrid the user enters details for a new appointment and can then upload attachment files.  The attachment files are to be inserted  with the new appointment record id.

The problem I have found is that the File Upload triggers before the insert of the new record (which is inserted using an entitydatasource).

My thinking is that if I can capture the insert of the record and use PostbackTriggers, I can insert the new appointment, capture the newly generated appointment id, then trigger the upload of the files which will now be able to be inserted with the appointment id.

If anyone could point me to an example where you can capture the PerformInsertButton button click on the insert form and then trigger the upload in this order it would be considerable help at the moment.

The nearest example code I can find for what I want to do seems to be Scotts code in this post :

http://www.telerik.com/community/forums/aspnet-ajax/async-upload/retain-uploaded-files-for-display-after-postback.aspx

Thanks.
Hristo Valyavicharski
Telerik team
 answered on 04 Jun 2013
1 answer
173 views
First of all, I'm using a RadMaskedTextBox inside of the Edit Template of a Radgrid.  SelectionOnFocus is set to "SelectAll" but that doesn't seem to be working. When I type in numbers, it doesn't replace the mask, but overwrites it instead. 

For example, the mask I have is "xx-xxx-xxxx".  So it looks like this in the textbox: __-___-____   However, when I place the cursor at the beginning and type, it shows something like: 353435__-___-____ or _34343_-___-____.   I am creating this textbox at Design Time.  I've read the RadControls for ASP.NET AJAX  documentation, but it doesn't seem to help with this problem.  Any suggestions? Thanks.

 

<EditItemTemplate>

 

<telerik:RadMaskedTextBox ID ="_tbLocationNumberMasked" runat="server"

Mask="##-###-####" SelectionOnFocus="SelectAll" >
</EditItemTemplate>




Using Visual Studio Extensions for RadControls for ASP.NET AJAX  Version 2011.1.519.0
Vasil
Telerik team
 answered on 04 Jun 2013
1 answer
469 views
Hi
     Would like to know if I can I retrieve cell value in itemdatabound event. If yes can somebody guide me how.

thanks
Savyo
Princy
Top achievements
Rank 2
 answered on 04 Jun 2013
2 answers
90 views
First of all, I'm using a RadMaskedTextBox inside of the Edit Template of a Radgrid.  SelectionOnFocus is set to "SelectAll" but that doesn't seem to be working. When I type in numbers, it doesn't replace the mask, but overwrites it instead.

For example, the mask I have is "xx-xxx-xxxx".  So it looks like this in the textbox: __-___-____   However, when I place the cursor at the beginning and type, it shows something like: 353435__-___-____ or _34343_-___-____.   I am creating this textbox at Design Time.  I've read the RadControls for ASP.NET AJAX  documentation, but it doesn't seem to help with this problem.  Any suggestions? Thanks.

 

<EditItemTemplate>

 

<telerik:RadMaskedTextBox ID ="_tbLocationNumberMasked" runat="server"

Mask="##-###-####" SelectionOnFocus="SelectAll" >
</EditItemTemplate>




Using Visual Studio Extensions for RadControls for ASP.NET AJAX  Version 2011.1.519.0
Kostadin
Telerik team
 answered on 04 Jun 2013
1 answer
38 views
Good morning all,

I will start by describing my scenario and then explain my final goal.
I am using a RadAjaxManager to control the loading panels and events and then have diferent loadings panels for each Grid.

I have several RadGrids in my web page with client databing. I want that the corresponding loading panel for each one disapears when the Grid finishes its databound. Currently both disappear when the firstone loads (apparently when ResponseEnd occurs too).

Example: I have my RadGrid1 that takes 2 secs to bind and have my RadGrid2 that takes 10secs to bind.
I want that the loading panel of RadGrid1 disapears after the 2secs but the loading panel of RadGrid2 maintains util the Grid is fully binded.

How can achieve this?

Many thanks in advance.
HDS

Currently I have the following code
<head>
    <title>ASP.NET Grid Demo - Grid Filtered by Combo</title>
    <tlk:RadCodeBlock runat="server" ID="RadCodeBlock1">
        <script type="text/javascript">
            var customerID = "";
 
            function onSelectedIndexChanged(sender, eventArgs) {
                var selectedItem = eventArgs.get_item();
                customerID = selectedItem._control._value;
                var selectedItemText = selectedItem != null ? selectedItem.get_text() : sender.get_text();
 
                $find("<%=RadGrid1.ClientID %>").get_masterTableView().filter("EntityParentId", customerID, "EqualTo");
                $find("<%=RadGrid2.ClientID %>").get_masterTableView().filter("EntityParentId", customerID, "EqualTo");
            }
 
            function RadGrid_DataBinding(sender, args) {
                if (customerID === "") {
                    args.set_cancel(true);
                }
            }
 
        </script>
    </tlk:RadCodeBlock>
</head>
<body>
    <form id="form1" runat="server">
        <tlk:RadScriptManager runat="server" ID="RadScriptManager1">
            <Services>
            </Services>
        </tlk:RadScriptManager>
        <asp:Label runat="server" ID="lblDDLName" Text="NamesDDL">Select contact name to view its product orders:</asp:Label>
        <div style="margin-top: 15px;">
            <tlk:RadComboBox ID="NamesDDL" runat="server" AutoPostBack="True"
                DataTextField="ContactName" DataValueField="SupplierID" Width="250px" Height="150px"
                AppendDataBoundItems="true" OnClientSelectedIndexChanged="onSelectedIndexChanged">
                <Items>
                    <tlk:RadComboBoxItem Text="All" Value="0" Selected="true"></tlk:RadComboBoxItem>
                    <tlk:RadComboBoxItem Text="Pair" Value="1" Selected="false"></tlk:RadComboBoxItem>
                    <tlk:RadComboBoxItem Text="Even" Value="2" Selected="false"></tlk:RadComboBoxItem>
                </Items>
            </tlk:RadComboBox>
        </div>
        <div style="margin: 15px 0 20px;">
            <tlk:RadGrid ID="RadGrid1" Visible="true" runat="server" AllowPaging="true" AllowSorting="True"
                AllowFilteringByColumn="true" GridLines="None" PageSize="5" AutoGenerateColumns="true">
                <MasterTableView ClientDataKeyNames="CustomerID" TableLayout="Fixed" AllowMultiColumnSorting="true">
                    <PagerStyle Mode="NumericPages" />
                    <Columns>
                        <tlk:GridBoundColumn DataField="EntityId" HeaderText="EntityId" />
                        <tlk:GridBoundColumn DataField="EntityName" HeaderText="EntityName" />
                    </Columns>
                </MasterTableView>
                <ClientSettings>
                    <DataBinding Location="ClientEntitiesService.svc"
                        SelectMethod="GetCustomerDataAndCount"
                        FilterParameterType="Linq" SortParameterType="Linq" />
                    <ClientEvents OnDataBinding="RadGrid_DataBinding" />
                    <Selecting AllowRowSelect="true" />
                </ClientSettings>
            </tlk:RadGrid>
        </div>
        <div runat="server" id="div">
            <tlk:RadGrid ID="RadGrid2" Visible="true" runat="server" AllowPaging="true" AllowSorting="True"
                AllowFilteringByColumn="true" GridLines="None" PageSize="5" AutoGenerateColumns="true">
                <MasterTableView ClientDataKeyNames="CustomerID" TableLayout="Fixed" AllowMultiColumnSorting="true">
                    <PagerStyle Mode="NumericPages" />
                    <Columns>
                        <tlk:GridBoundColumn DataField="EntityId" HeaderText="EntityId" />
                        <tlk:GridBoundColumn DataField="EntityName" HeaderText="EntityName" />
                    </Columns>
                </MasterTableView>
                <ClientSettings>
                    <DataBinding Location="ClientEntitiesService.svc" SelectMethod="GetCustomerDataAndCountWithDelay"
                        FilterParameterType="Linq" SortParameterType="Linq" />
                    <ClientEvents OnDataBinding="RadGrid_DataBinding" />
                    <Selecting AllowRowSelect="true" />
                </ClientSettings>
            </tlk:RadGrid>
        </div>
         <tlk:RadAjaxManager ID="RadAjaxManager1" runat="server" EnableAJAX="true" DefaultLoadingPanelID="RadAjaxLoadingPanel1">
            <AjaxSettings>
                <tlk:AjaxSetting AjaxControlID="NamesDDL">
                    <UpdatedControls>
                        <tlk:AjaxUpdatedControl ControlID="RadGrid1" LoadingPanelID="AjaxLoadingPanel1" UpdatePanelRenderMode="Inline"></tlk:AjaxUpdatedControl>
                         <tlk:AjaxUpdatedControl ControlID="div"  LoadingPanelID="RadAjaxLoadingPanel2" UpdatePanelRenderMode="Block"/>
                       <tlk:AjaxUpdatedControl ControlID="NamesDDL"></tlk:AjaxUpdatedControl>
                    </UpdatedControls>
                </tlk:AjaxSetting>
            </AjaxSettings>
        </tlk:RadAjaxManager>
        <tlk:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Skin="Default">
        </tlk:RadAjaxLoadingPanel>
        <tlk:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel2" runat="server" Skin="Sunset">
        </tlk:RadAjaxLoadingPanel>
    </form>
</body>
Kostadin
Telerik team
 answered on 04 Jun 2013
4 answers
267 views
I'm trying to clear or reset the RAD ComboBox via JQuery and I just can't seem to find the right way to do it. I'm firing a click event on a radiobuttonlist that I would like to set the RADComboBox to nothing.I get into my click even, but that combobox just wont play nice. Here are the ways I have tried it...

$('#<%=Me.cboCounterParty.ClientID %>').val("");
$('#<%=Me.cboCounterParty.ClientID %>').val([]);
$telerik.$('#<%=Me.cboCounterParty.ClientID %>').val("");
$telerik.$('#<%=Me.cboCounterParty.ClientID %>').val([]);


On a side note I am able to pull what's in the combobox via
alert($telerik.$('#<%=Me.cboCounterParty.ClientID %>').val());

Thanks!
Hristo Valyavicharski
Telerik team
 answered on 04 Jun 2013
3 answers
49 views

I am having an issue with the formatting of my webpage.  I am using both telerik:RadButton and telerik:RadPanelItem on my web page.  They have been working fine until now when I am trying to change the skins on both tools.  Before I changed them they were both Web20 but I want to change the RadPanel skin to Windows7 and RadButtons skin to Telerik.  When I look at the webpage in IE10, Chrome, and Firefox the page shows both the new skins, but when I look at the page in IE8 and IE9 the RadPanel disappears and the format is gone.  I have tried other skins for the RadButton but have not been able to get anything to work except if I go back to what I was doing before with having both items using the Web20 skin.  Any ideas on why this is happening?

Kate
Telerik team
 answered on 04 Jun 2013
1 answer
341 views
Hi,

I'm having some trouble uploading/deploying the website with RadControls onto the ftp server. I've also updated the server asp.net framework version to 4.0. However, I keep getting the following parse error (see Image below). :

Here is the web.config file:
<?xml version="1.0"?>
<configuration>
  <appSettings>
    <add key="Telerik.Skin" value="Silk"/>
    <add key="Telerik.ScriptManager.TelerikCdn" value="Disabled"/>
    <add key="Telerik.StyleSheetManager.TelerikCdn" value="Disabled"/>
  </appSettings>
  <system.web>
    <customErrors mode ="Off"/>
    <compilation debug="true" targetFramework ="4.5"/>
    <httpRuntime />
    <pages>
      <controls>
        <add tagPrefix="telerik" namespace="Telerik.Web.UI" assembly="Telerik.Web.UI"/>
      </controls>
    </pages>
    <httpHandlers>
      <add path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler" verb="*" validate="false"/>
      <add path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" verb="*" validate="false"/>
      <add path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" verb="*" validate="false"/>
      <add path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler" verb="*" validate="false"/>
      <add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" validate="false"/>
    </httpHandlers>
    <httpModules>
      <add name="RadUploadModule" type="Telerik.Web.UI.RadUploadHttpModule"/>
      <add name="RadCompression" type="Telerik.Web.UI.RadCompression"/>
    </httpModules>
  </system.web>
  <system.webServer>
    <validation validateIntegratedModeConfiguration="false"/>
    <modules runAllManagedModulesForAllRequests="true">
      <remove name="RadUploadModule"/>
      <add name="RadUploadModule" type="Telerik.Web.UI.RadUploadHttpModule" preCondition="integratedMode"/>
      <remove name="RadCompression"/>
      <add name="RadCompression" type="Telerik.Web.UI.RadCompression" preCondition="integratedMode"/>
    </modules>
    <handlers>
      <remove name="ChartImage_axd"/>
      <add name="ChartImage_axd" path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler" verb="*" preCondition="integratedMode"/>
      <remove name="Telerik_Web_UI_SpellCheckHandler_axd"/>
      <add name="Telerik_Web_UI_SpellCheckHandler_axd" path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" verb="*" preCondition="integratedMode"/>
      <remove name="Telerik_Web_UI_DialogHandler_aspx"/>
      <add name="Telerik_Web_UI_DialogHandler_aspx" path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" verb="*" preCondition="integratedMode"/>
      <remove name="Telerik_RadUploadProgressHandler_ashx"/>
      <add name="Telerik_RadUploadProgressHandler_ashx" path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler" verb="*" preCondition="integratedMode"/>
      <remove name="Telerik_Web_UI_WebResource_axd"/>
      <add name="Telerik_Web_UI_WebResource_axd" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" preCondition="integratedMode"/>
    </handlers>
  </system.webServer>
</configuration>

Any suggestions to solve this error? What are the following steps required to upload website with radcontrols?

Thanks.

Best Regards,
Syatira
Martin
Telerik team
 answered on 04 Jun 2013
4 answers
53 views
Hello, 
Is there a way to enable paging for RadPanelbar.
I tried adding RadDataPager and used RadPanelbar ID as "PagedControlID", but it didn't work.
Because of requirement, I can't wrap it with div and allow scrolling.

Thanks in advanced.
Robin
Top achievements
Rank 2
 answered on 04 Jun 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?