Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
87 views
I have an radListView, I bind images from database, each page will display 3 images,
if inside the database, got 4 images, it will have 2 pages

in the page 2, it have 1 image only. i want to reload the first two image and show in page 2,
I want to rebind the same record and again and again...
do you know how can i do???


radlist view page 1                      radlistview page 2                           
1                                                              4
2                                                              1
3                                                              2
Iana Tsolova
Telerik team
 answered on 13 Jun 2011
8 answers
340 views
Hi,

I would like to accomplish the following:
A RadGrid with allow multiple row selection, but (de)selection should only be accomplished through the checkboxes in the GridClientSelectColumn. The selected row(s) should not be highlighted. The only indication for being selected should be the checked checkbox(es). This is because I would like a row to be highlighted when an user clicks on it anywhere but the checkbox, but it should not be selected.
So checking a row's checkbox or clicking a row anywhere but the checkbox should display very distinct and seperate behavior instead of the default tightly coupled behavior.

Does anyone know how to accomplice this in a relative simple manner? Or does it interfere so much with the way the RadGrid is build that it is (nearly) impossible?

Thanks in advance for any help on this.

Cheers,

Mink
Iana Tsolova
Telerik team
 answered on 13 Jun 2011
3 answers
83 views
Hi,
   I am creating grids on selection of a dropdown item dynamically in Page_Init. The grids are editable and automatic insert is enabled. The update and insert is working properly.

 Once I click update after modifying a row, the row is still staying in edit mode and not returning to normal view, however the update happens successfully. I had to click Cancel to return the row to normal mode. The same is happening for Inserting new row also.

Is it the expected behaviour of RadGrid ? I guess not. Then what may be the possible reason for this and how can I overcome this.


Thanks & Regard,
  Farhad
Farhad
Top achievements
Rank 1
 answered on 13 Jun 2011
1 answer
255 views
Hi, 

i am working on telerik grid. i want to change row color of row in javascript i.e 

 function RadGrid1_RowDataBound(sender, args) {              
                                if (args.get_dataItem()['LastName'] == "owner") {
                                    args.get_item().get_cell('LastName').style.Backcolor ='Red';  // how to do this
                                }
}


plz help

Regards,

Faisal

Princy
Top achievements
Rank 2
 answered on 13 Jun 2011
5 answers
181 views
Hi,
I am trying to export a radgrid to pdf which is having data in NestedViewTemplate.
When I try to do so the error come, please see the attached snapshot for error details.

My code is as belows:

<telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server">
        <telerik:RadGrid ID="radGridShippedOrders" runat="server" GridLines="None" AllowPaging="True"
            PageSize="15" AllowSorting="True" AutoGenerateColumns="false" ShowStatusBar="true" ShowHeader="false"
            HorizontalAlign="NotSet" AllowMultiRowEdit="false" OnNeedDataSource="radGridShippedOrders_NeedDataSource" 
             OnItemCommand="radGridShippedOrders_OnItemCommand" AllowCustomPaging="true" VirtualItemCount="5"
            Width="800px" AllowMultiRowSelection="False" AllowFilteringByColumn="true" ShowGroupPanel="True">
            <PagerStyle Mode="NextPrevAndNumeric" AlwaysVisible="true"></PagerStyle>
            
            <ExportSettings ExportOnlyData="true" IgnorePaging="true" OpenInNewWindow="true">
                 <Pdf PageTitle="Shipped Orders" />
                 <Excel Format=ExcelML />
            </ExportSettings>


            <MasterTableView GroupLoadMode="Client" CommandItemDisplay="None" DataKeyNames="OAHSSQ" Name="MTVShippedOrders">
                <Columns>
                    <telerik:GridBoundColumn UniqueName="OAORGN" HeaderText="OAORGN" DataField="OAORGN">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn UniqueName="OAHSSQ" HeaderText="OAHSSQ" DataField="OAHSSQ">
                    </telerik:GridBoundColumn>
                </Columns>
<NestedViewTemplate>
                    <b>Invoice Header</b><br />
                    <telerik:RadGrid ID="radGridInvoiceHeader" runat="server" GridLines="None" AllowPaging="True"
                        PageSize="20" AllowSorting="True" AutoGenerateColumns="false" ShowStatusBar="false" ShowHeader="false"
                        HorizontalAlign="NotSet" AllowMultiRowEdit="false" OnNeedDataSource="radGridInvoiceHeader_NeedDataSource"
                        Width="100%" AllowMultiRowSelection="False" AllowFilteringByColumn="false">
                        <PagerStyle Mode="NextPrevAndNumeric" AlwaysVisible="true"></PagerStyle>
                        <ExportSettings ExportOnlyData="false" IgnorePaging="true" OpenInNewWindow="true">
                            <Pdf PageTitle="Invoice Header" />
                        </ExportSettings>
                        <MasterTableView CommandItemDisplay="Bottom">
                              <Columns>
                                <telerik:GridBoundColumn UniqueName="OHORNO" HeaderText="Order Number" DataField="OHORNO"></telerik:GridBoundColumn>
                                <telerik:GridBoundColumn UniqueName="OHCSNM" HeaderText="Customer Name" DataField="OHCSNM"></telerik:GridBoundColumn>
                                <telerik:GridBoundColumn UniqueName="OHCAD1" HeaderText="Sold To Add 1" DataField="OHCAD1"></telerik:GridBoundColumn>
</Columns>
                        </MasterTableView>
                    </telerik:RadGrid>
                    
                    <br />
                    <b>Invoice Details</b><br />
                    <telerik:RadGrid ID="radGridInvoiceDetails" runat="server" GridLines="None" AllowPaging="True"
                        PageSize="20" AllowSorting="True" AutoGenerateColumns="false" ShowStatusBar="false" ShowHeader="false"
                        HorizontalAlign="NotSet" AllowMultiRowEdit="false" OnNeedDataSource="radGridInvoiceDetails_NeedDataSource"
                        Width="100%" AllowMultiRowSelection="False" AllowFilteringByColumn="false" OnItemDataBound="radGridInvoiceDetails_ItemDataBound">
                        <PagerStyle Mode="NextPrevAndNumeric" AlwaysVisible="true"></PagerStyle>
                        <ExportSettings ExportOnlyData="false" IgnorePaging="true" OpenInNewWindow="true">
                            <Pdf PageTitle="Invoice Header" />
                        </ExportSettings>
                        <MasterTableView CommandItemDisplay="Bottom" ShowFooter="true">
<Columns>
                                <telerik:GridBoundColumn UniqueName="ODITNO" HeaderText="Item Number" DataField="ODITNO"></telerik:GridBoundColumn>
                                <telerik:GridBoundColumn UniqueName="ODITD1" HeaderText="Item Description" DataField="ODITD1"></telerik:GridBoundColumn>
                                <telerik:GridBoundColumn UniqueName="ODQTOR" HeaderText="Quantity Ordered" DataField="ODQTOR"></telerik:GridBoundColumn>
                            </Columns>
                        </MasterTableView>
                    </telerik:RadGrid>


                </NestedViewTemplate>


            </MasterTableView>
             <ClientSettings AllowGroupExpandCollapse="True" ReorderColumnsOnClient="True" AllowDragToGroup="True"
                AllowColumnsReorder="True">
            </ClientSettings>
             <GroupingSettings ShowUnGroupButton="true" />
        </telerik:RadGrid>
    

CODE BEHIND
protected void btnExportToPDF_Click(object sender, EventArgs e)
        {
            radGridShippedOrders.ExportSettings.OpenInNewWindow = true;
            radGridShippedOrders.ExportSettings.ExportOnlyData = true;
            radGridShippedOrders.ExportSettings.IgnorePaging = true;

            foreach (GridDataItem gi in radGridShippedOrders.MasterTableView.Items)
            {
                gi.Expanded = true;
                if (gi.HasChildItems)
                {
                    RadGrid rgHeader = (RadGrid)gi.ChildItem.NestedViewCell.Controls[0].Controls[1];
                    rgHeader.Rebind();

                    RadGrid rgDetails = ((RadGrid)gi.ChildItem.NestedViewCell.Controls[0].FindControl("radGridInvoiceDetails"));
                    rgDetails.Rebind();
                } 
            }
            radGridShippedOrders.MasterTableView.HierarchyDefaultExpanded = true;
            radGridShippedOrders.MasterTableView.ExportToPdf();
        }
Ajay
Top achievements
Rank 1
 answered on 13 Jun 2011
1 answer
78 views
Hi Telerik,

Error occured in the grid when try to save with special character "<>" .
Refer to the attached screen shot.
When i try to save it throws error.

Regards
Shinu
Top achievements
Rank 2
 answered on 13 Jun 2011
1 answer
114 views
I have MasterPage and its ChildPage. On ChildPage I have JavaScript function that is raised on RadSplitter.OnClientLoad="abc". Basicly, this fires on page load as last client event and that is good for me to do something.

function abc() {
    $find("<%= RadAjaxManager1.ClientID %>").ajaxRequest('DoSomething');
}

This works normally.

Now I want to add one JavaScript-to-AjaxRequest function to MasterPage, I want to check something from database when every ChildPage gets focused, something like this (this is on MasterPage):

window.onfocus = function onFocus() {
    $find("<%=RadAjaxPanel1.ClientID%>").ajaxRequest('DoSomething');
};

Because I can't have two AjaxManager (on MasterPage and ChildPage), I put AjaxPanel in MasterPage.




So, when I request ChildPage in browser, both AjaxRequests should be fired, first one in MasterPage and then from ChildPage. RadAjaxPanel1.ajaxRequest from MasterPage works but AjaxManager.AjaxRequest from ChilPage don't work! When I remove function from MasterPage, function from ChildPage works normally and vice versa.


How to set both AjaxRequests work together, simultaneously? Obviously there is some conflict beetween them.


There is many articles on Internet about multiple AjaxRequests on same time but I don't understand what to do to correct problem.
Princy
Top achievements
Rank 2
 answered on 13 Jun 2011
1 answer
118 views
hi

I have dynamically initialized a treeview(i.e from backend)  and the treeview contains checkboxes and i want to get the details of the node i have selected in the checkbox
Shinu
Top achievements
Rank 2
 answered on 13 Jun 2011
4 answers
257 views
My last challenge to solve and this project will work.

I have a Delete button in a  DETAILS TABLE.   Using the GridButtonColumn with CommandName="Delete" and UniqueName="Delete Entry"

I need to be able to hide these based on certain conditions.  I would probably put the code in the ItemDataBound.  I would need to reference my second DataKeyName (QTRInserted) to decide to Hide or Show the Delete button.  I DO NOT WANT TO HIDE THE ENTIRE COLUMN.  Thanks.
<DetailTables>
             <telerik:GridTableView runat="server" DataSourceID="sqlDSDetails" Name="Details"
                 Width="100%" CommandItemDisplay="Top" DataKeyNames="Details_ID, QTRInserted">
                 <ParentTableRelation>
Shinu
Top achievements
Rank 2
 answered on 13 Jun 2011
1 answer
50 views
Hello RadScheduler Experts,

For our radscheduler, we do not want to show the TimeLine on the header. But we do want to show the Day, Week, Month.
If you can please point me to how this can be possible.

Thank you.
Veronica
Telerik team
 answered on 12 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?