Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
129 views
How to set css to remove underline in a gridhyperlinkcolumn
Princy
Top achievements
Rank 2
 answered on 15 Jun 2012
1 answer
73 views
How to set radtooltip for raddatepicker?
Princy
Top achievements
Rank 2
 answered on 15 Jun 2012
3 answers
1.0K+ views
Recently I discovered an issue with browsing one of my sites on the iPad. Specifically, the radWindow control. So I decided to share how exactly to test on the iPad when you don't have an iPad.
  1. First you'll need to download the Safari Browser. http://www.apple.com/safari/
  2. Install Safari
  3. Open Safari
  4. Use Ctrl+, to open the preferences window
  5. Goto Extensions and disable any Flash extensions
  6. Now go to the Advanced tab
  7. Select checkbox to Enable "Show Develop menu in menu bar"
  8. Close the preferences
  9. In the upper right of Safari, click the icon that looks like a document, it will open a dropdown
  10. Select "Develop" > "User Agent" > "Safari iOS 3.2.2 - iPad"
  11. The page you are visiting will refredh and now you will be emulating an iPad
  12. Now you can use the developer tools for Safari (Much like FireBug) to inspect elements and test your site as if you were using an iPad.
  13. Happy debugging!
Suella
Top achievements
Rank 1
 answered on 15 Jun 2012
1 answer
105 views
I checked out the examples, and every time i see the examples where you can put an image on a node they're not databound examples.

Hi there, this is my first time playing with Telerik controls, just bought an expensive all inclusive package.. now i need to show my employer what i can do...

What i'm in the process of building is a tree of report links

Ie:
Reports
-Sales
--Sales Report 1
--Sales Report 2
-Accounting
--Acc Report 1
--Acc Report 2

now i want to build the tree from a table in my DB, and that's working fine when i bind... but
i'd like the final nodes (ie: Sales Report1, or Acc Report 1) to be shown with icons infront of them, and have a dynamic link built to each of the report nodes.

my code on page load -
SqlDataAdapter adapter = new SqlDataAdapter("SELECT * From Reports", ConfigurationManager.ConnectionStrings["MainConnStr"].ConnectionString);
        DataSet links = new DataSet();
        adapter.Fill(links);
        RadTreeView1.DataTextField = "Description";
        RadTreeView1.DataFieldID = "ID";
        RadTreeView1.DataFieldParentID = "ParentID";
        RadTreeView1.DataNavigateUrlField = "ReportLink";
        RadTreeView1.DataSource = links;
        RadTreeView1.DataBind();
        RadTreeView1.ExpandAllNodes();

this works great... loads the nodes, but now i want to start modifying the way each node looks, for example, the "Report" parent node i'd like to have no icons, then the nodes: "Sales" and "Accounting" to have for example a folder icon and the final nodes such as "Sales Report 1" or "Acc Report 1" to have different icons...

Can i achieve this with the above databinding? or do i have to Add items to my Treeview as i parse through my Dataset?

Also,
The links to each of the report nodes i want the "ReportLink" value thats assigned to "DataNavigateUrlField" to be dynamically different based on other tables i have in my DB....
here is an example of a report link: "http://mysite.com/report1.aspx?Param1=value1&Param2=value2"
and another may be "http://mysite.com/reportAccReport.aspx?Param1=value1&Param2=value2&Param3=value3"

where i'd like to build logic to fill in the "valueX" parameters.

Any suggestions/help would be much appreciated
visionXpert
Top achievements
Rank 1
 answered on 14 Jun 2012
4 answers
108 views
After I changed to the customized skin, the color of the DatetimePicker changed.  How can I change it back?  I need it to be the sunset style.
Please refer to the screen print.
Allen
Top achievements
Rank 1
 answered on 14 Jun 2012
1 answer
106 views
Hy

I am experiencing a strang problem.
I switched with my Radgrid from version 2011.2.915.35 to the current version. However, altough all is working fine using the old library (hierarchyloadMode set to client) it does not work with the current version 2012.2.607.35. Using the new library, if I click on the icon for expanding the table, it causes a postback with reloads the site including the table in the original (not expanded) style

Do I have to set some new attributes? (I already tried with allowclientexpand=true)

regards
Richard
Top achievements
Rank 1
 answered on 14 Jun 2012
1 answer
110 views
Hi,

RadTreeList SelectedItems retun null when i expand the item, select some of the childs, collaps this item and submit the form. Is there some solution for this?

--
Best regards, Denis.
Richard
Top achievements
Rank 1
 answered on 14 Jun 2012
2 answers
210 views
Hello,

My problem scenario:
I want to refresh second RadGrid after delete item from first RadGrid.
I tried use RadGridPrzedmiotyWydzialuBrakKatedry.Rebind()  
in code behind in method: --- protected void RadGridPrzedmiotyWydzialu_DeleteCommand --- 
but it doesn't work.

protected void RadGridPrzedmiotyWydzialu_DeleteCommand(object sender, Telerik.Web.UI.GridCommandEventArgs e)
{
    if (e.Item.Cells.Count > 0)
    {
        var db = DatabaseFactory.CreateDatabase();
        var cmd = db.GetStoredProcCommand("katw_Przedmioty_Katedr_upd");
 
        db.AddInParameter(cmd, "@idOsobaDziekan", DbType.Int32, MySession.IdOsoba);
        db.AddInParameter(cmd, "@idWydzial", DbType.Int32, MySession.IdWydzial);
        db.AddInParameter(cmd, "@idPrzedmiot", DbType.Int32, e.Item.Cells[2].Text);
        db.ExecuteNonQuery(cmd);
 
    }
//refresh my grid after delete item from first radgrid
    RadGridPrzedmiotyWydzialuBrakKatedry.Rebind();
    
}


I hope for you help.

First RadGrid  with SqlDataSource

<asp:SqlDataSource ID="SqlDataSourcePrzedmiotyWydzialu" runat="server" ConnectionString="<%$ ConnectionStrings:DefaultDatabaseConnection %>"
    SelectCommand="katw_Przedmioty_Wydzialu_sel" SelectCommandType="StoredProcedure">
    <SelectParameters>
        <asp:ControlParameter ControlID="WydzialRadComboBox" Name="IdWydzial" PropertyName="SelectedValue"
            Type="Int32" />
    </SelectParameters>
</asp:SqlDataSource>
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="RadGridPrzedmiotyWydzialu">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="RadGridPrzedmiotyWydzialu" LoadingPanelID="RadAjaxLoadingPanel" />
            </UpdatedControls>
        </telerik:AjaxSetting>
    </AjaxSettings>
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="RadGridPrzedmiotyWydzialuBrakKatedry">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="RadGridPrzedmiotyWydzialuBrakKatedry" LoadingPanelID="RadAjaxLoadingPanel1" />
            </UpdatedControls>
        </telerik:AjaxSetting>
    </AjaxSettings>
</telerik:RadAjaxManager>
<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel" runat="server">
</telerik:RadAjaxLoadingPanel>
<telerik:RadGrid ID="RadGridPrzedmiotyWydzialu" runat="server" AllowPaging="True"
    AutoGenerateColumns="False" CellSpacing="0" Culture="pl-PL" GridLines="None"
    HorizontalAlign="Justify" Skin="Simple" OnDeleteCommand="RadGridPrzedmiotyWydzialu_DeleteCommand"
    DataSourceID="SqlDataSourcePrzedmiotyWydzialu">
    <ClientSettings>
        <Selecting CellSelectionMode="None" AllowRowSelect="true" />
    </ClientSettings>
    <MasterTableView NoMasterRecordsText="Brak rekordów do wyÅ›wietlenia." DataKeyNames="IdPrzedmiot"
        CommandItemDisplay="Top" DataSourceID="SqlDataSourcePrzedmiotyWydzialu">
        <CommandItemSettings ExportToPdfText="Export to PDF" RefreshText="OdÅ›wież" ShowAddNewRecordButton="False" />
        <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column" Visible="True">
            <HeaderStyle Width="20px" />
        </RowIndicatorColumn>
        <ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column" Visible="True">
            <HeaderStyle Width="20px" />
        </ExpandCollapseColumn>
        <Columns>
            <telerik:GridBoundColumn DataField="IdPrzedmiot" HeaderText="IdPrzedmiot" UniqueName="IdPrzedmiot"
                FilterControlAltText="Filter IdPrzedmiot column" DataType="System.Int32" SortExpression="IdPrzedmiot"
                ReadOnly="true" Visible="false">
            </telerik:GridBoundColumn>
            <telerik:GridButtonColumn CommandName="Edit" UniqueName="EditColumn" ButtonType="ImageButton"
                Text="Edytuj">
                <HeaderStyle Width="3%" />
            </telerik:GridButtonColumn>
            <telerik:GridButtonColumn CommandName="Delete" UniqueName="DeleteColumn"         ButtonType="ImageButton"
                Text="UsuÅ„">
                <HeaderStyle Width="3%" />
            </telerik:GridButtonColumn>
            <telerik:GridBoundColumn DataField="Nazwa" HeaderText="Nazwa przedmiotu" UniqueName="Nazwa"
                FilterControlAltText="Filter Nazwa column" DataType="System.String" SortExpression="Nazwa"
                ReadOnly="true">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="Kod" HeaderText="Kod" UniqueName="Kod" FilterControlAltText="Filter Kod column"
                DataType="System.String" SortExpression="Kod" ReadOnly="true">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="IdKatedra" HeaderText="IdKatedra" UniqueName="IdKatedra"
                FilterControlAltText="Filter IdKatedra column" DataType="System.Int32" ReadOnly="true"
                Visible="false">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="KatedraNazwa" HeaderText="Katedra" UniqueName="Katedra"
                FilterControlAltText="Filter Katedra column" DataType="System.String" SortExpression="Katedra"
                ReadOnly="true">
            </telerik:GridBoundColumn>
        </Columns>
        <EditFormSettings EditFormType="WebUserControl" UserControlName="PrzedmiotyKatedre.ascx">
            <EditColumn FilterControlAltText="Filter EditCommandColumn column" ButtonType="ImageButton">
            </EditColumn>
        </EditFormSettings>
    </MasterTableView>
</telerik:RadGrid>

Second RadGrid with SqlDataSource:

<asp:SqlDataSource ID="SqlDataSourcePrzedmiotyWydzialuBrakKatedry" runat="server"
                        ConnectionString="<%$ ConnectionStrings:DefaultDatabaseConnection %>" SelectCommand="katw_Przedmioty_Wydzialu_BrakKatedry_sel"
                        SelectCommandType="StoredProcedure">
                        <SelectParameters>
                            <asp:ControlParameter ControlID="WydzialRadComboBox" Name="IdWydzial" PropertyName="SelectedValue"
                                Type="Int32" />
                        </SelectParameters>
                    </asp:SqlDataSource>
                    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server">
                    </telerik:RadAjaxLoadingPanel>
                    <telerik:RadGrid ID="RadGridPrzedmiotyWydzialuBrakKatedry" runat="server" AllowPaging="true"
                        AutoGenerateColumns="false" CellSpacing="0" Culture="pl-PL" DataSourceID="SqlDataSourcePrzedmiotyWydzialuBrakKatedry"
                        GridLines="None" HorizontalAlign="Justify" Skin="Simple">
                        <ClientSettings>
                            <Selecting CellSelectionMode="None" />
                        </ClientSettings>
                        <MasterTableView DataSourceID="SqlDataSourcePrzedmiotyWydzialuBrakKatedry" NoMasterRecordsText="Brak rekordów do wyÅ›wietlenia."
                            DataKeyNames="IdPrzedmiot" CommandItemDisplay="Top">
                            <CommandItemSettings ExportToPdfText="Export to PDF" RefreshText="OdÅ›wież" ShowAddNewRecordButton="False" />
                            <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column" Visible="True">
                                <HeaderStyle Width="20px" />
                            </RowIndicatorColumn>
                            <ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column" Visible="True">
                                <HeaderStyle Width="20px" />
                            </ExpandCollapseColumn>
                            <Columns>
                                <telerik:GridBoundColumn DataField="IdPrzedmiot" HeaderText="IdPrzedmiot" UniqueName="IdPrzedmiot"
                                    FilterControlAltText="Filter IdPrzedmiot column" DataType="System.Int32" SortExpression="IdPrzedmiot"
                                    ReadOnly="true" Visible="false">
                                </telerik:GridBoundColumn>
                                <telerik:GridButtonColumn CommandName="Edit" Text="Edytuj" UniqueName="EditColumn"
                                    ButtonType="ImageButton">
                                    <HeaderStyle Width="3%" />
                                </telerik:GridButtonColumn>
                                <telerik:GridBoundColumn DataField="Nazwa" HeaderText="Nazwa przedmiotu" UniqueName="Nazwa"
                                    FilterControlAltText="Filter Nazwa column" DataType="System.String" SortExpression="Nazwa"
                                    ReadOnly="true">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="Kod" HeaderText="Kod" UniqueName="Kod" FilterControlAltText="Filter Kod column"
                                    DataType="System.String" SortExpression="Kod" ReadOnly="true">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="IdKatedra" HeaderText="IdKatedra" UniqueName="IdKatedra"
                                    FilterControlAltText="Filter IdKatedra column" DataType="System.Int32" ReadOnly="true"
                                    Visible="false">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="KatedraNazwa" HeaderText="Katedra" UniqueName="Katedra"
                                    FilterControlAltText="Filter Katedra column" DataType="System.String" SortExpression="Katedra"
                                    ReadOnly="true">
                                </telerik:GridBoundColumn>
                            </Columns>
                            <EditFormSettings EditFormType="WebUserControl" UserControlName="PrzedmiotyKatedre.ascx">
                                <EditColumn FilterControlAltText="Filter EditCommandColumn column" ButtonType="ImageButton">
                                </EditColumn>
                            </EditFormSettings>
                        </MasterTableView>
                    </telerik:RadGrid>

Michal
Top achievements
Rank 1
 answered on 14 Jun 2012
1 answer
80 views
Hi,
I have a requirement to have Basic filtering on date columns and Google like filtering on rest of the columns.
Is that possible? I would appreciate if you can provide sample or direct me to tutorial/documentation.
Eyup
Telerik team
 answered on 14 Jun 2012
1 answer
92 views
Is there a way to position the filter arrow on a column in a radgrid differently? I would like to move the arrow to the front of the column instead of having it after the heading title. Is this possible?

Regards, John
Eyup
Telerik team
 answered on 14 Jun 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?