Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
121 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
131 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
92 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
284 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
90 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
4 answers
63 views
Hi, I have read different posts stating that image thumbnail functionality exists in image manager but I cannot find the property "AllowThumbGeneration" for some reason. I am running the latest (2011.3.1305.35) and this is all I get when clicking the properties tab.

http://i.imgur.com/VNuat.png


Andrew Royce
Top achievements
Rank 1
 answered on 26 Jan 2012
9 answers
206 views
When we have too many items in the dropdown, Chrome starts to overlap the items in the combobox.

How do you resolve this? I've attached a screenshot.
Ivana
Telerik team
 answered on 26 Jan 2012
4 answers
89 views
Hi;
Just installed the new SP and when I start my app in IE9, I get the following error:
"Microsoft JScript runtime error: Unable to get value of the property 'Name': object is null or undefined"

The line # is 2099





And the following dialog pops up:
Sacha
Top achievements
Rank 1
 answered on 26 Jan 2012
1 answer
153 views
Hi,
   I have been trying to get this to work and need some help, I have a grid Template Column and have an expression to evaluate boolean values if its true or false in the Item Template, I need to filter on these values, how can I do this? In other Itemtemplate examples I have seen recommentdations to use Datafield but If i
use the
Datafield = "IsPrivateBank" ....it takes away the Filter from column header and just leaves a checkbox, since its taking it as a boolean value

and If I use the Expression in the datafield like

DataField = "<%# Convert.ToBoolean(Eval("IsPrivateBank")) == false ? "Federal" : "Private" %>"

this results in an error too. How can I filter on the values the user sees i.e "Federal" or "Private"  Please provide code example with your help, thanks in advance!!



<telerik:GridTemplateColumn HeaderText="Type" HeaderStyle-HorizontalAlign="Left" HeaderStyle-VerticalAlign="Bottom" ItemStyle-HorizontalAlign="Left" SortExpression="IsPrivateBank">   
    <ItemTemplate>   
        <asp:Label ID="lblBankType" runat="server" Text='<%# Convert.ToBoolean(Eval("IsPrivateBank")) == false ? "Federal" : "Private" %>'></asp:Label>   
    </ItemTemplate>   
</telerik:GridTemplateColumn>  
Jayesh Goyani
Top achievements
Rank 2
 answered on 26 Jan 2012
3 answers
117 views
Hi,

I have genuine Telerik controls. I added it to my Visual Studio and they're working fine. Now I want to add the Rad-Editor to SharePoint List as Rich Text  Field. I have come across with these instructions. It seems i.e I need wsp file to get  RadEditor in List Items .I searched in my installed folders of Telerik controls but I don't find any wsp file.Can any one tell me how can I get this wsp file or from where can I get this wsp file.
Rumen
Telerik team
 answered on 26 Jan 2012
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?