Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
324 views

I am using pre_render to set select items in a rad grid in a user control.  The method below is based on some Telerik posts.  The checkboxes are populated when the user control opens for me locally and on the production server using IE8.   But for other users (also using IE8), the check boxes only populate on postback.  I have tested using compatibility mode on and off and do not see a change in behavior. 

Any ideas or suggestions?  It is challenging that the code is the same but the behavior is varying for some users.

Protected 

Sub RadGrd_PreRender(sender As Object, e As System.EventArgs) Handles RadGrd.PreRender

     If Not (Session("SelectedItems_" + ClientID) Is Nothing) Then

        strSelectedItems = Session("SelectedItems_" + ClientID)

        For Each item As GridItem In RadGrd.MasterTableView.Items

            If TypeOf item Is GridDataItem Then

                Dim dataItem As GridDataItem = CType(item, GridDataItem)

                Dim chkBox As CheckBox = CType(dataItem("CheckBoxTemplateColumn").FindControl("CheckBox1"), CheckBox)

                If strSelectedItems.Contains("," + dataItem.OwnerTableView.DataKeyValues(dataItem.ItemIndex)("ID").ToString() + ",") Then

                    chkBox.Checked =

True
                               Else

                    chkBox.Checked = False

                End If

            End If

               Next

   End If

End Sub

 

Shinu
Top achievements
Rank 2
 answered on 21 Jan 2013
3 answers
79 views
Hello,

I have a ribbon bar control with application menu. I am not able to make an application menu item not visible or disabled:
        ribbonBar.ApplicationMenu.Items[1].Enabled = false;
or
        ribbonBar.ApplicationMenu.Items[1].Visible = false;
has no effect.
I have Telerik.Web.UI_2011_2_1101_Dev_hotfix build.
Any ideas?

Thanks!
Helen
Telerik team
 answered on 21 Jan 2013
2 answers
93 views
See the attached pic to have a visual view of the issue: radfileexplorerexample.png

Coding Front is simply:
<telerik:RadFileExplorer runat="server" ID="RadFileExplorer2" Width="500px" Height="300px"
                EnableOpenFile="true"  EnableCreateNewFolder="true">
</telerik:RadFileExplorer>


Code behind is:

RadFileExplorer2.Configuration.ViewPaths = new string[] { "~/Files", "~/Files" };
RadFileExplorer2.Configuration.UploadPaths = new string[] { "~/Files", "~/Files" };
RadFileExplorer2.Configuration.DeletePaths = new string[] { "~/Files", "~/Files" };


This is just an isolation of code to see if that issue was there. I tested it by plugin with a data model, that was where we noticed that issue.

Can anyone help please? Thanks!
Khayrattee
Top achievements
Rank 1
 answered on 21 Jan 2013
1 answer
104 views
Hello,

I create a gridboundcolumn from codebehind and try to group it.
It throws an exception:

Unhandled exception at line 885, column 13 in http://server1/ScriptResource.axd?d=1A_JfTzkVI_BPK0wyueglza3uf3p5EQOp4lCh3bkZFj2kwIlPrGfNBqAYyJG42yrzLhNfZTtBWoYuqokkf-vNOdy8LQfqHEEJse-2Zpg5nGn_znQ0ma5rdc2XuV8eHZvGcbaSsZ0Wu1n7TPfMrcwAYGxAJyYoPMx7lFZ_2kSkbfeRFZ1GXIexwskAgJ3NeM67J1V_H9-C5a9cYJV09SQKA2&t=6119e399

0x800a139e - Microsoft JScript runtime error: Sys.WebForms.PageRequestManagerServerErrorException: Expression cannot be null or empty

Whats the correct way to create a column from codebehind?

Marcel de Groot

-----------


I create the column like this:
GridBoundColumn col = new GridBoundColumn();
col.UniqueName = field.UniqueName;
col.HeaderText = field.Caption;
col.DataField = field.UniqueName;
// col.GroupByExpression =field.UniqueName + " Group by "+ field.UniqueName;
col.SortExpression = field.UniqueName;
col.HeaderButtonType = GridHeaderButtonType.TextButton;
RadGrid1.Columns.Add(col);


when i define the columns in the markup like this it works:
<MasterTableView Width="100%">
    <GroupByExpressions>
 
    </GroupByExpressions>
    <Columns>
        <telerik:GridBoundColumn SortExpression="Key" HeaderText="Key" HeaderButtonType="TextButton"
            DataField="Key" >
        </telerik:GridBoundColumn>
    </Columns>
</MasterTableView>
Antonio Stoilkov
Telerik team
 answered on 21 Jan 2013
1 answer
130 views
How can I set target folder for AsyncUpload when it is in a GridTeplateColumn in EditItemTemplate of a RadGrid?

Thank You,
Bryan
Princy
Top achievements
Rank 2
 answered on 21 Jan 2013
11 answers
521 views
Hi,

I have RadGrid and Edit Mode is popup. In Edit Popup, I have a button. This button call the RadWindow dialog.

My problem is that my dialog is only showing under RadGrid Edit Popup eventhough I set the Modal = "true" in RadWindow.

Is there a way to set the z-order?

I know that 

EditMode

="EditForms" is working but I have 100 of pages are using EditMode="PopUp".

 

 

 

 

 



Thanks,
Alex
Shinu
Top achievements
Rank 2
 answered on 21 Jan 2013
4 answers
148 views
Hello,

I have a Grid that uses a template column with an AsyncUpload control in edit Item Template.  On update of row I need to get the original value of the cell (fileName) before update to delete file then complete update event.  What would be the best approach?

Thank you,
Bryan
Shinu
Top achievements
Rank 2
 answered on 21 Jan 2013
3 answers
159 views
how to determine the id parent of adding in TreeList?
Princy
Top achievements
Rank 2
 answered on 21 Jan 2013
3 answers
153 views
how to campare datetime in radgrid itemdatabound ?
Yadi
Top achievements
Rank 1
 answered on 21 Jan 2013
6 answers
163 views
I have code that shows a Modified label when there have been changes to the editor and it works great, except when the editor is in full-screen mode and then the label cannot be seen.

I'd like to add the update panel (with the modified label) to the status bar - the area (div class="reModule" span) that contains the text "Words: 0   Characters: 0".

I've tried moving the update panel with the following code, but it doesn't work even though it finds the controls.  In IE, the update panel no longer is visible and in Chrome, it apparently has no effect.

var reModuleDivs = document.getElementsByClassName("reModule");
var reModuleDiv = reModuleDivs[0];
var notesEditorUpdatePanel = document.getElementById("<%= notesEditorUpdatePanel.ClientID %>");
reModuleDiv.appendChild(notesEditorUpdatePanel);

Is there any simpler method to go about adding an update panel / label to the bar that contains the status text?
Chuck
Top achievements
Rank 1
 answered on 20 Jan 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?