Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
148 views
Is there a way to add additional key/values to the change data so that it will be available in the OldValues and NewValues Hashtables?

I have a grid of data that could be edited from different pages at the same time and I need to pass an additional key/value pair with the change data to track DB Concurrency issues.


// callback function
function cell_changed(sender, args) {
    var row = args.get_row();
    var field = args.get_columnUniqueName(); // column
    var value = args.get_editorValue();
   
    var timestamp = row.getAttribute("data-ts");

     // how can I add an addition change to pass back with the newValues
     cell.add_change("ts", timestamp);
}


// is this close?

var id = sender._masterCleintID;
var editor = sender.get_batchEditingManager();
var changes = editor._changes[id];
changes[{rowIndex}] = {
     {field} = {
          originalValue = {
               "ts": timestamp
          }
     }
}



 

Konstantin Dikov
Telerik team
 answered on 31 Mar 2015
1 answer
154 views
Is there any capabilities in this control to have the image saved on the server vs. having them saved/downloaded to the client's computer. I'm not seeing anything, but i just want to confirm.  

I'd love to have a tool that lets me pass in a URL and create the image based on the rendered page and have that image saved on the server.

Thanks!
-Mark
Hristo Valyavicharski
Telerik team
 answered on 31 Mar 2015
1 answer
160 views
Apparently at some point in time, when you wanted to get the selected row data from a RadComboBox  from a calling form you look to the Request.Form item with the _ClientState in it's key.  For example If I had this on Form1:
<telerik:RadComboBox ID="cbTabDup" runat="server" Height="100px" Width="100px" Skin="Default"
    AutoPostBack="true" DropDownWidth="300px" HighlightTemplatedItems="True" MarkFirstMatch="true"
    ShowDropDownOnTextboxClick="true">
    <ItemTemplate>
        <table cellpadding="1" cellspacing="0" class="Main" width="250px">
            <tr>
                <td width="100px">
                    <%#DataBinder.Eval(Container.DataItem, "Code")%>
                      
                </td>
                <td nowrap>
                    <%#DataBinder.Eval(Container.DataItem, "Description")%>
                </td>
                <td style="display: none;">
                    <%# DataBinder.Eval(Container.DataItem, "ID") %>
                </td>
            </tr>
        </table>
    </ItemTemplate>
    <HeaderTemplate>
        <table cellpadding="1" cellspacing="0" class="Main" width="250px">
            <tr>
                <td class="ComboHeader" width="100px">
                    Code
                </td>
                <td class="ComboHeader">
                    Description
                </td>
            </tr>
        </table>
    </HeaderTemplate>
</telerik:RadComboBox>
and submitted it to Form2 using:
            Response.Redirect("Form2.aspx", True)

In Form2 I could do something like this and get the values:
For Each key In Request.Form.AllKeys
    If InStr(key, "cbTabDup_ClientState") > 0 Then
        Dim clsRad As New clsRadComboRequest
        clsRad.RadClientState = Request(key).ToString
        clsRad.SetValues()
 
        sDupText = clsRad.RadText
        sDupDescText = clsRad.RadDesc
        iDupInd = clsRad.RadValue
        Exit For
    End If
Next

Except for some unknown reason now, the Request array key containing the "cbTabDup_ClientState" is EMPTY?  Where'd it go?

Hristo Valyavicharski
Telerik team
 answered on 31 Mar 2015
3 answers
127 views
How do I bind only one node to a datatable or dataset(or sqldatasource I would like to use cache so it does not load every call as well)

<telerik:RadNavigation ID="RadNavigation1" runat="server" CssClass="siteMainMenu">
                <Nodes>
                    <telerik:NavigationNode ID="NavigationNode1" Text="Home" runat="server" NavigateUrl="/">
                    </telerik:NavigationNode>
                    <telerik:NavigationNode ID="NavigationNode2" Text="Products" runat="server">
                    </telerik:NavigationNode>
                    <telerik:NavigationNode ID="NavigationNode3" Text="Support" runat="server">
                        <Nodes>
                            <telerik:NavigationNode Text="Tutorials"></telerik:NavigationNode>
                            <telerik:NavigationNode Text="Samples"></telerik:NavigationNode>
                        </Nodes>
                    </telerik:NavigationNode>               
                </Nodes>
            </telerik:RadNavigation>


I have a dynamic list of products that I want to display as a drop down under NavigationNode2 "Products".

I suspect I would do something on nodedatabound but not sure what? 

Thanks, Marty



Ivan Danchev
Telerik team
 answered on 31 Mar 2015
1 answer
128 views
Is there any way that we can customize the content of the tooltip functionality in the RadPivotGrid?

I essentially want to be able to customize the tooltip that appears on a row header using load-on-demand functionality to display some content that would not always be needed, and would otherwise slow down the pivot grid significantly if I always had it render with the control.
Marin
Telerik team
 answered on 31 Mar 2015
3 answers
144 views
Hi,

I'd like to access the parent data source from a column template. Something like this:

<telerik:GridTemplateColumn DataField="Number" HeaderText="Number">
    <ItemTemplate>
        <%# ((MyCollection)Parent.DataSource).MyProperty %>
    </ItemTemplate>
</telerik:GridTemplateColumn>

where MyCollection represents a class I use to populate RadGrid and MyProperty is a property of this class that I'd like to access.

Is it possible to accomplish that?

Thanks,
Leszek
Eyup
Telerik team
 answered on 31 Mar 2015
1 answer
106 views
Hello rich Telerik Community,

I am into a strange problem, and couldn't find any clue that what's wrong!!

I want to use the drag and drop functionality of rad grid which is very attractive and effective for the experience of my user. The drag and drop function is working for the first item in the grid, but it doesn't work for the following items.

I am getting the error in the console window of my chrome broswer


Uncaught TypeError: Cannot read property 'attributes' of null
b._saveCellAttributes
Telerik.Web.UI.GridTableView.get_dataItems
Telerik.Web.UI.GridSelection._selectRowInternal
Telerik.Web.UI.GridSelection._click
(anonymous function)
b


I noticed that this error pops up when I click on the row. I don't know what is this. I am afraid that I will not be able to isolate the code for this problem, so it would be nice if someone can share their experience if they had this same issue. Any general idea will help me, I can give it a try.

Thanks



Eyup
Telerik team
 answered on 31 Mar 2015
2 answers
60 views
Hello I used your documentation sample to develop a tri-state checkbox filter for boolean fields.
The problem with your sample is that every time a boolean filter is applyed (or cleared) all the other filters are reset.
Is there any way to improve your sample, so that when I clear the boolean filter, it is only removed from the current ones, without clearing all?

Igor
Top achievements
Rank 2
 answered on 31 Mar 2015
3 answers
498 views
Hi, is there a way to get the value column from selected row on radgrid using jquery
This dont work for me using radgrid, its for asp grid. $("table#ctl100_thisGrid tbody td:nth-child(5)").text()
Thanks in advance
Abhay
Top achievements
Rank 1
 answered on 31 Mar 2015
2 answers
134 views
Can anyone spot why the radMenu isn't visible on the site. It works OK on test locally.

http://www.fiddlebitz.co.uk/

Andy
Andy Green
Top achievements
Rank 2
 answered on 31 Mar 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?