Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
384 views
Hi i'm have this code:

<telerik:RadGrid ID="gridprod_paso1_tab2" runat="server" Skin="Office2010Blue"

OnGroupsChanging="agrupargridprod_paso1_tab2"
OnSortCommand="reordenargridprod_paso1_tab2" 
OnPageIndexChanged="cargarpagegridprod_paso1_tab2" 
OnPageSizeChanged="cambiopagesizegridprod_paso1_tab2"
OnItemCommand="cambioflitrogridprod_paso1_tab2"
OnItemDataBound="itemdataboundgridprod_paso1_tab2" 
OnPreRender="prerendercheckgridprod_paso1_tab2">
<PagerStyle Mode="NextPrevAndNumeric" CssClass="txt10333"/>
<AlternatingItemStyle BackColor="#EEEEEE" CssClass="txt10333"/>
<MasterTableView TableLayout="Fixed" AllowMultiColumnSorting="true" CssClass="txt10333">
<Columns>
<telerik:GridBoundColumn HeaderText="Marca de producto" Resizable="true" DataField="marca" UniqueName="marca" SortExpression="marca" FilterControlWidth="240">
<telerik:GridTemplateColumn AllowFiltering="True" HeaderText="Agregar" Groupable="false">
<FilterTemplate>
 <asp:CheckBox runat="server" id="checktodosel" AutoPostBack="true" OnCheckedChanged="seltodogridprod_paso1_tab2"/>
</FilterTemplate>

<ItemTemplate>
<asp:Label runat="server" ID="lblproductoID" Text='<%# Eval("productoID") %>' Visible="false"></asp:Label>
<asp:CheckBox runat="server" ID="checkselect" CssClass="txt11333" />
</ItemTemplate>
 <ItemStyle Width="80" VerticalAlign="Middle"/>
<HeaderStyle Width="80" />
</telerik:GridTemplateColumn>
</Columns>
<ItemStyle VerticalAlign="Top"/>
</MasterTableView>                                                                        
 <ClientSettings AllowDragToGroup="true" EnableRowHoverStyle="true"></ClientSettings>                                                                      </telerik:RadGrid>


and this function

Protected Sub prerendercheckgridprod_paso1_tab2(ByVal sender As Object, ByVal e As EventArgs)
     Dim item As GridFilteringItem = TryCast(gridprod_paso1_tab2.MasterTableView.GetItems(GridItemType.FilteringItem)(0),                          GridFilteringItem)
    DirectCast(item.FindControl("checktodosel"), CheckBox).Checked = lblcheckgridprod_paso1_tab2.Text
End Sub

is easy find the checkbox "checktodosel" in event OnPreRender of the radgrid, my problem is that i don't know find this control filter outside this event, i need find it in another function that is called for another control, in my case a RadioButtonList in the event OnSelectedIndexChanged.

Thanks for your attention.
Juan
Top achievements
Rank 1
 answered on 25 Jun 2012
1 answer
72 views
Hi

I have a setup which has a page (aspx) that contains 2 web user controls.
When the user performs an action in one of the controls, a grid in the other control needs to update.

How do I accomplish this?

Thx
Maria Ilieva
Telerik team
 answered on 25 Jun 2012
1 answer
59 views
I'm using a modified Metro skin.

When a column is sorted and the row is selected I'm still getting the old Metro blue on the bottom and left border of that one cell.  Obviously I'd like it to be the same color as the rest of the selected row.

Everything else looks great. 

Thanks!
Danny
Top achievements
Rank 2
 answered on 25 Jun 2012
1 answer
106 views
I'm trying to use a Treeview control in a Razor Host script within DNN 6.2.  I'm not sure what the basics are in that regard.  Here is what I have so far.  Am I even close?  Are there existing Razor examples I could look at?  Thanks for any help you can provide.

@using DotNetNuke.Entities.Tabs
@using DotNetNuke.Web.UI.WebControls
@{ 
    var tabs = TabController.GetTabsByParent(2938, Dnn.Portal.PortalId);
    var tree = new DnnTreeView();
    tree.DataSource = tabs;
    tree.DataTextField = "TabName";
    tree.DataValueField = "TabId";
    tree.DataFieldParentID = "ParentId";
    tree.DataBind();
    System.IO.StringWriter tw = new System.IO.StringWriter();
    System.Web.UI.HtmlTextWriter hw = new System.Web.UI.HtmlTextWriter(tw);
}
@{
    tree.RenderControl(hw); 
}
Daniel
Telerik team
 answered on 25 Jun 2012
2 answers
485 views
Hi,
     I want to show radgrid row in blue color on hover. Somebody help me out. Thanks in advance
RT
Andy Green
Top achievements
Rank 2
 answered on 25 Jun 2012
3 answers
140 views
Good Evng
   

                      Hai i want to hide the grid rows in rad file explorer i.e i want to display recently uploaded file only with uniqe name.
Dobromir
Telerik team
 answered on 25 Jun 2012
1 answer
78 views
Hi,

In TimeLineView I have grouping by resources. There is a scroll at the right of scheduler to scroll the appointments. But scrolling them doesn't scroll a column with resources names.
How can I fix it?
Peter
Telerik team
 answered on 25 Jun 2012
3 answers
134 views
I am trying to hide a column based on a value in the querystring and it continues to show: I have tried it 2 different ways and cannot figure out what I am doing wrong....

We are passing the country and if it is Canada we want to show the other column and if it is US we want to show the state drop downlist.



asp.net:
<telerik:RadGrid ID="RadGrid1" runat="server" DataSourceID="dsLocation" GridLines="None"
             AllowAutomaticUpdates="True" AllowAutomaticInserts="True"  ShowStatusBar="True"
            AllowSorting="True" OnDataBound="RadGrid1_DataBound" Skin="Default"
            OnItemCommand="RadGrid1_ItemCommand">

            <PagerStyle Mode="NextPrevAndNumeric" />
            <MasterTableView DataKeyNames="testid" DataSourceID="dsLocation" AutoGenerateColumns="false"
                CommandItemDisplay="Top" AllowMultiColumnSorting="True">
                <CommandItemSettings AddNewRecordText="Add new record" />
 
                <ExpandCollapseColumn Visible="True">
                </ExpandCollapseColumn>
                <Columns>
                <telerik:GridEditCommandColumn ButtonType="ImageButton">
                        <HeaderStyle Width="20px" />
                        <ItemStyle CssClass="MyImageButton" />
                    </telerik:GridEditCommandColumn>    

                    <telerik:GridTemplateColumn HeaderText="State" SortExpression="StateID" UniqueName="TemplateColumn2" Display="True"
                        EditFormColumnIndex="0">
                        <EditItemTemplate>
                            <br />
                            <asp:dropdownlist DataField="StateID" id="ddlStateID" runat="server" DataSourceID="dsStates" DataTextField="StateCode" DataValueField="StateID" AppendDataBoundItems="true"
                            SelectedValue='<%# Bind("StateID") %>' AutoPostBack="True" >
                            <asp:ListItem Selected="True" Text="Please select a state" Value=""/>
                            </asp:dropdownlist>
                        </EditItemTemplate>
                    </telerik:GridTemplateColumn>                      
                    
                                
                    <telerik:GridBoundColumn DataField="Other" HeaderText="Other"
                        SortExpression="Other" UniqueName="Other"  Display="true">
                    </telerik:GridBoundColumn>
                    
                </Columns>
               <EditFormSettings>
                    <EditColumn ButtonType="ImageButton" />
                </EditFormSettings>
            </MasterTableView>
        </telerik:RadGrid>


code:
    protected void Page_Load(object sender, EventArgs e)
    {

        if (!IsPostBack)
        {
            if (Request.QueryString["Canada"] == "Y")
            {
                RadGrid1.MasterTableView.GetColumn("Other").Visible = true;
                RadGrid1.MasterTableView.GetColumn("TemplateColumn2").Visible = false;
                RadGrid1.MasterTableView.Rebind();


            }
            else
            {
                RadGrid1.MasterTableView.GetColumn("Other").Visible = false;
                RadGrid1.MasterTableView.GetColumn("TemplateColumn2").Visible = true;
                RadGrid1.MasterTableView.Rebind();
            }
        }



    }

    protected void RadGrid1_ItemCommand(object source, GridCommandEventArgs e)
    {
        foreach (GridColumn col in RadGrid1.Columns)
        {
            if (col.ColumnType == "GridBoundColumn" && col.UniqueName == "Other")
            {
                if (e.CommandName == RadGrid.EditCommandName)
                {
                    (col as GridTemplateColumn).ReadOnly = true;
                    col.Visible = false;
                }
                else
                {
                    (col as GridTemplateColumn).ReadOnly = false;
                    col.Visible = true;
                }
            }
        }
    }




Any insight would be greatly appreciated....
Julie
Eyup
Telerik team
 answered on 25 Jun 2012
3 answers
78 views
Hi,

I am using RadCombo Box in a sharepoint 2010 site page.
The combo box is populated from code behind (Only once when the page loads).
While opening the combo dropdown, it stops for a second and then shows all the items.
I have tried to solve it through CSS changes but not able to solve it completly.

Any help will be appreciated.....:)
Kalina
Telerik team
 answered on 25 Jun 2012
2 answers
61 views
Hai,
     I have included edit command box in my grid. However i dont want the edit link in certain rows. How can I implement this. Can anybody help me
thank you in advance
Savyo
Casey
Top achievements
Rank 1
 answered on 25 Jun 2012
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
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
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?