Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
122 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
119 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
119 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
213 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
82 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
97 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
1 answer
82 views

Hi,

I am using radgrid with 4 pages where pagesize is set to 15.Now i navigate to page 2 edit  some of cells and come back to
page 1 and click on save when try to loop through the grid items using
  foreach (GridDataItem ObjeACH in rdGrdMenu.Items)
            {
} I will get only first 15 items of first page.
I want to loop through all items of grid. How can i do that ? is there any way to accomplish ??

Regards,
Akki
Pavlina
Telerik team
 answered on 14 Jun 2012
4 answers
897 views
Hi,
I've set the data source of the RadGrid dynamically. Now I'm trying to set the cell formatting of the RadGrid because in my case i've to set different formatting (bold, italic, underline etc) of the each grid cell. For example, i want to set the font bold to true for the only first row and first column which will be basically first cell of the grid. i.e.

I've tried to do using the following code but in vain. One more thing, i'm not able to see the cell value at this point. I've tried both the ItemCreated and ItemDataBoudn event but nothing is working for me.

protected

 

void RadGridComparableAnalysis_ItemDataBound(object sender, GridItemEventArgs e) {

 

      

if (e.Item is GridDataItem) {

 

        e.Item.Cells[0].Font.Bold =

true
    }
}

 

 

Jim Foster
Top achievements
Rank 1
 answered on 14 Jun 2012
3 answers
127 views
Hi!

I am trying to do some javascript work in my RadGrid insert item template, but it won't even do an alert for me.  No error on my Chrome console or anything, just when I click "insert item" and it loads up the edit template, none of the javascript runs.  

Help!

 -Brett
Eyup
Telerik team
 answered on 14 Jun 2012
5 answers
136 views
I've been using RadToolTipManager in medium trust environment without any problems. Since upgrading to the 2012 Q2 release I get the following exception. Nothing changed on the page or the environment except upgrading from 2012 Q1 to Q2.

Security Exception

Description: The application attempted to perform an operation not allowed by the security policy. To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file.

Exception Details: System.Security.SecurityException: Request failed.

Source Error: 
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace: 
[SecurityException: Request failed.] 
System.Security.CodeAccessSecurityEngine.ThrowSecurityException(RuntimeAssembly asm,
    PermissionSet granted, PermissionSet refused, RuntimeMethodHandleInternal rmh
    , SecurityAction action, Object demand, IPermission permThatFailed) +168
System.Security.CodeAccessSecurityEngine.ThrowSecurityException(Object assemblyOrString,
    PermissionSet granted, PermissionSet refused, RuntimeMethodHandleInternal rmh,
    SecurityAction action, Object demand, IPermission permThatFailed) +100
System.Security.CodeAccessSecurityEngine.CheckSetHelper(PermissionSet grants,
    PermissionSet refused, PermissionSet demands, RuntimeMethodHandleInternal rmh,
    Object assemblyOrString, SecurityAction action, Boolean throwException) +278
System.Security.PermissionSetTriple.CheckSetDemand(PermissionSet demandSet,
    PermissionSet& alteredDemandset, RuntimeMethodHandleInternal rmh) +69
System.Security.PermissionListSet.CheckSetDemand(PermissionSet pset,
    RuntimeMethodHandleInternal rmh) +156
System.Security.PermissionListSet.DemandFlagsOrGrantSet(Int32 flags, PermissionSet grantSet) +33
System.Security.CodeAccessSecurityEngine.ReflectionTargetDemandHelper(
    Int32 permission, PermissionSet targetGrant, CompressedStack securityContext) +128
System.Security.CodeAccessSecurityEngine.ReflectionTargetDemandHelper(Int32 permission,
    PermissionSet targetGrant) +54
Marin Bratanov
Telerik team
 answered on 14 Jun 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?