Telerik Forums
UI for ASP.NET AJAX Forum
15 answers
379 views
Hello, i have some problem with ClientSelectColumn of Radgridview
in Radgrid1 : i want when  i select  a checkbox or  select full checkbox and click TEST button , i can binding all rows selected from grid1 to grid2 or getting primary key(column makh) of all rows selected
What should i do ?
THANK
http://nguy-hiem.co.cc/share/hoi.png
Shinu
Top achievements
Rank 2
 answered on 07 Jun 2011
4 answers
174 views
I have a RadGrid. It contains multiple controls inside of it. One of them is a linkbutton whose clientClick triggers window.open. After the grid is loaded, I want to trigger the linkbutton's click if and only if the grid contains only one item.

I am defining the grid as follows:
<rad:RadGrid ID="rg" runat="server">
    <ClientSettings>
        <ClientEvents OnDataBound="rg_DataBound" />
    </ClientSettings>
    <MasterTableView PageSize="50" DataSourceID="ods" DataKeyNames="Id">
            <rad:GridTemplateColumn HeaderText="Name" SortExpression="a.Name">
                <ItemTemplate>
                    <asp:LinkButton ID="lblName" runat="server" />
                </ItemTemplate>
            </rad:GridTemplateColumn>
    </MasterTableView>
</rad:RadGrid>

In my codebehind, I am definining the ClientClick at the ItemCreated method.
var lb = (LinkButton)e.Item.FindControl("lbName");
lb.OnClientClick = "window.open('NewPage.aspx?id=" + obj.Id + "'); return false;";

I implemented the client grid databound as follows:
function rg_DataBound(sender, e) {
   var masterTable = $find('<%= rg.ClientID %>').get_masterTableView;
   var dataItems = masterTable.get_dataItems();
 
   if (masterTable.get_pageCount() == 1 && dataItems.get_count() == 1) {
      var lb = dataItems[0].findControl('lbName');
      lb.click();
   }
}

But this javascript method does not even get fired. Basically I have two questions at this time:
1. Am I in the right track?
2. Why is rg_DataBound not firing?

Thanks.
Baal
Top achievements
Rank 1
 answered on 07 Jun 2011
1 answer
201 views
Hi,

Actually I am facing a problem in menu bar that is on  mouse hover  menu items is flickering. So how can i remove flickering ?



Thanks
Jaichand Sahany
Princy
Top achievements
Rank 2
 answered on 07 Jun 2011
1 answer
138 views
I'm creating a load on demand treeview and using multiskin mechanism .
and every node on the tree has a forecolor and i need to load it dynamic with the node expand but i can't every time with any post back the tree take the skin default color ,i tried to save the datasource to the viewstate and every time in post back i set the colors again but the load on demand don't work then,it seams that the viewstate been locked 

please advise  
Tamer Gamal
Top achievements
Rank 1
 answered on 07 Jun 2011
0 answers
92 views
Hello Sir,

I am using RadTreeList in my project. I assign a data it properly. But control not display child data.

I use same control another place but there it's work completely.

I attached screen shot for that.

Write Code as below.

------------------------------------------------------ Code --------------------------------------------------------
 <telerik:RadTreeList runat="server" ID="treeListTasks" AllowPaging="false" AutoGenerateColumns="false"
                    OnNeedDataSource="treeListTasks_NeedDataSource" Width="800px" DataKeyNames="ID"
                    ParentDataKeyNames="ParentTaskId" OnItemCommand="treeListTasks_ItemCommand" AllowNaturalSort="false"
                    AllowMultiItemSelection="false" AllowSorting="false" OnItemDataBound="treeListTasks_ItemDataBound">
                    <Columns>
                        <telerik:TreeListBoundColumn DataField="Name" UniqueName="Name" HeaderText="Name" />
                    </Columns>
</telerik:RadTreeList>
----------------------------------------------------------------------------------------------------------------------


Please give me proper solution.

Thanks.
Kishor Dalwadi
Top achievements
Rank 2
 asked on 07 Jun 2011
2 answers
152 views
Hi Everyone,

I needed help to solve the problem:
    My ISSUE is I had a Rad grid in which the columns are automatically generated
The grid code looks like this

<telerik:RadGrid ID="rgTSSearch" runat="server" Skin="Outlook" Width="97%" ShowStatusBar="True"
        AllowSorting="True" PageSize="10" GridLines="None" OnColumnCreated="rgTSSearch_ColumnCreated"
        OnItemCreated="rgTSSearch_ItemCreated" OnNeedDataSource="rgTSSearch_NeedDataSource"
        OnItemCommand="rgTSSearch_ItemCommand" OnUpdateCommand="rgTSSearch_UpdateCommand"
        OnCancelCommand="rgTSSearch_CancelCommand" OnInsertCommand="rgTSSearch_InsertCommand">
        <PagerStyle Mode="NextPrevAndNumeric" />
        <MasterTableView Width="100%" DataKeyNames="ID" CommandItemSettings-ShowAddNewRecordButton="false"  CommandItemDisplay="Top" HorizontalAlign="NotSet">
            <CommandItemTemplate>
                <asp:LinkButton ID="btnInitInsert" runat="server" CommandName="InitInsert"><img style="border:0px;vertical-align:middle;height:20px; width:20px;" alt="" src="../../App_Themes/add.png" />Add new TS</asp:LinkButton>
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                <asp:LinkButton ID="btnRebind" runat="server" CommandName="RebindGrid"><img style="border:0px;vertical-align:middle; height:20px; width:20px;" alt="" src="../../App_Themes/refresh.png" />Refresh</asp:LinkButton>
            </CommandItemTemplate>
            <Columns>
                <telerik:GridEditCommandColumn ButtonType="ImageButton" HeaderStyle-Width="10%" UniqueName="EditColumn" />
            </Columns>
        </MasterTableView>
    </telerik:RadGrid>

In the automatic generated columns there are two bit datatype columns which are generated as a checkbox column.

Now when I edit a particular row how to set the check box in the edit form[External form] based on the value in the grid
I mean If the check box column in the grid is checked then the checkbox column in the External form should be checked .

I tried in different ways but nothing worked out .


So please help me......


Thanks In advance,
Sravz


sravanthi
Top achievements
Rank 1
 answered on 07 Jun 2011
3 answers
164 views
hi

I have a grid that has maybe 10 fields, but i want to export only certain fields in the grid to PDF. How should i go about it? Thanks
Shinu
Top achievements
Rank 2
 answered on 07 Jun 2011
8 answers
317 views
Hi there,
i have textbox with search button to filter radgrid ,I get the filtered data without problem but when I click on next page in the grid
the grid postback , so the filtered data is missed ,so I get the whole data again
could you help me who can I solve this issue
thanks in advance
ghadeer
Russ
Top achievements
Rank 1
 answered on 07 Jun 2011
1 answer
84 views



Hi Guys,

is there any reason why datatable visible on attached screenshot is displayed like this (see attached)?

DataGroupColumn property is set to "Days" and DataLabelsColumn (PlotArea.XAxis.DataLabelsColumn) to "TaskName"... The data is correct but it is displayed under wrong labels.

I checked examples in the documentation and can't see any differences between my way of populating the chart and yours.

Cheers,
Kamil
Kamil
Top achievements
Rank 1
 answered on 07 Jun 2011
1 answer
84 views
Hi,

I would like to reduce the RadFilter filter menu items based on editor type. I have read some forum posts like:
http://www.telerik.com/community/forums/aspnet-ajax/filter/custom-list-of-filter-functions-for-custom-field-editor.aspx
to limit filter menu items based on datatype and field name but I would like to do same thing based on editor type especially RadFilterDropDownEditor. I would like to show only Equal, NotEqual options if the added editor is RadFilterDropDownEditor.

Thanks in advance.
Iana Tsolova
Telerik team
 answered on 07 Jun 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?