Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
115 views
When I attempt to export my master grid ( in a nested grid view) I get the following error in Telerik.Web.UI

"Microsoft JScript runtime error: Sys.WebForms.PageRequestManagerServerErrorException: Object reference not set to an instance of an object."

Has anyone else run into this issue ?

I configure the export as follows :

grdCMT.ExportSettings.ExportOnlyData =

 

true;

 

grdCMT.ExportSettings.IgnorePaging =

 

true;

 

grdCMT.ExportSettings.OpenInNewWindow =

 

true;

 

grdCMT.ExportSettings.HideStructureColumns =

 

true;

 

grdCMT.ExportSettings.FileName = lstrFileName;

Is it possible this is being caused because I am using RadWindows?


Daniel
Telerik team
 answered on 12 Jul 2011
1 answer
71 views
Hello

I had strange behaviour with this component, i added the ColorPicker into FormTemplate, everything works fine, when you select the custom color windows (it's showed and works fine), the problem arises when you close the FormTemplate and select again from de RadGrid the same file (element), the formtemplate editor it's showed, but when you try to access to change the customcolor from colorPicker the following error is showed:

Sys.InvalidOperationException: Two components with the same id 'ctl00_body_MasterGrid_ctl00_ctl05_HTMLColorPicker_millionCustomColorsSlider' can't be added to the application.

As I can understand the problem is due to there is created in somewhere this custom color window, there is any way to solve this? I had the v4.0.30319 (2011.1.519.40)

Thanks in advance
Niko
Telerik team
 answered on 12 Jul 2011
3 answers
139 views
I have a scenario where only a single sliding pane exists in a sliding zone. When this pane is docked, the tab is unecessary and justs wastes space, so I want to hide it. I have been using the following which has worked untill recently..

 function PaneDockedHandler() {  
                var slidingZone=$find("<%= szMyZone.ClientID %>");  
                var dockedPane = slidingZone.getPaneById(slidingZone.get_dockedPaneId());  
                  
                if (dockedPane) {  
                    dockedPane.hideTab();  
                }  
            }  
 
            function BeforePaneUndockedHandler(slidingZone) {  
                var slidingZone=$find("<%= szMyZone.ClientID %>");  
                var undockedPane = slidingZone.getPaneById(slidingZone.get_dockedPaneId());  
                if (undockedPane) {  
                    undockedPane.showTab();  
                }  
            } 

<telerik:RadSplitter ID="rsWB"   
                    runat="server"   
                    Height="100%" 
                    Width="100%" 
                    Orientation="Vertical"   
                    ResizeWithParentPane="False"   
                    ResizeWithBrowserWindow="True" 
                    BorderSize="0" 
                    VisibleDuringInit="False" 
                    Skin="Windows7" > 
             <telerik:radpane runat="server" id="lPane" Scrolling="None" Width="22px" Height="100%">  
                <telerik:RadSlidingZone id="szMyZone" runat="server" width="22px" Height="100%" SlideDuration="250">  
                    <telerik:RadSlidingPane id="spProcess" title="Process Properties" runat="server" width="200px" Height="100%" Scrolling="none" OnClientDocked="PaneDockedHandler" OnClientBeforeUnDock="BeforePaneUndockedHandler">  
 
                My Pane Content  
                    </telerik:RadSlidingPane> 
                </telerik:RadSlidingZone> 
                                          
                                          
            </telerik:radpane>     
<telerik:radpane runat="server" id="rPane" Scrolling="None" Width="100%" Height="100%">  
Right Pane Content  
</telerik:radpane>   
</telerik:RadSplitter >  

Since upgrading to more recent controls, now the pane docked/undocked handlers leave a space between the left and right panes equal to the width of the tabs. (see attached area shown in red). How can I get this to work with the latest controls?

BTW.. I think this ought to be the default behavior. When there is only a single sliding pane, the tabs are unecessary and should be hidden,
Dobromir
Telerik team
 answered on 12 Jul 2011
2 answers
159 views

 

Hi,
I am Using RadTreeList . In RadTreeList I  am Using InPlace Edit Mode And I am Trying to the update values by Using  RadTreeList1_UpdateCommand

The Above is event is fired and values are update on db but on the RadTreeList the updated value is not shown . I have to refresh or reload the page to see the updated value .

Please update on how to resolve this ASAP.

 

 <telerik:RadTreeList runat="server" ID="RadTreeList2" DataKeyNames="CloseOutID"  

ParentDataKeyNames="ParentID" AutoGenerateColumns="False"  

AllowMultiItemEdit="True" EditMode="InPlace" >  

 

<Columns>

 <telerik:TreeListEditCommandColumn UniqueName="EditCommandColumn" ShowAddButton="false" ButtonType="ImageButton">

 <ItemStyle CssClass="MyImageButton" />

 </telerik:TreeListEditCommandColumn>

 <telerik:TreeListBoundColumn DataField="CloseOutID"

 HeaderText="CloseOut ID" UniqueName="CloseOutID" Visible ="false" ReadOnly="true" />

 <telerik:TreeListTemplateColumn ReadOnly="true" >

 <HeaderTemplate>

 <asp:Label ID="lblheaderRetentionOutputFile" runat="server" Text="RetentionOutputFile"></asp:Label>

 </HeaderTemplate>

 <ItemTemplate >

 <asp:HyperLink ID="hlinkRetentionOutputFile" Visible="true" NavigateUrl='<%# Eval("RetentionOutputFile") %>' runat="server">Browse</asp:HyperLink>

 <asp:Image ID="imgRetentionOutputFile" Visible ="false" ImageUrl="~/Images/folder.gif" runat="server" />

 </ItemTemplate>

 </telerik:TreeListTemplateColumn>

 <telerik:TreeListTemplateColumn >

 <HeaderTemplate>

 <asp:Label ID="lblStatus" runat="server" Text="Status" ></asp:Label>

 </HeaderTemplate>

 <ItemTemplate>

 <asp:HiddenField ID="hdfStatusCode" runat="server" Value='<%# Eval("StatusCode") %>' />

 <asp:Label ID="lblStatusMessage" runat="server" Text='<%# Eval("Status") %>' ></asp:Label>

 <asp:Button ID="btnActivate" runat="server" Text="Activate" Visible="false" CommandName="Activate" CommandArgument='<%# Eval("TaskID") %>' />

 </ItemTemplate>

 <EditItemTemplate>

 <asp:HiddenField ID="hdfStatusCode" runat="server" Value='<%# Eval("StatusCode") %>' />

 <asp:Label ID="lblStatusMessage" runat="server" Text='<%# Eval("Status") %>' ></asp:Label>

 <asp:Button ID="btnActivate" runat="server" Text="Activate" Visible="false" CommandName="Activate" CommandArgument='<%# Eval("TaskID") %>' />

 </EditItemTemplate>

 </telerik:TreeListTemplateColumn>

 <telerik:TreeListTemplateColumn >

 <HeaderTemplate>

 <asp:Label ID="lblExpiryDate" runat="server" Text="Expiry Date"></asp:Label>

 </HeaderTemplate>

 <ItemTemplate>

 <asp:Label ID="lblExpirationDate" runat="server" Text='<%# Eval("ExpirationDate") %>'></asp:Label>

 </ItemTemplate>

 <EditItemTemplate>

 <asp:HiddenField ID="hdfJobID" runat="server" Value='<%# Eval("JobID") %>' />

 <asp:TextBox ID="txtExpirationDate" Width="100px" CssClass="radEnabledCss_Default" Text='<%# Eval("ExpirationDate", "{0:d}") %>'

 onclick="showPopup(this, event);" onfocus="showPopup(this, event);" onblur="parseDate(this, event)"

 runat="server" >

 </asp:TextBox>

 </EditItemTemplate>

 </telerik:TreeListTemplateColumn>

 </Columns>

 </telerik:RadTreeList>

 

 

Veli
Telerik team
 answered on 12 Jul 2011
0 answers
87 views

Hi,

I have one combobox in Grid and i want to show this combobox as Multiple Rows and column and i am using the following css for this combobox

.multipleRowsColumns .rcbItem,
.multipleRowsColumns .rcbHovered
{
    float:left;
    margin:0 1px;
    min-height:13px;
    overflow:hidden;
    padding:2px 19px 2px 6px;
    width:125px;
}

This style sheet is not woking for combobox that is in grid.

Can anyone tell me the css that will apply to the combobox so that i can get the combobox as Multiple row and column in grid ?

Thanks,
--Jai


Jai
Top achievements
Rank 1
 asked on 12 Jul 2011
2 answers
49 views
I jave edit button on my raddatagrid
   <telerik:GridEditCommandColumn HeaderText="Edit" UniqueName="paramsEditCollumn">
  </telerik:GridEditCommandColumn>

When i trying to do an edit with http://demos.telerik.com/aspnet-ajax/grid/examples/dataediting/editondblclick/defaultcs.aspx - its not working. Most funny that it is working only if im step-bysteb debugging javascript doubleclick function, or making alert($find("<%= RadGrid1.MasterTableView.ClientID %>").editItem(editedRow));

When im trying to do this with the help of postback:

   function RowDblClick(sender, eventArgs) {
              
               __doPostBack("<%= RadGrid1
.UniqueID %>", "RowDblClicked:" + eventArgs.get_itemIndexHierarchical());
            }

    protected override void RaisePostBackEvent(IPostBackEventHandler source, string eventArgument)
    {
        base.RaisePostBackEvent(source, eventArgument);
        if (source == this.rgParams && eventArgument.IndexOf("RowDblClicked") != -1)
        {
            GridDataItem item = rgParams.Items[int.Parse(eventArgument.Split(':')[1])];
            item.Edit=true;
            rgParams.Rebind();
        }
    }  


Its not working too.

lol

whats wrong with this dg?

Devs give pls answer.
Vasil
Telerik team
 answered on 12 Jul 2011
1 answer
54 views
Hello,

I have a combobox with the following:
    AllowCustomText = False
    Filter = Contains
    IsCaseSensitive = False
    MarkFirstMatch = True
    OpenDropDownOnLoad = True

When I type something into the text area, the list of items shrinks to what matches what I've typed in so far.  I can then select from a smaller list the item I want.  This all works fine.

My problem is that I need to somehow erase what I typed in but not what I selected.  I need to do this so that when I click on the drop-down again, all items are shown and not only the ones that had what I typed in them.

I cannot seem to find cbox.filterExpression or cbox.currentFilterValue to reset to "".

I am using version 2010.3.1317.35.

Any help would be very appreciated!!!

Thanks,
Susan
Dimitar Terziev
Telerik team
 answered on 12 Jul 2011
1 answer
127 views
hi i set Client Side event for RadTextBox like following line

 

 

Dim rtb As New RadTextBox

 

rtb.ClientEvents.OnValueChanged =

 

"gettext('" & row("LField").ToString.Trim  & "')"

Problem 1 : The event fires after the above line executes
Problem 2 : I getting the following Javascript Error

Microsoft JScript runtime error: Sys.InvalidOperationException: Handler must be a function.

the function in Seperate Javascript file
how to solve this Problem

 

Princy
Top achievements
Rank 2
 answered on 12 Jul 2011
1 answer
67 views

good day for u all

i've a radschadular that gets data from oracle DB the schadual is all credits avilable for students each credit has a group type/types under that group type the appointements avilablefor it.

what i need is

when the student checks one group type he can't leave to another credit if it hase more than group type untill checking all.

iwrote oracle procedure as follow to check this in the DB.

X VARCHAR2(20);
  A NUMBER;
  B NUMBER;
    
BEGIN

SELECT COUNT (GROUP_TYPE) INTO A
     FROM OLR.VIEW_COURSE_GROUP_TYPE
    WHERE COURSEID      = OLR.complete_group_type.COURSEID;
    
    
SELECT COUNT(A.GROUP_TYPE_CD) INTO B
     FROM OLR.STUDENT_REG_GROUP A
    WHERE A.STUDENTID     = OLR.complete_group_type.STUDENTID
      AND A.SEMESTERID    = (SELECT SEMESTERID FROM MSA.SEMESTER@MSA WHERE CURRENT_SEM = '1')
      AND A.COURSEID      = OLR.complete_group_type.COURSEID;
      
IF A<>B THEN

SELECT GROUP_TYPE INTO X
     FROM OLR.VIEW_COURSE_GROUP_TYPE
    WHERE COURSEID      = OLR.complete_group_type.COURSEID
    AND GROUP_TYPE NOT IN (SELECT A.GROUP_TYPE_CD
                             FROM OLR.STUDENT_REG_GROUP A
                            WHERE A.STUDENTID     = OLR.complete_group_type.STUDENTID
                              AND A.SEMESTERID    = (SELECT SEMESTERID FROM MSA.SEMESTER@MSA WHERE CURRENT_SEM = '1')
                              AND A.COURSEID      = OLR.complete_group_type.COURSEID);

RETURN ('YOU NOT CHOOSE GROUP TYPE '||X);


END IF;
EXCEPTION WHEN TOO_MANY_ROWS THEN
       RETURN ('PLEASE CHOOSE ALL COURSE GROUP TYPE');
END complete_group_type;

but i could't find the approbriate event to use it n how i used the rad shadular event appointement update

but i don't know how to use the upove function.

Veronica
Telerik team
 answered on 12 Jul 2011
4 answers
284 views
Could use a little assistance here...

I have a RadComboBox that when changed to a certain value, does a postback and dynamically creates a RadDatePicker server side inside a Panel control and adds it to a Div on the page. Once that is done, I have an ASP:Button that when clicked, needs to get the SelectedDate value of that RadDatePicker.

I believe from what I've read, the problem is that dynamically created controls aren't available when the ASP:Button does its postback. In the button event, I'm recreating the Panel and RadDatePicker so that I can reference the controls, but once I do that, the SelectedDate value of the RadDatePicker is gone.

Can you possibly show me how this can be done so that I can dynamically create a RadDatePicker and then retrieve it's value during postback when a button is clicked? Please note that if I turn on AutoPostBack=true, I lose the dynamically created RadDatePicker on postback.

Thanks so much!
Genti
Telerik team
 answered on 12 Jul 2011
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?