Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
78 views
There is a memory leak when you have a RadGrid that uses client-side binding via setting the OnCommand client event along with a column that has HeaderStyle-Width equal to a percentage value. Explorer cpu usage was static at 13%, and memory was slowly growing. The issue was not reproducible in Chrome.

<telerik:RadGrid ID="rgvStatus" runat="server" GridLines="None" Skin="Outlook" ShowFooter="True" EnableViewState="false">
  <MasterTableView AutoGenerateColumns="False">
     <Columns>
       <telerik:GridBoundColumn HeaderText="Name" DataType="System.String" DataField="Name"
           UniqueName="Name" HeaderStyle-Width="40%" />
       <telerik:GridBoundColumn HeaderText="Task" DataType="System.String" DataField="Task"
           UniqueName="Task" HeaderStyle-Width="40%" />
       <telerik:GridDateTimeColumn HeaderText="Time Started" DataType="System.DateTime"
           DataFormatString="{0:t}" DataField="TimeStarted" UniqueName="TimeStarted" />
    </Columns>
  </MasterTableView>
  
  <ClientSettings>
    <Scrolling AllowScroll="true" UseStaticHeaders="true" ScrollHeight="250px" />
     <ClientEvents OnCommand="pageLoad" />
  </ClientSettings>
  
  <FilterMenu EnableImageSprites="False"></FilterMenu>
                      
  <HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Default">
  </HeaderContextMenu>
</telerik:RadGrid>

The OnCommand function does not have to do anything, it leaks regardless. I was able to work around the issue by using a pixel value for the column widths.


Nick
Pavlina
Telerik team
 answered on 28 May 2011
1 answer
54 views
Hello,

I'm trying to create a demo to convince my company to purchase the Telerik AJAX library.  One of our key requreiemtns is column freezing.  However, I notice what seems to be a pretty bad bug in this (it reproduces on the demo site http://demos.telerik.com/aspnet-ajax/grid/examples/generalfeatures/frozencolumns/defaultcs.aspx).

Open the demo and scroll horizontally all the way to the right.  Now grab the lower right resize handle of your browser and resize it a little.  The horizontal scrollbar disappears!  You can no longer get to the columns that are out of view.  This happens in both IE 9 and chrome!

Please help!
Pavlina
Telerik team
 answered on 28 May 2011
7 answers
104 views
Hi,

i am trying RadGrid on SP2010.
I added the Webpart to a page and it looks good.
Accessing the page with a standard user he gets Access denied?!
After removing the part he couls use the page again.
I would like to have at less rights as possible in that area for the users. Which permissions are required to access the radgrid.

P.S. is able to access the list displayed in the grid and also to view, add and edit items over there.

Best regards

Christof
Sebastian
Telerik team
 answered on 28 May 2011
7 answers
149 views
Hello,

I am trying to get the column index when right clicking the radgrid to open up a context menu. target.cellindex returns as 'Undefined'.
I find that sometimes it does return the right index and at other times its undefined. 
Upon further debugging I noticed that when the index returns as undefined, the 'cellIndex' variable property is not found under the 'target' reference and is when it returns a number.

This is pretty urgent and I'd like to get a fix for this ASAP. 
Has this issue been fixed or is there a workaround?

Thanks!

Posted 12 minutes ago (permalink)

Upon further debugging I noticed that when the index returns as undefined, the 'cellIndex' variable property is not found under the 'target' reference and is when it returns a number.

This is pretty urgent and I'd like to get a fix for this ASAP. 

Posted 12 minutes ago (permalink)

Upon further debugging I noticed that when the index returns as undefined, the 'cellIndex' variable property is not found under the 'target' reference and is when it returns a number.

This is pretty urgent and I'd like to get a fix for this ASAP. 
Tsvetina
Telerik team
 answered on 28 May 2011
1 answer
101 views
Hi,

i want to use red editor in my sharpoint web application...

I want custom fieldtype which has rad editor and this custom field type use in list..

Thanks in advance..
Stanimir
Telerik team
 answered on 28 May 2011
9 answers
268 views
Hello,i'm Student,i'm studying about RadGrid,i have some problem ,plz help me
I have 2 table that's Customer and Bill,i also 2 RadGrid , i want Radgrid1 containing Customer Information and Radgrid2 (In <NestedViewTemplate> )  containing  Bill information with condition is CustomerID= Value when i click Expand
What's should i do ?
http://nguy-hiem.co.cc/share/567.png

THANKS !
trunghieu
Top achievements
Rank 1
 answered on 28 May 2011
11 answers
152 views
While one that is not in te RadPanelBar works perfect the another one simply does not work. No exceptions. Just does not work!

<form id="form1" runat="server">
    <telerik:RadScriptManager ID="MyScriptManager" runat="server" />
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
    <AjaxSettings>
    <telerik:AjaxSetting AjaxControlID="RadPanelBar1">
    <UpdatedControls>
    <telerik:AjaxUpdatedControl ControlID="RadPanelBar1" LoadingPanelID="LoadingPanelBasicDesign" />
    </UpdatedControls>
    </telerik:AjaxSetting>
    </AjaxSettings>
    </telerik:RadAjaxManager>
    <telerik:RadAjaxLoadingPanel ID="LoadingPanelBasicDesign" runat="server" Skin="Windows7" />
    <div>
    <telerik:RadScriptBlock runat="server" ID="KKLj">
    <script type="text/javascript">
        function SubmitTheFile() {
            var panel = $find("<%= RadPanelBar1.ClientID %>");
            var item = panel.findItemByValue("BodyStyle");
            if (item) {
                var mybutton = item.findControl("SubmitBodyBgImage");
                mybutton.click();
            } else {
                alert("Not Found!");
            }
        }
 
        function submitFile(sender, e) {
            $get("<%= Button1.ClientID %>").click();
        }
    </script>
    </telerik:RadScriptBlock>
    <telerik:RadPanelBar ID="RadPanelBar1" runat="server" Skin="Windows7" Width="690px" ExpandAnimation-Type="InElastic" ExpandMode="FullExpandedItem">
    <Items>
        <telerik:RadPanelItem Text="Body Style" Value="BodyStyle">
        <ItemTemplate>
        <div style="padding: 10px;">
        <table cellpadding="5" cellspacing="0" width="100%" style="padding: 10px;">
        <col width="170px" />
 
        <tr>
        <td>Background Image Upload:</td>
        <td valign="bottom">
        <telerik:RadUpload ID="BodyBgImageUpload" runat="server" TargetFolder="~/ftp"
            MaxFileSize="1024" ControlObjectsVisibility="None" OnClientFileSelected="SubmitTheFile" />
            <telerik:RadButton ID="SubmitBodyBgImage" runat="server" Text="Button" Style="visibility: hidden;" />
        </td>
        </tr>
        </table>
        </div>
        </ItemTemplate>
        </telerik:RadPanelItem>
    </Items>
    </telerik:RadPanelBar>
 
    <telerik:radupload id="RadUpload1" runat="server" onclientfileselected="submitFile" targetfolder="~/ftp" />
    <telerik:RadButton ID="Button1" runat="server" Text="Button" Style="visibility: hidden;" />
     
    </div>
    </form>
Jugoslav
Top achievements
Rank 1
 answered on 27 May 2011
2 answers
88 views
I trying to implement radasyncupload control inside radgrid.

I declare the upload control like:

<telerik:GridTemplateColumn DataField="usrSignature" EditFormColumnIndex="0"
HeaderText=
"<%$ Resources:Localization, usrSign%>"UniqueName="usrSignature">
    <ItemTemplate>
        <telerik:RadBinaryImage runat="server" ID="rb"
        DataValue='<%#Eval("usrSignature") is DBNull ? null : Eval("usrSignature")%>'
        AutoAdjustImageControlSize="false" Height="30px" Width="100px"
        AlternateText="<%$ Resources:Localization, NoSignature %>" />
    </ItemTemplate>
    <EditItemTemplate>
        <telerik:RadAsyncUpload ID="raupSignature" runat="server"
        AllowedFileExtensions="bmp,gif,jpg,jpeg,png" MaxFileInputsCount="1" />
    </EditItemTemplate>
</telerik:GridTemplateColumn>

I trying to validate that when UploadedFiles.Count == 0 i send a DBNull to database, and if UpladedFiles.Count > 0 i send the image uplaoded.

if (usrSignature.UploadedFiles.Count > 0)
    scmQuery.Parameters["@usrSignature"].Value = DBNull.Value;
else
    {
    UploadedFile file = usrSignature.UploadedFiles[0];
    byte[] fileData = new byte[file.InputStream.Length];
    file.InputStream.Read(fileData, 0, (int)file.InputStream.Length);
    scmQuery.Parameters["@usrSignature"].Value = fileData;
    }

This it's fine, but if i upload a file, then i delete the uploaded file, when i proceed to submit the record, I detect that UploadedFiles.Count = 1

I need to know how can decrease the UploadedFiles.Count every time when i delete a uploaded file.

I found a similar problem in the post: RadAsyncUpload does not clear uploaded files.

I'm using the version Q1 2010, and i need to find a solution for this problem.

NOTE: I found a similar problem in your Upload / Using RadAsyncUpload in an Ajaxified Grid example. If you add a image, then you delete the image, and then you proceed to add the record, One row in the grid it's deleted. If you repeat the operation to upload and delete more files, then produce a error.

I appreciated your time and your answer.

Regards,
Felipe Meléndez.
Felipe de Jesús
Top achievements
Rank 1
 answered on 27 May 2011
2 answers
198 views
Folks using VS 2010 SP1 with Rad Controls for ASP.Net Ajax 2011. I am below link as prototype. But unlike the below link I have 1 Master and 1 detail table.

http://demos.telerik.com/aspnet-ajax/grid/examples/hierarchy/declarativerelations/defaultcs.aspx

My intention is for example if CustomerID column value is 'ALFKI' in parent Table then hide Freight (A GridTemplateColumn in my actual scenario) Data in Detail Table, else show Frieght Column data in Detail Table. So far I come up with this in Radgrid Prerender event but strugling to get a referrence to hide the Detail Table column.

protected void RadGrid1_PreRender(object sender, EventArgs e)  
    {  
        foreach (GridDataItem dataItem in RadGrid1.MasterTableView.Items)  
        {  
            if (dataItem.Expanded)  
            {  
                // Need Help here to Conditionally Hide Detail Table Freight Column
                     //  if Column Value CustomerID  of Parent Table =  'ALFKI'.
                    
            }  
        }   
    }

Thanks

gc_0620
gc_0620
Top achievements
Rank 1
 answered on 27 May 2011
5 answers
180 views
Hi,

I have radconfirm window on blur of Date control. OK button gets the focus on confirm window, when i press tab, the focus goes to Cancel button. If i press tab again, the focus goes to parent page first control (here it is RadioButtonList) and allowing to navigate through radio buttons.

Does anyone know how to tab between Ok and Cancel buttons on confirm window.

I am using Confirm template to do this.
Here is my code:

<TelerikWeb:RadWindowManager ID="Singleton" runat="server" Skin="Vista">
      <ConfirmTemplate>
            <div class="windowpopup radconfirm">
                <script type="text/javascript">
                    function RadWindowManager_SetFocus(obj, ev)
                    {                               
                        if (!ev) ev = window.event;               
                        if (ev.keyCode == 9)
                        {                                   
                            if (obj.nextSibling)
                            {
                                obj.nextSibling.focus();
                            }
                            else if (obj.previousSibling)
                            {
                                 obj.previousSibling.focus();
                            }
                        }                               
                     }
               </script>

             <div class="dialogtext">
                {1}
                </div>
                <div>
                   <a onclick="$find('{0}').callBack(true);" class="radwindowbutton" href="javascript:void(0);"
                                    onblur="RadWindowManager_SetFocus(this, event);">
    <span class="outerspan">
    <span class="innerspan">##LOC[OK]##</span> </span></a>
     <a onclick="$find('{0}').callBack(false);" originalAttribute="href" originalPath="javascript:void(0);"
                                    onblur="RadWindowManager_SetFocus(this, event);">
    <span class="outerspan">
    <span class="innerspan">##LOC[OK]##</span> </span></a>
     <a onclick="$find('{0}').callBack(false);" originalAttribute="href" originalPath="javascript:void(0);"
                                    onkeypress="RadWindowManager_SetFocus(this, event);">
    <span class="outerspan">
    <span class="innerspan">##LOC[OK]##</span> </span></a>
     <a onclick="$find('{0}').callBack(false);" originalAttribute="href" originalPath="javascript:void(0);"
                                    onkeypress="RadWindowManager_SetFocus(this, event);">
    <span class="outerspan">
    <span class="innerspan">##LOC[OK]##</span> </span></a>
     <a onclick="$find('{0}').callBack(false);" class="radwindowbutton"
                                            href="javascript:void(0);" originalAttribute="href" originalPath="javascript:void(0);" originalAttribute="href" originalPath="javascript:void(0);" originalAttribute="href" originalPath="javascript:void(0);" onblur="RadWindowManager_SetFocus(this, event);">
    <span class="outerspan">
    <span class="innerspan">##LOC[Cancel]##</span> </span></a>
                  </div>
              </div>
       </ConfirmTemplate>
</TelerikWeb:RadWindowManager>


for some reason tab keypress event is not firing the function. But it get firing for any keypress.

I would appreciate any help I can get with this.

-Vishal

Randall
Top achievements
Rank 2
 answered on 27 May 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?