Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
225 views

Hi,

 

i just need to group a Grid column which in fact is a check box column. It contains only checked/unchecked boxes, and i want to allow them to be grouped. Here is my part of the code. Btw, some time ago, i figured it out, but cant remember now :(

 

<Columns>
     <telerik:GridTemplateColumn UniqueName="cbDonorUniqueSelect" HeaderText="SelectAll" AllowFiltering="false" Groupable="True" ShowFilterIcon="false" HeaderStyle-Width="30px">
          <HeaderTemplate>
                <asp:CheckBox ID="cbCheckAllDonors" runat="server" AutoPostBack="True" OnCheckedChanged="cbCheckAllDonors_CheckedChanged" SkinID="" />
          </HeaderTemplate>
          <ItemTemplate>
                 <asp:CheckBox ID="cbSelectDonor" runat="server" OnCheckedChanged="cbSelectDonor_CheckedChange"/>
          </ItemTemplate>
</telerik:GridTemplateColumn>
</Columns>​

Viktor Tachev
Telerik team
 answered on 15 Oct 2015
10 answers
420 views
is there a way to have a column with two images Up Down. depend on which image button you click on, it will move the row up or down and save the order into the database table.

Please help. thanks
Maria Ilieva
Telerik team
 answered on 15 Oct 2015
1 answer
91 views

Hello,

 

When i getting the value of the Asp TextBox mapped with radinputmanager like this

 <telerik:MaskedTextBoxSetting Mask="##.##.##.##.## lllll" SelectionOnFocus="CaretToBeginning">
            <TargetControls>
                <telerik:TargetInput ControlID="txt_phone" />
            </TargetControls>
        </telerik:MaskedTextBoxSetting>

If i get the value : this.txt_phone.Text , i get the mask inside.

When i used just radmasked textbox , i don't get the mask only the data.

thanks for your help

Maria Ilieva
Telerik team
 answered on 15 Oct 2015
1 answer
126 views

Hello Telerik Team,

We have Ticket Management kind of Web application and we have  extensively used the Telerik controls in our application.

The Telerik Version we are currently using is : 2014.2.724.45

In some of the places we used the RadAjaxPanel and placed RadGrid inside that Panel so that whenever we perform any action then the Grid content will get updated with partial refresh. We want one JavaScript function should get called when Ajax actions has been done by RadAjaxPanel. To accomplished this we used "ClientEvents-OnResponseEnd" property of RadAjaxPanel. Please refer following code:

-----------------------Code Start Here-----------------------

<script type="text/javascript" language="javascript">
    function TestJS()
    {
        alert('Hi');
    }
</script>
<telerik:RadAjaxPanel ID="RadAjaxPanel3" runat="server" EnableAJAX="true" LoadingPanelID="RadAjaxLoadingPanel1" ClientEvents-OnResponseEnd="TestJS()">

--RadGrid is located here.

</telerik:RadAjaxPanel> 

-----------------------Code End Here-----------------------​

Now in IE 11 browser the "TestJS()" function has been successively called for each action (which cause Postback) which we performed on Grid But the problem is for Chrome browser, the "TestJS()" function is getting called on each alternate action we perform on Grid. We want that for both the browsers IE11 and Chrome this functionality should work in the same way as it works in IE11.

Please help us to resolve the above issue for Chrome Browser.

Thanks,
Riz

Maria Ilieva
Telerik team
 answered on 15 Oct 2015
5 answers
161 views

A basic C# ASP.net page has a single RadGrid on a page. A RadButton with ​Auto​PostBack=false has an OnClientClicked client-side handler function assigned. This function does some long operations, so I would like to show the AjaxLoadingPanel while the browser is busy, even though there isn't any actual Ajax retrievalgoing on. But it seems as if the OnClientClicked event somehow disables or defers the call to the show method of the AjaxLoadingPanel. The panel and spinner does show up, but only after the long client-side operations are complete. Is this by design? Is there an easy work-around?

A demo ASP setup:

<form id="form1" runat="server">
  <telerik:RadScriptManager ID="RadScriptManager1" runat="server"></telerik:RadScriptManager>
  <div>
      <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Skin="Default"></telerik:RadAjaxLoadingPanel>
 
       
      <telerik:RadButton ID="RadButton1" runat="server" AutoPostBack="false" Text="Turn Loading Panel on" OnClientClicked="click_handler"></telerik:RadButton>
      <telerik:RadGrid ID="RadGrid1" runat="server" DataSourceID="demoinfo">
          <MasterTableView>
              <Columns></Columns>
          </MasterTableView>
      </telerik:RadGrid>   
      <asp:XmlDataSource runat="server" ID="demoinfo" datafile="demoinfo.xml"/>
  </div>
  <p id="bar" style="background-color:black; display:inline; width:1px;">.</p>
</form>
<script>
      function click_handler() {
          loaderOn();
          superslow();
          //loaderOff();
      }
 
      function superslow() { //just a bunch of uselessness to simulate slow operations
          var imax = 100000;
          for (var i = 0 ; i < imax; i++) {
              var noid = $find(i.toString().trim() + "id");
              var barel = document.getElementById("bar");
              barel.style.width = Math.floor(i * (imax / 10)).toString() + "px";
              if (i % 10000 == 0) {
                  console.log("ten thousand more...");
              }
          }
      }
 
      function loaderOn() {
          lp = $find("RadAjaxLoadingPanel1")
          lp.show("RadGrid1");
      }
 
      function loaderOff() {
          lp = $find("RadAjaxLoadingPanel1")
          lp.hide("RadGrid1");
      }
 
</script>

Thanks for your help,

Justin

Maria Ilieva
Telerik team
 answered on 15 Oct 2015
4 answers
167 views
Hi on the developer machine the control work, on the server not :-(

In attached the error that show when the page is loading.

The server is a windows server 2008 
Eyup
Telerik team
 answered on 15 Oct 2015
1 answer
389 views

I have a page with user control A and user control B.

In user control A, I have a RadAsyncFileUpload. while I click on a button (say Next) The page loads user control B. I have a breadcrumb set on top of the page. So what I want is when I hit the breadcrumb to load the previous state (i.e. load user control A again) I want the RadAsyncFileUpload to retain the file information and value.

How can I achieve that? I' pretty new to telerik. 

 

I tried the following from the back end (so that only hitting the cancel will triger postback, all other click will retain the information for the upload control)

Telerik.Web.UI.RadButton btncancel = (Telerik.Web.UI.RadButton)this.Parent.Parent.FindControl("btn_Cancel_ID");
 RadAsyncFileUpload.PostbackTriggers = new string[] { btncancel.ID };​

I also have "AllowedFileExtensions" on the file upload control. with the postback trigger being enables as above, when I try to navigate clicking the next button, it's not finding any file uploaded in the first place and I'm getting "RadAsyncFileUpload.UploadedFiles.Count" to be zero.

Hristo Valyavicharski
Telerik team
 answered on 15 Oct 2015
3 answers
244 views

Hi,

I am trying to play a video using an URL.

But i am not able to play it.

Can you suggest me the best approach for this?

<telerik:RadMediaPlayer ID="RadMediaPlayer1" runat="server" Height="360px" Width="640px"            
    Source="http://localhost/XTPSaaS/Albums/a344f305-f9e3-4ff6-b2ec-8ce4fa60c432/o_Screwdriver.avi">
</telerik:RadMediaPlayer>

Regards,

Varun R

Eyup
Telerik team
 answered on 15 Oct 2015
2 answers
192 views

I have Radwindow which Pops up by clicking ImageButton on RadGrid and Radwindow is not working whenever i set its Property Visible = true. Though its working by setting visibleonpageload=true. but it pops up every time page is loaded.

 

<telerik:RadWindow ID="radtooltipshowbom"  AutoSize="true" KeepInScreenBounds="true"  AutoSizeBehaviors="Default"  ContentScrolling="Y" RenderInPageRoot="false" runat="server" Modal="true" HideEvent="ManualClose"
                  Style="z-index: 6990" Position="TopCenter"  BackColor="White" Width="1510px" Height="670px">

Marin Bratanov
Telerik team
 answered on 15 Oct 2015
1 answer
78 views

I am using ragrid.The td value should come.

It is working fine in chrome.But  in mozila and IE data is not comming.

 

Please check the code

In mozila:

<td class="rgExpandCol">
<input id="ctl00_ContentMainBody_RadGrid_Publication_ctl00_ctl04_GECBtnExpandColumn" class="rgExpand" type="button" title="Expand" onclick="javascript:__doPostBack('ctl00$ContentMainBody$RadGrid_Publication$ctl00$ctl04$GECBtnExpandColumn','')" value=" " name="ctl00$ContentMainBody$RadGrid_Publication$ctl00$ctl04$GECBtnExpandColumn">
</td>
<td> </td>

 

In chrome

<td class="rgExpandCol"><input type="button" name="ctl00$ContentMainBody$RadGrid_Publication$ctl00$ctl04$GECBtnExpandColumn" value=" " onclick="javascript:__doPostBack('ctl00$ContentMainBody$RadGrid_Publication$ctl00$ctl04$GECBtnExpandColumn','')" id="ctl00_ContentMainBody_RadGrid_Publication_ctl00_ctl04_GECBtnExpandColumn" title="Expand" class="rgExpand"></td>
<td>Abu Dhabi Statistics</td>

 

Please help

 ​

 

 

Eyup
Telerik team
 answered on 15 Oct 2015
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
Andrey
Top achievements
Rank 1
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
Andrey
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?