Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
95 views
Hello I'm trying to implement an editable grid in place and some filters but it fails. When i filter i need to do Radgri1.Databind() and if i to the binding the update command of the sqldatasorce don't work property. I reed that i have to implemented with advanced databindign but if I do it I don't know how to do the updates without the sqldatasource. Please could you help me.
Thanks in advance
Pau
Top achievements
Rank 1
 answered on 07 Jun 2011
4 answers
534 views
My Scenario:

Single web page with TabStrip and MultiPage.  Tab1/Page1 has a RadEditor that is used by the user to enter html.  Tab2/Page2 has an editor that allows the user to create a stylesheet.  When the user switches from Tab2, server side the users styles are written out to a file.  The CSSFiles in the RadEditor are cleared and the newly created CSSFile is added to the editor.  This works and the "Apply Styles Class" gets the styles in the drop down.

After going back to Tab 2 and making changes to the style sheet, when the user switches back to Tab 1, the new styles are applied to the file and the file is again removed and added to CSSFiles (Same File name).  Even though the file has changed, the RadEditor is using the contents from the previous version of the file.

So, I am pretty sure that the file does not get loaded again, because of caching by the browser.  I don't think this is an issue with the RadEditor itself. 

So my question is, "Is there a way to force the css to reload on these subsequent changes to pickup the changes to the CSS file?"
TazDeveloper
Top achievements
Rank 1
 answered on 07 Jun 2011
15 answers
349 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
136 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
172 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
124 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
70 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
125 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
121 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
275 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
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?