Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
74 views

Hi,

I'm not having much luck with things recently.  Everything I seem to be wanting to do comes out as a battle with work arounds galore.  Anyway the latest issue that hopefully someone can advise me on is that my combos are driven by a RadClientDataSource and I am having issues getting the value of checked items on the server.

OK so I get that the items that were checked won't be available on a post back however surely it would be sensible that the combo retains the checked item ids or the selected item id on post back? Actually it does if you are not using checkboxes.  So why does the control have the functionality to remember what the selected value was but not the checked values?

It appears that over the years quite a few people have had this issue and so far I can see that the solution is to add a hidden field then every change save the current checked values and finally get that when back on the server.  Not great.

Hopefully I am completely wrong and there is a nice easy way to do this.  If not please please please make this an addition to the next version.  It isn't difficult to add it to the base control and would be a seriously helpful addition.

Regards

Jon

Ivan Danchev
Telerik team
 answered on 06 Sep 2016
15 answers
887 views
Hi,
    I am looking for help with RadGrid Batch Editing. I have developed a solution that works fine as far as inputting data and saving to the DB goes but doesn't handle validation very well at all. I'm sure there are likely to be some good examples of what I would like to do but my searches fail to turn up anything, mainly because of the multitude of related articles.

Currently, I have cell validation for those cells that need it but not row validation. There are some cells that are either mutually exclusive or inclusive, so I would like to do a validation check on these. At the moment I just discard invalid rows, which isn't very helpful to the poor user. My two problems are:

1) I cannot see a way to preserve invalid rows on the grid after postback.

2) I can create a list of validation errors but cannot figure out how to display these to the user. Everything I have tried executes OK but doesn't show up in either a label or popup message after postback.

Below is a list of options, a solution for any one of these would be sufficient for me. My favourite solution is at the top but any one is acceptable.

1) When the user presses the "Save Changes" button, check all rows and flag up the ones with validation problems. The whole grid remains as it was when the user pressed the "Save Changes" button (i.e. with all the edits stall flagged and outstanding).

2) When the user presses the "Save Changes" button, each row is checked and saved if OK. The remainder are flagged up as having validation problems, which the user can then address and re-save once sorted.

3) Discard the invalid rows as I am currently doing but notify the user via a popup message once the postback has completed.I would be grateful for any help
with this problem.

Regards

Geoff
Eyup
Telerik team
 answered on 06 Sep 2016
1 answer
1.1K+ views

Hi, 

I trying to do a rest of DropDownList whenever my RadTabStrip is changing. I have try using Items.Clear() when there a TabSwitch Event occur. however, is not wroking.The Item in DropdownList is blinded with Datasource, try setting DataSource as Null is not working too.

Can someone advise my an alternative solution? 

Ivan Danchev
Telerik team
 answered on 06 Sep 2016
1 answer
164 views

Hi,

I have encountered the issue of RadDatePicker showing transparent on background when clicked on it. Please advise how to overcome this issue. I have included the screen shot.

Telerik.Web.UI version: v2.0.50727

ASP UI page:

  <telerik:RadDatePicker ID="rdpActivityDate"  RenderMode="Lightweight" runat="server"  > </telerik:RadDatePicker>

Eyup
Telerik team
 answered on 06 Sep 2016
3 answers
1.1K+ views
What will be the differences in the generated "new project" between selecting "RadControls VB.NET Web Application" and "RadControls VB.NET WebSite" in the "Create New Telerik Project" dialog box?

Thanks,

Donald
Nuttapol
Top achievements
Rank 1
 answered on 06 Sep 2016
1 answer
258 views

Please bear with me, as this is my first post.

I am trying to do a clientside validation on filename expression. I do not want to have :, /, %, etc in my file names. How do you guys do that?

Ivan Danchev
Telerik team
 answered on 05 Sep 2016
1 answer
35 views

Hi,

I'm trying to use Gantt chart with client side binding to web service. First I tried to return some hardcoded data and it works fine, the tasks are shown on the chart. But in order to get the real data I need to send some additional data to the web service. I tried to do this just as shown in the docs (LINK), but as soon as I add this parameter to the functions:

IDictionary<string, object> context

no data will be shown on the chart and the debugger doesn't stop in the functions (f.e. GetTasks). I'm 99,(9) % sure I did everything exactly like in the example.

P.S. I'm using Sharepoint 2013, don't if it's important here.

I'd grateful for any help.

Maciek

Dimitar
Telerik team
 answered on 05 Sep 2016
1 answer
90 views

Hello,

I am using Rad Grid version with Scrolling, Static Headers, and one Frozen Column. The grid shows Arabic data (from right to left).

The problem is that the grid does not show all columns. The horizontal scroll bar reaches the end, but not all columns are visible.

You can check the attached screenshot.

Appreciate your help,

Thanks,

 

 

Kostadin
Telerik team
 answered on 05 Sep 2016
1 answer
128 views
How do I disable the rename and delete options for the context menu for the Image Manager window? I see the info about using external dialogs, but how do I set that up when the ImageManager is being called from within the Editor?
Rumen
Telerik team
 answered on 05 Sep 2016
3 answers
210 views
Hello,
I want to users to be able to filter on the results in our radgrid. I enabled AllowFilteringbycolumn = "true' on my radgrid, but whenever I enter a value into the new radgrid filter boxes the loading panel spins and nothing changes. I have a searchbox that allows the user to search for their items. After that initial query returns, I want them to be able to filter on any column in the grid. So for instance if the results show all of their items, but they want to see all of them in building 1, they should be able to enter 1 into the filter textbox on the grid. How can I make this happen?

Thank you!
<telerik:RadGrid ID="RadGrid1" runat="server" EnableLinqExpressions="false" AutoGenerateColumns="true" Skin="WebBlue" AllowPaging="true" AllowSorting="true" CellSpacing="0" GridLines="Both" OnNeedDataSource="NeedDataSource" PageSize="50" OnPreRender="RadGrid1_PreRender"  AllowMultiRowSelection="false" AllowFilteringByColumn="true">
                <PagerStyle Mode="NextPrevAndNumeric" />
                <ItemStyle CssClass="UsePointer" />
                <MasterTableView CommandItemDisplay="bottom">
                    <SortExpressions><telerik:GridSortExpression FieldName="assetTag" SortOrder="Ascending" /></SortExpressions>
                    <Columns>
                        <telerik:GridTemplateColumn HeaderStyle-CssClass="commandHeader" HeaderStyle-Width="30px" Exportable="false" UniqueName="checkCol">
                            <HeaderTemplate>
                                <asp:CheckBox ID="checkAll" runat="server" onclick="CheckAll(this)" />
                            </HeaderTemplate>
                            <ItemTemplate>
                                <asp:CheckBox ID="cboxSelect" runat="server" onclick="unCheckHeader(this); enableMassUpdate()" OnCheckedChanged="GridCheckBoxChanged" />
                            </ItemTemplate>
                        </telerik:GridTemplateColumn>
                    </Columns>
                    <CommandItemSettings ShowExportToExcelButton="false" ShowAddNewRecordButton="false" ShowRefreshButton="false"/>
                </MasterTableView>
                <ClientSettings AllowKeyboardNavigation="true"  EnablePostBackOnRowClick="true" >
                    <Scrolling AllowScroll="True" UseStaticHeaders="True"></Scrolling>
                    <Selecting AllowRowSelect="true" />
                    <ClientEvents  OnRowSelecting="RowSelecting" OnRowSelected="RowSelected" OnCommand="ClearForm"  />
                    <KeyboardNavigationSettings EnableKeyboardShortcuts="false" AllowSubmitOnEnter="false" AllowActiveRowCycle="false" ></KeyboardNavigationSettings>
                </ClientSettings>
            </telerik:RadGrid>

protected void NeedDataSource(object source, GridNeedDataSourceEventArgs e)
        {

            (source as RadGrid).DataSource = getDataGrid("RadGrid1");
        }

protected void RadGrid1_PreRender(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                GridColumn checkCol = RadGrid1.MasterTableView.GetColumnSafe("checkCol");
                checkCol.OrderIndex = 1;
                GridColumn assetDeptCol = RadGrid1.MasterTableView.GetColumn("itemDept");
                assetDeptCol.HeaderStyle.Width = Unit.Pixel(115);
                assetDeptCol.HeaderText = "item Department";
                assetDeptCol.OrderIndex = 2;
                GridColumn assetTagCol = RadGrid1.MasterTableView.GetColumn("itemTag");
                assetTagCol.HeaderStyle.Width = Unit.Pixel(100);
                assetTagCol.HeaderText = "itemTag";
                assetTagCol.OrderIndex = 3;
                GridColumn employeeCol = RadGrid1.MasterTableView.GetColumn("employee");
                employeeCol.HeaderStyle.Width = Unit.Pixel(280);
                employeeCol.HeaderText = "Employee";
                employeeCol.OrderIndex = 4;
                GridColumn buildingCol = RadGrid1.MasterTableView.GetColumn("building");
                buildingCol.HeaderStyle.Width = Unit.Pixel(100);
                buildingCol.HeaderText = "Building";
                buildingCol.OrderIndex = 6;
                GridColumn floorCol = RadGrid1.MasterTableView.GetColumn("floor");
                floorCol.HeaderStyle.Width = Unit.Pixel(70);
                floorCol.HeaderText = "Floor";
                floorCol.OrderIndex = 7;
                GridColumn roomCol = RadGrid1.MasterTableView.GetColumn("room");
                roomCol.HeaderStyle.Width = Unit.Pixel(150);
                roomCol.HeaderText = "Room";
                roomCol.OrderIndex = 8;     
                RadGrid1.Rebind();
           }
}
Eyup
Telerik team
 answered on 05 Sep 2016
Narrow your results
Selected tags
Tags
+? more
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?