Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
84 views
Hi,

I am using selectedIndexChanged to select a single row of a RadGrid and in CustomGrid_SelectedIndexChange some code is written (say to populate one or more radgrid), so when  I doubleclick on the row it causes Postback. How can I getrid of the postback.

Is there anyway to get rid of postback? Or any alternate for selectedindexchanged?

Thanks,
Rory
Top achievements
Rank 1
 answered on 19 Aug 2011
3 answers
95 views
I have dropdown list edit template column

<EditFormSettings

 

 

EditFormType="Template">

 

 

 

<FormTemplate>

 

 

 

<table id="Table2" cellspacing="2" cellpadding="1" width="100%" border="0" rules="none"

 

 

 

style="border-collapse: collapse; background: white;">

 

 

 

<tr class="EditFormHeader">

 

 

 

<td colspan="2" style="font-size: small">

 

 

 

<b>Act</b>

 

 

 

</td>

 

 

 

<td>

 

 

 

<asp:DropDownList ID="ddlAct" AutoPostBack="true" runat="server" DataValueField="Id" OnSelectedIndexChanged="ddlAct_SelectedIndexChanged"

 

 

 

DataTextField="Act" SelectedValue='<%# Bind("Id") %>' TabIndex="7" AppendDataBoundItems="True" >

 

 

 

<asp:ListItem Selected="True" Text="Select" Value=""></asp:ListItem>

 

 

 

</asp:DropDownList>

 

 

 

 

</td>

 

 

 

</tr>

 

 

 

<tr class="EditFormHeader">

 

 

 

<td colspan="2" style="font-size: small">

 

 

 

<b>42 CFR</b>

 

 

 

</td>

 

 

 

<td>

In itemdatabound, it doesn't hit the

 

if ((e.Item is GridDataItem) && e.Item.IsInEditMode)

 

 

 

here is the code

 

 

 

protected void rd_ItemDataBound(object sender, GridItemEventArgs e)

 

{

// if (e.Item is GridEditableItem && e.Item.IsInEditMode)

 

 

if ((e.Item is GridDataItem) && e.Item.IsInEditMode)

 

{

 

 

GridEditableItem edititem = (GridEditableItem)e.It


What i'm missing here?

 

Jayesh Goyani
Top achievements
Rank 2
 answered on 19 Aug 2011
2 answers
177 views
Hello all.

Im working with DNN and I need show notifications but, my page is a *.ascx (user control) and this control doesn't works correctly, always appear in bottom area of my page; regardless of the value of the position that I have assigned.

I hope you can help me.

Thankyou!
Hugo
Top achievements
Rank 1
 answered on 19 Aug 2011
0 answers
96 views
Please ignore this posting...
Ivan Queiroz
Top achievements
Rank 1
 asked on 19 Aug 2011
5 answers
219 views
I have a RadAjaxPanel that contains several buttons. I want to exclude some controls from triggering the loading panel.
Is this possible?

 
Pavlina
Telerik team
 answered on 19 Aug 2011
3 answers
95 views
Hi,

<telerik:RadComboBox ID="rcbCommunity" runat="server" AutoPostBack="true" EnableViewState="true"
                    OnClientBlur="OnClientBlur" Text="" Style="position: relative; float: left; margin: 10px 0px 0px 10px;"
                    Width="200px">
                    <Items>
                        <telerik:RadComboBoxItem Text="" runat="server" />
                    </Items>
                    <ItemTemplate>
                        <asp:CheckBoxList ID="chkCommunity" runat="server" EnableViewState="true">
                        </asp:CheckBoxList>
                    </ItemTemplate>
                </telerik:RadComboBox>

I am using checkbox list in radcombo box. It is woring fine but i am facing some problem in that
1.)  when i click on All than i am not able to make all option as select mode. Mean I want that i have to make all check boxes as selected when i click on ALL.

2.) If i select all options manually and that i have make any option as unselect than the option says ALL should become unselected.

Please you can see the images for clarification.

Thanks
Manish.
Cat Cheshire
Top achievements
Rank 1
 answered on 19 Aug 2011
1 answer
160 views
Hi m using radcontrols Q1 2010 & m facing an issue with the radpanelitem image alignment, image shows beneath the text or u can say the text is aligned on top
i tried added the following to style sheet & set EnableEmbeddedSkins="false" but no help :(
.RadPanelBar .rpRootGroup, 
        .RadPanelBar .rpOut, 
        .RadPanelBar .rpLink 
        
            border-style: hidden
            border-width: 0px
            border: none
            padding: 0
            overflow: visible
        
.RadPanelBar .rpImage 
        
            padding: 0
        
        .RadPanelBar .rpItem 
        
            line-height: 0
            font-size: 0
        }

Thanx in advance :)
Kate
Telerik team
 answered on 19 Aug 2011
1 answer
122 views
I have rad grid on my webpage , I have hierarichal radgrid, My problem is even i have set to have only one column in detailtables, it still show all columns from my select statement of sqldatasource. Here is my grid:-
<telerik:RadGrid ID="gvEmailList" runat="server" AllowSorting="True" CellSpacing="0"
          DataSourceID="SqlDataSource1" GridLines="None" ShowGroupPanel="False" Skin="Outlook">
          <ClientSettings AllowDragToGroup="True" AllowExpandCollapse="true">
              <Selecting AllowRowSelect="True" />
          </ClientSettings>
          <MasterTableView AutoGenerateColumns="False" DataKeyNames="Alert_ID" DataSourceID="SqlDataSource1">
              <GroupByExpressions>
                  <telerik:GridGroupByExpression>
                      <SelectFields>
                          <telerik:GridGroupByField FieldAlias="Email_Subject" FieldName="Email_Subject" />
                      </SelectFields>
                      <GroupByFields>
                          <telerik:GridGroupByField FieldName="Email_Subject" HeaderText="Subject" />
                      </GroupByFields>
                  </telerik:GridGroupByExpression>
              </GroupByExpressions>
              <DetailTables>
                  <telerik:GridTableView DataKeyNames="Alert_ID" DataSourceID="SqlDataSource6" Width="100%"
                      runat="server" HierarchyLoadMode="Client" ShowHeader="false">
                      <ParentTableRelation>
                          <telerik:GridRelationFields DetailKeyField="Alert_ID" MasterKeyField="Alert_ID" />
                      </ParentTableRelation>
                      <Columns>
                          <telerik:GridTemplateColumn>
                              <ItemTemplate>
                                  <asp:TextBox ID="txtBody" runat="server" TextMode="MultiLine" Height="250px" Text='<%# BIND("Email_Body") %>'
                                      Width="100%"></asp:TextBox>
                              </ItemTemplate>
                          </telerik:GridTemplateColumn>
                      </Columns>
                  </telerik:GridTableView>
              </DetailTables>
              <CommandItemSettings ExportToPdfText="Export to PDF"></CommandItemSettings>
              <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column">
                  <HeaderStyle Width="20px"></HeaderStyle>
              </RowIndicatorColumn>
              <ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column">
                  <HeaderStyle Width="20px"></HeaderStyle>
              </ExpandCollapseColumn>
              <Columns>
                  <telerik:GridTemplateColumn HeaderText="">
                      <HeaderTemplate>
                          <asp:CheckBox ID="chkAll" runat="server" Text="Select All" OnCheckedChanged="chkAll_CheckedChanged"
                              AutoPostBack="true" />
                          <asp:Button ID="BtnArchive" runat="server" Text="Archive" OnClick="BtnArchiveAll_Click" />
                      </HeaderTemplate>
                      <ItemTemplate>
                          <asp:CheckBox ID="chkAlertID" runat="server" />
                          <asp:HiddenField ID="hdAlertID" runat="server" Value='<%#EVAL("ALERT_ID") %>' />
                          <asp:HiddenField ID="hdColorCode" runat="server" Value='<%#EVAL("Alert_Level_Color_Code") %>' />
                      </ItemTemplate>
                  </telerik:GridTemplateColumn>
                  <telerik:GridBoundColumn DataField="Alert_State" FilterControlAltText="Filter Alert_State column"
                      HeaderText="Alert_State" SortExpression="Alert_State" UniqueName="Alert_State"
                      ItemStyle-Width="50px">
                      <ItemStyle Width="50px"></ItemStyle>
                  </telerik:GridBoundColumn>
                  <telerik:GridBoundColumn DataField="Email_Subject" FilterControlAltText="Filter Email_Subject column"
                      HeaderText="Email_Subject" SortExpression="Email_Subject" UniqueName="Email_Subject"
                      ItemStyle-Width="200px">
                      <ItemStyle Width="200px"></ItemStyle>
                  </telerik:GridBoundColumn>
                  <telerik:GridBoundColumn DataField="Email_Sender" FilterControlAltText="Filter Email_Sender column"
                      HeaderText="Email_Sender" SortExpression="Email_Sender" UniqueName="Email_Sender"
                      ItemStyle-Width="100px">
                      <ItemStyle Width="100px"></ItemStyle>
                  </telerik:GridBoundColumn>
                  <telerik:GridBoundColumn DataField="Email_DateReceived" DataType="System.DateTime"
                      FilterControlAltText="Filter Email_DateReceived column" HeaderText="Email_DateReceived"
                      SortExpression="Email_DateReceived" UniqueName="Email_DateReceived" ItemStyle-Width="80px">
                      <ItemStyle Width="80px"></ItemStyle>
                  </telerik:GridBoundColumn>
                  <telerik:GridBoundColumn DataField="Alert_Level_Descr" FilterControlAltText="Filter Alert_Level_Descr column"
                      HeaderText="Alert_Level_Descr" SortExpression="Alert_Level_Descr" UniqueName="Alert_Level_Descr"
                      ItemStyle-Width="100px">
                      <ItemStyle Width="100px"></ItemStyle>
                  </telerik:GridBoundColumn>
                  <telerik:GridBoundColumn DataField="Alert_Source" FilterControlAltText="Filter Alert_Source column"
                      HeaderText="Alert_Source" SortExpression="Alert_Source" UniqueName="Alert_Source"
                      ItemStyle-Width="100px">
                      <ItemStyle Width="100px"></ItemStyle>
                  </telerik:GridBoundColumn>
                  <telerik:GridBoundColumn DataField="Alert_Server" FilterControlAltText="Filter Alert_Server column"
                      HeaderText="Alert_Server" SortExpression="Alert_Server" UniqueName="Alert_Server">
                  </telerik:GridBoundColumn>
                  
              </Columns>
              <EditFormSettings>
                  <EditColumn FilterControlAltText="Filter EditCommandColumn column">
                  </EditColumn>
              </EditFormSettings>
          </MasterTableView>
          <FilterMenu EnableImageSprites="False">
          </FilterMenu>
          <HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Default">
          </HeaderContextMenu>
      </telerik:RadGrid>
As you can see i just have one template column in Details Table but It shows me four more columns in addition to this column from my select statement.
Sonia
Top achievements
Rank 1
 answered on 19 Aug 2011
1 answer
102 views
Hi Guys,

I'm experiencing a strange glitch in the process of creating a dynamic RadMenu. What I'm trying to accomplish is to create a menu using 2 sql statements. The first one will create the root layer, and the second one will create the children. Here is the code that I use for the root layer which is working correctly:

 

 

Dim item1 As New RadMenuItem()

 

item1.Text = DataReader(

 

"menu_name").ToString.Trim()

 

item1.Font.Bold =

 

True

 

item1.Width = 185


Here is the code for the children, which I'm looping through the second datareader:

 

 

Dim item11 As New RadMenuItem()

 

item11.Text = DataReaderB(

 

"page_name").ToString.Trim()

 

item11.NavigateUrl =

 

"InteriorPages.aspx?ID=" & DataReaderB("id")

 

item1.Items.Add(item11)

RadMenu1.Items.Add(item1)


For the most part, this is working correctly... Except one of the six menu items that I'm testing doesn't show its children. Now it has the arrow on the right hand side of the root level and while stepping through the code it should be adding several children and there are no errors. Its the same item each time.

What can I be doing so wrong that would cause this to happen?

Any help would be greatly appreciated.

William
William
Top achievements
Rank 1
 answered on 19 Aug 2011
4 answers
128 views
I have been trying to figure out a solution I can use across my entire site. Each tooltip has different content and they all have a targetControlId set on them. My problem is, on load, I want to find all tooltips on the page without referencing specific name. Once I have the collection I need to be able to access the targetControlId so I can bind hover AND click events through JavaScript. I have the code for assigning hover and click, I just need the collection and access to the targetControlId attribute.
Patrick
Top achievements
Rank 1
 answered on 19 Aug 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?