Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
207 views
hi all.
i have i problem with radgrid. when i chose
<ClientSettings>
                <Selecting AllowRowSelect="True" />
</ClientSettings>
i can select row in grid.
but when i chose
<ClientSettings>
                <Selecting AllowRowSelect="True" />
                <ClientEvents OnRowSelecting="Rowselecting" />
</ClientSettings>
i can't chose row in grid . any event i chose in client setting , it made the AllowRowSelect don't work.
please help me , thank you .
Andrey
Telerik team
 answered on 27 Jan 2012
1 answer
108 views
Hi friends

we are using RadGrid in our application.
But we need to change paging style for RadGrid like,
first 1 2 3 4 5 6 7 last   like this
can anybody help me please...how can i do this

I have attached the preview of paging....



Thanks in Advance
Anwar
Shinu
Top achievements
Rank 2
 answered on 27 Jan 2012
1 answer
99 views
I am trying to add nodes from client using javascript and telerik client library : 

for (var nodeCount = 0; nodeCount < nodeLength; nodeCount++) {
                var node = new Telerik.Web.UI.RadTreeNode();
                node.set_text(MainArrayNodes[nodeStartCount].Text);
                node.set_value(MainArrayNodes[nodeStartCount].Value);
                var imageUrl = MainArrayNodes[nodeStartCount].ImageUrl.replace('~\\', '');
                node.set_imageUrl(imageUrl);
var nodeElem = nodeElem.get_element();
                selectedNode.get_nodes().add(node);
            }

The nodes which i add from server / using load on demand have proper values inside of node.get_element(). But when i try to add the nodes from client side using javascript the get_element() returns null for a node. Am I missing anything ?
mirang
Top achievements
Rank 1
 answered on 27 Jan 2012
3 answers
177 views
Hi,
during migration from old combo I found that:
- here it says that ClientDataString can be used in OnClientItemsRequesting event
http://www.telerik.com/help/radcontrols/prometheus/combo_OnClientItemsRequesting.html
- same time here is says that RadComboBoxItemsRequestedEventArgs.ClientDataString was removed
http://www.telerik.com/help/radcontrols/prometheus/combochanges.html

Looks like the second statement is correct - then can you give an example using ClientDataString or Context ?
And perhaps fix documentation
Thanks
Alex
Kalina
Telerik team
 answered on 27 Jan 2012
3 answers
116 views
Hi,

I've searched the forums but haven't been able to see if this is possible.

I've got a radtooltip this is assigned to a control inside a GridTemplateColumn, which works very well.  However it'd be much better if the tooltip could be applied to the entire row.  Since the row doesn't have an ID I'm not sure this is possible, but would be very pleased if it is!

Thanks,
Mathew
Shinu
Top achievements
Rank 2
 answered on 27 Jan 2012
1 answer
115 views
I have a listview of the contains a image and  check box. I cannot get the OnCheckedChanged event to fire.
The Listview output is attached and the code that creates is below:
<telerik:RadListView ID="RadListView1" runat="server" AllowPaging="True" ItemPlaceholderID="PlaceHolder1"
    Skin="listview_2" EnableEmbeddedSkins="false" OnItemCreated="RadListView1_ItemCreated"
    DataKeyNames="id,filenameextension,typeAbbr,title" OnNeedDataSource="RadListView1_NeedDataSource">
    <LayoutTemplate>
        <div class="RadListView RadListViewFloated RadListView_Windows7">
            <telerik:RadDataPager ID="RadDataPager1" runat="server" PageSize="25" PagedControlID="RadListView1"
                BorderWidth="0" OnFieldCreated="RadDataPager1_FieldCreated" CssClass="dataPagerClass">
                <Fields>
                    <telerik:RadDataPagerButtonField FieldType="FirstPrev" />
                    <telerik:RadDataPagerButtonField FieldType="Numeric" PageButtonCount="5" />
                    <telerik:RadDataPagerButtonField FieldType="NextLast" />
                    <telerik:RadDataPagerPageSizeField PageSizeText="Page size: " />
                    <telerik:RadDataPagerGoToPageField CurrentPageText="Page: " TotalPageText="of" SubmitButtonText="Go"
                        TextBoxWidth="15" />
                    <telerik:RadDataPagerTemplatePageField>
                        <PagerTemplate>
                            <b>Total Number of Assets Found:
                                <asp:Label runat="server" ID="TotalItemsLabel" Text="<%# Container.Owner.TotalRowCount%>" />
                            </b>
                        </PagerTemplate>
                    </telerik:RadDataPagerTemplatePageField>
                </Fields>
            </telerik:RadDataPager>
            <asp:PlaceHolder ID="PlaceHolder1" runat="server" />
        </div>
    </LayoutTemplate>
    <ItemTemplate>
        <div style="float: left; width: 162px; height: 200px; background-color: White;">
            <asp:Panel ID="myThumb" runat="server" CssClass="myClass" Style="border: 0; white-space: normal;
                padding: 5px 2px 25px 2px; background-color: #F0F8FF; text-align: center;
                width: 156px">
                <asp:HyperLink ID="HyperLink1" runat="server" >
                    <telerik:RadBinaryImage ID="RadBinaryImage1" runat="server" AutoAdjustImageControlSize="False"
                        CssClass="myClass" ImageUrl='<%# Eval("thumbUrl") %>' AlternateText="Click to view preview"
                        ToolTip="Click to view preview" Width="150px" Height="150px" />
                </asp:HyperLink><br />
                <asp:CheckBox ID="ChkImage" runat="server" Style="float: left; padding-top: 5px" OnCheckedChanged="ChkImage_CheckedChanged" /><small><asp:HyperLink
                    ID="lnkAsset1" runat="server" Visible="false" Style="float: left; padding-top: 5px">
                </asp:HyperLink><asp:HyperLink ID="lnkAsset2" runat="server" Style="float: left;">
                </asp:HyperLink><asp:HyperLink ID="lnkAsset3" runat="server" Style="float: left;
                    padding-left: 20px"></asp:HyperLink></small><br />
               <asp:HiddenField ID="hiddenAssetId" Value='<%# Eval("id") %>' runat="server" />
            </asp:Panel>
        </div>
    </ItemTemplate>
    <EmptyDataTemplate>
        No Assets Found
    </EmptyDataTemplate>
</telerik:RadListView>

The code to fire on the event is here;
protected void ChkImage_CheckedChanged (object sender, EventArgs e)
{
    CheckBox ChkImage = RadListView1.FindControl ("ChkImage") as CheckBox;
    Boolean chk = ChkImage.Checked;
}
Princy
Top achievements
Rank 2
 answered on 27 Jan 2012
1 answer
128 views
Good Afternoon!

I am using the aspnet RadGrid.
It works great.

I have allowpaging on
i have my aggrigates working great in the footer.

How can i get the aggrigates to total per/page as well as per/grid(the entire dataset)

Thanks, Jon
Richard
Top achievements
Rank 1
 answered on 26 Jan 2012
2 answers
88 views
If a radGrid is ajaxed, do ajaxed transactions (like deleting rows in the grid, editing rows in the grid, etc) keep the session alive?  Or does keeping the session alive require postbacks?
Kermit
Top achievements
Rank 1
 answered on 26 Jan 2012
6 answers
283 views
Hi,

I'm unable to see a thread I'd posted on quite a while ago about this same problem.

We've a RADTREEVIEW inside a RADCOMBOBOX. We use the clientnodeclicking to handle the dropdown selection and follow the code mentioned in the control documentation.

However, the selection does not happen when we click for the first time. The selection triggers a partial postback which would populate a dropdownlist based on the value selected from radtreeview. The selection only happens when we re-open the radtreeview and select the same node.

function nodeClicking(sender, args) {

 

var senderComboBoxName = sender._uniqueId.replace('$i0$RadTreeViewCategory', '');

senderComboBoxName = senderComboBoxName.replace(

 

'$', '_');

senderComboBoxName = senderComboBoxName.replace(

 

'$', '_');

senderComboBoxName = senderComboBoxName.replace(

 

'$', '_');

 

var comboBox = $find(senderComboBoxName);

 

var node = args.get_node()

 

var nodeValue = node.get_value();

 

if (EndsWithString(nodeValue, "5")) {

comboBox.set_text(node.get_text());

comboBox.trackChanges();

comboBox.get_items().getItem(0).set_value(node.get_value());

comboBox.commitChanges();

comboBox.hideDropDown();

comboBox.postback();

}

}

Please help us with the problem.

Sumedh
Top achievements
Rank 1
 answered on 26 Jan 2012
2 answers
87 views
Hi,
I have a RadGrid with

EnablePostBackOnRowClick

 

="true".RadGrid may contain multiple records but only based on status field = "A" or "D" row must be clickable.If status = "P" or "S" user should not be able to click that row to go to the next grid.
I used the following event to click on the row:

 

protected

 

void PrnHistoryGrid_ItemCommand(object source, GridCommandEventArgs e)

 

{

 

if (e.CommandName == "RowClick" && e.Item is GridDataItem)

 

{

 

GridEditableItem item = (GridEditableItem)e.Item;

 

 

string reqstat = item.Cells[13].Text;

 

 

string recstat = item.Cells[11].Text;

 

 

if (reqstat == "A" || reqstat == "D")

 

{

e.Item.Selected =

true;

 

 

int reqno = Convert.ToInt32(item.Cells[2].Text);

 

LoadRejCommData(reqno, recstat);

}

 

else

 

 

 

 

{

 

if (rejcommPanel.Visible == true)

 

{

rejcommPanel.Visible =

false;

 

}

}

}

}


Thanks  so much for your help

Vitaly
Top achievements
Rank 1
 answered on 26 Jan 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?