Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
96 views
Hi Telerik,

if,grid item double click,we can show item detail

<ClientSettings EnablePostBackOnRowClick="true" ><br>                                <ClientEvents OnRowDblClick="SelectTab" /><br>                                <Selecting AllowRowSelect="true" /><br>                        </ClientSettings>



 
<script type="text/javascript"><br><br>            function SelectTab() {<br>                var tabStrip = $find("<%= rdDisputeOutputTabStripDetail.ClientID %>");<br>                var tab = tabStrip.findTabByText("Detail");<br>                if (tab) {<br>                    tab.select();<br>                    $('html,body').scrollTop(0);<br>                }<br>            }  <br>        </script>



the same process, the Enter button you want to make a pressure,

I tried this code,

<ClientSettings AllowKeyboardNavigation="true"> <br>                         <ClientEvents OnKeyPress="keyPressed"  /> <br>                          <Selecting AllowRowSelect="true" /><br>                        </ClientSettings> <br>


<script type="text/javascript"><br><br  function keyPressed(sender, args) {<br   if (args.get_keyCode() == 13) {<br  alert("Hello");<brvar e = args.get_domEvent().rawEvent;<br  e.returnValue = false;<br  e.cancelBubble = true;<br><brif (e.stopPropagation) {<br e.preventDefault();<br e.stopPropagation();<br>                    }<br>                }  <br>                            <br>            } <br>    </script



because I could not get ID does not show details,


Thank you for your answer.
Kostadin
Telerik team
 answered on 03 Dec 2013
1 answer
105 views
Hi,

After upgrading to the most recent release of Ajax Radcontrols I'm now seeing an ugly border around an image in a radgrid header. No border is present in the row items, just the header (See image). I've tried all manner of css antics to remove it but nothing works including:

a img
{
    border: none;


.RadGrid a img
{
    border: none !important;
}

I'm using the Office2010Blue Skin. Here's the RadGrid line:-

<telerik:GridImageColumn DataImageUrlFields='Docs' HeaderImageUrl="paperclip.png" SortExpression="Docs" ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center"></telerik:GridImageColumn>

Here's the source html that gets generated:-

<th scope="col" class="rgHeader" style="text-align:center;"><input type="image" name="GridView1$ctl00$ctl02$ctl01$ctl00" src="paperclip.png" /></th>

Thanks


Venelin
Telerik team
 answered on 03 Dec 2013
3 answers
286 views
Hi,

I have a query regarding Rad search box. Suppose I'm typing "SCOTT" in the search area. In the firebug console I found 5 different requests to the server. What I need to know is while typing continuously, how can I make the searchbox abort "s", "sc", "sco", "scot" requests and accept only "scott" as the search term so that the server is hit only once and not 5 times.

I have used Ajaxcontroltoolkit autocomplete before which has the same functionality of aborting requests. How can I achieve the same for rad search box. Any idea?

Thanks
Abi
Plamen
Telerik team
 answered on 03 Dec 2013
1 answer
109 views
I have not tried this outside of our application, that is going to be my next step. I just wanted to ask the question to see if anyone had any ideas to look at before I dug any further into the issue. What I am seeing started with the latest version of Firefox (25.0.1). Basically what is happening is we have a combobox dynamically rendered on the page from the server side inside of a asp.net update panel and it renders fine until the user refreshes the page. I have attached two screenshots, one before the refresh to show the combobox rendering properly and a second screenshot to show what the combobox looks like after a refresh. The combobox functions properly it is just missing it's styles.
Shinu
Top achievements
Rank 2
 answered on 03 Dec 2013
8 answers
648 views
Hello,

  I have a radgrid in one of the web pages and in the template column i am using RadAsyncUpload to upload the documents(including PDF). Saving the documents in the database is fine. My problem is with viewing the documents, after they are saved.  I saw in some threads that opening these pdf docs in seperate radwindow is a way to achieve this. How do i do that?  

1) Using the ExportPDF is the right way to do this?
2) RadBinaryImage still not supporting PDF  format?
3) How do i send the binary data of the document to the RadWindow?
4) If i have multiple rows in the grid, then, do i have to select the row first and then click on export pdf?
5) If the file size is 1 MB. Obviously, i don't want to save the document without compressing or resizing it. How do i do that without decreasing the resolution, Since the document will be pulled up for reporting purpose in the future?
6) When i click the export button now, a new window is opening with grid information in it. It is not showing the document.

Where am i doing wrong? 


string url, path = "";
       bool isExport = false;
 
       protected void Page_Load(object sender, EventArgs e)
       {
           url = String.Format("~/{0}.pdf", RadGrid1.ExportSettings.FileName);
           path = Server.MapPath(url);
           
       }
 
 
protected void RadGrid1_GridExporting(object source, GridExportingArgs e)
       {
           if (File.Exists(path))
           {
               File.Delete(path);
           }
 
           using (FileStream fs = File.Create(path))
           {
               Byte[] info = System.Text.Encoding.Default.GetBytes(e.ExportOutput);
               fs.Write(info, 0, info.Length);
           }
 
           Response.Redirect("~/frm_UploadDocs.aspx");
       }
 
       protected void RadToolBar1_ButtonClick(object sender, RadToolBarEventArgs e)
       {
           if (e.Item.Value == "Export")
           {
              //RadGrid1.ExportSettings.ExportOnlyData = false;
               isExport = true;
               RadGrid1.MasterTableView.ExportToPdf();
           }
           else if (e.Item.Value == "Delete")
           {
               if (File.Exists(path))
               {
                   File.Delete(path);
               }
           }
       }

 I followed the demo link below.
http://demos.telerik.com/aspnet-ajax/controls/examples/integration/gridandradasyncupload/defaultcs.aspx?product=grid

http://blogs.telerik.com/vladimirenchev/posts/08-12-08/how-to-export-grid-to-pdf-file-and-show-the-result-using-the-window.aspx 



Appreciate the help
Thanks
Ramkumar
Top achievements
Rank 1
 answered on 03 Dec 2013
1 answer
83 views
How to move EditFormSettings Template to bottom after click "Add New Row"

thankห you
Shinu
Top achievements
Rank 2
 answered on 03 Dec 2013
2 answers
402 views
How to visible GridEditCommandColumn some row
ex. visible in rowindex 1 and 3
Nitisak
Top achievements
Rank 1
 answered on 03 Dec 2013
3 answers
92 views
Hello Telerik Team.
There is a problem/Bug in Online demo for Menu . I am using IE9.0.8112.16421
in This page : http://demos.telerik.com/aspnet-ajax/menu/examples/functionality/righttoleft/defaultcs.aspx
When you Don't use Comopatibility Mode ,everyThing is Fine but When you Enable Compatibility Mode
and Mouse over on "Format" then "Font" , submenu appears above the Format's submenu JUST FOR FIRST TIME,but in other tries ,it Apears in correct place.
Is any Solution for solving this Problem?Because I have a Problem Like this.
Thanks.
Princy
Top achievements
Rank 2
 answered on 03 Dec 2013
5 answers
405 views
Please Anybody can help me? 
I cann't change parent window url after radwindow close.
this is code on parent window .
 function UpdateParentPage(args) {

                if (args != null && args != '') {
                    if (args.startsWith('MoveReservation')) {
                        UpdateParentPageWithAjaxRequest('GrpResRoomRebind');
                    }
                    else if (args.startsWith('CheckIn')) {
                        window.location.reload();
                    }
                    else {
                        UpdateParentPageWithAjaxRequest('ReBindTransList');
                       // RedirePage();
                    }
                }
            }
            function RedirePage()
            {
               top.location.href= "../../Reservation/FolioNew.aspx";
            }
.....
Code on RadWindow
   function ResizeAndClose(width, height, key) {
                    //if (document.referrer.indexOf("/Update/ReservationDetails.aspx") > 0) {

                    //    top.location.href = '../../Reservation/FolioNew.aspx?';

                    //}
                    GetRadWindow().setSize(width, height);
                   
                    setTimeout('GetRadWindow().close("")', 100);
                   
                    GetRadWindow().BrowserWindow.UpdateParentPage(key);
                    GetRadWindow().BrowserWindow.RedirePage();

                   
                }

What i want is after process this  GetRadWindow().BrowserWindow.UpdateParentPage(key), want to go redirepage. 

Shinu
Top achievements
Rank 2
 answered on 03 Dec 2013
4 answers
311 views

Hi,

I can not find any properties to maintain the current position of Multipage after the postback.

In my case, I define multipage in usercontrol from which is added to target control of RadToolTipManager.  The scroll position is always back on the top after the postback.

Regards,

Duy
Duy
Top achievements
Rank 1
 answered on 03 Dec 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?