Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
354 views

I have noticed that my Event Viewer is being filled up with the following warnings, complaining about NullReferenceException. Can someone tell me what could be causing this, and what can I do to fix them?

Thanks,

Event Type: Warning  
Event Source:   ASP.NET 2.0.50727.0  
Event Category: Web Event   
Event ID:   1309  
Date:       3/23/2010  
Time:       9:45:05 AM  
User:       N/A  
Computer:   WEBPC  
Description:  
Event code: 3005   
Event message: An unhandled exception has occurred.   
Event time: 3/23/2010 9:45:05 AM   
Event time (UTC): 3/23/2010 2:45:05 PM   
Event ID: ac0df0b9829a4b0796ff2693875efb70   
Event sequence: 261544   
Event occurrence: 1492   
Event detail code: 0   
   
Application information:   
    Application domain: /LM/W3SVC/2/Root-1-129137505216865130   
    Trust level: Full   
    Application Virtual Path: /   
    Application Path: C:\Inetpub\wwwroot\WEBPC\WebSite\   
    Machine name: WEBPC   
   
Process information:   
    Process ID: 7480   
    Process name: w3wp.exe   
    Account name: NT AUTHORITY\NETWORK SERVICE   
   
Exception information:   
    Exception type: NullReferenceException   
    Exception message: Object reference not set to an instance of an object.   
   
Request information:   
    Request URL: http://www.thegreensheet.com/Telerik.Web.UI.WebResource.axd?imgid=2b66498078e24ceab80cfe456aff0d17&type=rbi   
    Request path: /Telerik.Web.UI.WebResource.axd   
    User host address: 928.54.83.66   
    User: default\Anonymous   
    Is authenticated: False   
    Authentication Type:    
    Thread account name: NT AUTHORITY\NETWORK SERVICE   
   
Thread information:   
    Thread ID: 7   
    Thread account name: NT AUTHORITY\NETWORK SERVICE   
    Is impersonating: False   
    Stack trace:    at Telerik.Web.UI.RadBinaryImageHandler.ProcessRequestInternal()  
   at Telerik.Web.UI.HandlerRouter.ProcessHandler(String handlerKey, HttpContext context)  
   at Telerik.Web.UI.WebResource.ProcessRequest(HttpContext context)  
   at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()  
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) 

Chanan Zass
Top achievements
Rank 1
 answered on 03 Jul 2011
5 answers
292 views
hi
i saw in some sites when i click on links or button on the page , all of the page makes gray style and disabled(freezed) while doing action until loading completed.
how we can make asp.net page like that ?
tnx
Suresh Mariaraj
Top achievements
Rank 1
 answered on 03 Jul 2011
0 answers
98 views
Hey i want to make a functionality but i am unable to do in RadComboBox. what i am doing right now what every i write in radcombobox textfield i search some results from database and bind it to radcombocox.Now i want a functionality when i select the search result from dropdown. the text should come into text field (which is already happening) and lock the text box with X (Cancel) sign in the end.

Its a same functionality on facebook when you search your home town it gives u some options in dropdown and the moment u select it, it lock the textfield. Its hard to describe the functionality so hopefully i will get some help from community.

adnan
Top achievements
Rank 1
 asked on 03 Jul 2011
2 answers
161 views
Hi All,
I have a page in which i am using the RadGrid to get data from database using the Advanced Databinding and custome edit form shown as popup for inserting and updating the data.

The update and insert are done using the UpdateCommand and InsertCommand events.

Everything is  ok...

BUT

While Updating any record or inserting a new one, and before completing the update or insert, i need to show a message for the user depending on database check for some conditions....
 
I used the RadWindowManager on the page that holds the grid...

The window is shown correctly depending on the conditions...BUT i need to keep the popup edit form open after showing and  closing this message window... in my page the popup is closed directly  when showing the Window message....


i searched the forums and i found the this can be done if i set the  

 

e.Item.IsInEditMode =

 

true

 

in the ItemUpdated event of the grid; but this event will not fire in my case...since i knew that this event will fire only in case of automatic operations is enabled.


so my question is how to keep the popup edit form open while updating???

any comment will be helpfull...

thanks in advanced...

Asa'ad...



Asa'ad
Top achievements
Rank 1
 answered on 03 Jul 2011
1 answer
316 views
Hi Guys,

I've been trying for hours to get the value of a RadEditor from code behind. Could someone please show me the syntax for doing this?

William
Rumen Jekov
Top achievements
Rank 1
 answered on 02 Jul 2011
3 answers
177 views
Why would a page refresh fire the grid's insertcommand? If you add a new row with auto-insert enabled and then right-click and refresh the screen it fires the insertcommand again. How can I stop this behavior? 
komathi priya
Top achievements
Rank 1
 answered on 02 Jul 2011
4 answers
105 views
Hi,

1.  My page has many controls, I have surrounded logical UI groups of controls into asp:Panels and am using this outer Panel as the updated control in the ajaxmanager configuration.  Is this correct? Or do I have to define the links to all lower level controls?

i.e. 

<telerik:AjaxSetting AjaxControlID="compareproductLinkButton">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="toprowPanel" />
                    <telerik:AjaxUpdatedControl ControlID="deptLiteral" />
                    <telerik:AjaxUpdatedControl ControlID="resultsPanel" />
                    <telerik:AjaxUpdatedControl ControlID="relatedcatsPanel" />
                    <telerik:AjaxUpdatedControl ControlID="activefilterPanel" />
                </UpdatedControls>
</telerik:AjaxSetting>

... etc

The reason I wanted to check is that on a given ajax postback a literal control in one of the panels is not updating even though in debug I can see the code being run.  And I am seeing a few things dissappear on certain ajax postbacks.

2. If I define a control as part of an ajaxmanager relationship then its css style at run-time drops into block level (or something happens to change our css, I assume it is surrounded by a div for ajax update), how can I stop this happening?

Thank you
Matt
Matt
Top achievements
Rank 1
 answered on 02 Jul 2011
6 answers
127 views
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"
                        EnablePageHeadUpdate="False">
                        <AjaxSettings>
                            <telerik:AjaxSetting AjaxControlID="lnkbutton">
                                <UpdatedControls>
                                    <telerik:AjaxUpdatedControl ControlID="RadTreeView1" />
                                </UpdatedControls>
                            </telerik:AjaxSetting>
                        </AjaxSettings>
                    </telerik:RadAjaxManager>

lnkbutton is the ID of button which is in RadTreeview1 .
<telerik:RadTreeNode  Value="pcomment">
                    <NodeTemplate>
                    <telerik:RadTextBox  runat="server" Width="250px" ID="postcomment"></telerik:RadTextBox>
                    <asp:Button Text="Post" runat="server" ID="lnkbutton" onclick="lnkbutton_Click" ></asp:Button>
                    </NodeTemplate>
                    </telerik:RadTreeNode>
Code - Behind
protected void RadTreeView1_NodeExpand(object sender, RadTreeNodeEventArgs e)
   {
 
       string getc = "SELECT  [User].Name, [User].ID, Comments.ID AS CID, Comments.Comment, Comments.ItemID, Comments.UID, [User].T28 FROM            [User] INNER JOIN Comments ON [User].ID = Comments.UID WHERE        (Comments.ItemID = 271)";
       dt = dbClass.ReturnDT(getc);
       if (dt.Rows.Count > 0)
       {
            
           int n = dt.Rows.Count;
           for (int m = 0; m < n; m++)
           {
               RadTreeNode onDemandNode = new RadTreeNode();
               onDemandNode.ImageUrl = dt.Rows[m]["T28"].ToString();
               onDemandNode.Text = "<u><b><a href='Profile/profile.aspx?Id="+dt.Rows[m]["ID"].ToString()+"'>"+dt.Rows[m]["Name"].ToString()+"</a></b></u>  "+ dt.Rows[m]["Comment"].ToString();
                
               onDemandNode.ExpandMode = TreeNodeExpandMode.ClientSide;
               //Add the node as a child of the currently expanded node
               RadTreeView1.Nodes.FindNodeByText("Comments").Nodes.Add(onDemandNode);
           }
            
       }
     }
 protected void lnkbutton_Click(object sender, EventArgs e)
    {
       RadTextBox tb=  (RadTextBox)RadTreeView1.Nodes.FindNodeByValue("pcomment").FindControl("postcomment");
       string insertcomment = " INSERT INTO Comments (ItemID, UID, Comment) VALUES  (271, "+Session["UserId"]+", '"+tb.Text+"')";
       dbClass.DataBase(insertcomment);
      
    }
What I want is ,whenever the user clicks the button post that is the button with ID lnkbutton , the RadTreeView1 gets refreshed  (without reloading the whole page again) , what should i do to achieve this ??
dotnetrockerzzz
Top achievements
Rank 2
 answered on 02 Jul 2011
2 answers
134 views
Hi,
When radgrid.gridlines  is set to both, radgrid has double border (see attached image) on firefox, safari and chrome. But if radgrid.gridlines  is set to none, the export excel file does not have border among its cells. How to solve this problem? Thanks.
york
Top achievements
Rank 1
 answered on 02 Jul 2011
3 answers
1.0K+ views
I am new to .net and Telerik controls.

I am trying to do this technique, but using the radgrid.

http://msdn.microsoft.com/en-us/library/aa992036%28VS.80%29.aspx

However, I need to loop through each row in this grid and update with the selected values.

Any help or ideas would be great.

    <asp:SqlDataSource ID="SqlDataSource1" runat="server"
        ConnectionString="<%$ ConnectionStrings:AR_ManagementConnectionString %>"
        SelectCommand="SELECT * FROM [AR_QA_Details] WHERE (([iUserID] = @iUserID) AND ([sSiteID] = @sSiteID) AND ([sAcct] = @sAcct) AND ([IssueName] = @IssueName)) ORDER BY [StepNumber]">
        <SelectParameters>
            <asp:Parameter DefaultValue="111" Name="iUserID" Type="Int32" />
            <asp:Parameter DefaultValue="108002" Name="sSiteID" Type="String" />
            <asp:Parameter DefaultValue="295856" Name="sAcct" Type="String" />
            <asp:Parameter DefaultValue="Coding" Name="IssueName" Type="String" />
        </SelectParameters>
    </asp:SqlDataSource>
 
 
 
 
    <telerik:RadGrid ID="RadGrid1" runat="server" DataSourceID="SqlDataSource1"
        GridLines="None">
<MasterTableView AutoGenerateColumns="False" DataSourceID="SqlDataSource1">
<CommandItemSettings ExportToPdfText="Export to Pdf"></CommandItemSettings>
 
 
    <Columns>
        <telerik:GridBoundColumn DataField="Step" HeaderText="Step"
            SortExpression="Step" UniqueName="Step">
            <HeaderStyle Width="350px" />
        </telerik:GridBoundColumn>
        <telerik:GridTemplateColumn DataField="Critical" DataType="System.Int32"
            HeaderText="Critical" SortExpression="Critical" UniqueName="Critical">
            <EditItemTemplate>
                <asp:TextBox ID="CriticalTextBox" runat="server" Text='<%# Bind("Critical") %>'></asp:TextBox>
            </EditItemTemplate>
            <ItemTemplate>
                <asp:CheckBox ID="CriticalCheckBox" runat="server" Checked='<%# Eval("Critical") %>' />
            </ItemTemplate>
            <FooterStyle Font-Bold="False" Font-Italic="False" Font-Overline="False"
                Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Center"
                Wrap="True" />
            <HeaderStyle Width="50px" Font-Bold="False" Font-Italic="False"
                Font-Overline="False" Font-Strikeout="False" Font-Underline="False"
                HorizontalAlign="Center" Wrap="True" />
            <ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False"
                Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Center"
                Wrap="True" />
        </telerik:GridTemplateColumn>
        <telerik:GridTemplateColumn DataField="Pass" DataType="System.Int32"
            HeaderText="Pass" SortExpression="Pass" UniqueName="Pass">
            <EditItemTemplate>
                <asp:TextBox ID="PassTextBox" runat="server" Text='<%# Bind("Pass") %>'></asp:TextBox>
            </EditItemTemplate>
            <ItemTemplate>
                <asp:RadioButton ID="PassRadioButton" GroupName="PassFailNA" runat="server" Checked='<%# Eval("Pass") %>' />
            </ItemTemplate>
            <FooterStyle Font-Bold="False" Font-Italic="False" Font-Overline="False"
                Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Center"
                Wrap="True" />
            <HeaderStyle Width="50px" Font-Bold="False" Font-Italic="False"
                Font-Overline="False" Font-Strikeout="False" Font-Underline="False"
                HorizontalAlign="Center" Wrap="True" />
            <ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False"
                Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Center"
                Wrap="True" />
        </telerik:GridTemplateColumn>
        <telerik:GridTemplateColumn DataField="Fail" DataType="System.Int32"
            HeaderText="Fail" SortExpression="Fail" UniqueName="Fail">
            <EditItemTemplate>
                <asp:TextBox ID="FailTextBox" runat="server" Text='<%# Bind("Fail") %>'></asp:TextBox>
            </EditItemTemplate>
            <ItemTemplate>
                <asp:RadioButton ID="FailRadioButton" GroupName="PassFailNA" runat="server" Checked='<%# Eval("Fail") %>' />
            </ItemTemplate>
            <FooterStyle Font-Bold="False" Font-Italic="False" Font-Overline="False"
                Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Center"
                Wrap="True" />
            <HeaderStyle Width="50px" Font-Bold="False" Font-Italic="False"
                Font-Overline="False" Font-Strikeout="False" Font-Underline="False"
                HorizontalAlign="Center" Wrap="True" />
            <ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False"
                Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Center"
                Wrap="True" />
        </telerik:GridTemplateColumn>
        <telerik:GridTemplateColumn DataField="NA" DataType="System.Int32"
            HeaderText="NA" SortExpression="NA" UniqueName="NA">
            <EditItemTemplate>
                <asp:TextBox ID="NATextBox" runat="server" Text='<%# Bind("NA") %>'></asp:TextBox>
            </EditItemTemplate>
            <ItemTemplate>
                <asp:RadioButton ID="NARadioButton" GroupName="PassFailNA" runat="server" Checked='<%# Eval("NA") %>' />
            </ItemTemplate>
            <FooterStyle Font-Bold="False" Font-Italic="False" Font-Overline="False"
                Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Center"
                Wrap="True" />
            <HeaderStyle Width="50px" Font-Bold="False" Font-Italic="False"
                Font-Overline="False" Font-Strikeout="False" Font-Underline="False"
                HorizontalAlign="Center" Wrap="True" />
            <ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False"
                Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Center"
                Wrap="True" />
        </telerik:GridTemplateColumn>
        <telerik:GridTemplateColumn DataField="Notes" HeaderText="Notes"
            SortExpression="Notes" UniqueName="Notes">
            <EditItemTemplate>
                <asp:TextBox ID="NotesTextBox" runat="server" Text='<%# Bind("Notes") %>'></asp:TextBox>
            </EditItemTemplate>
            <ItemTemplate>
                <asp:TextBox ID="NotesTextBox" runat="server" TextMode="Multiline"  Rows="2" Columns="50" Text='<%# Bind("Notes") %>'></asp:TextBox>
            </ItemTemplate>
        </telerik:GridTemplateColumn>
    </Columns>
</MasterTableView>
    </telerik:RadGrid>
    <asp:Button ID="SaveButton" runat="server" Text="Save" />


Jayesh Goyani
Top achievements
Rank 2
 answered on 02 Jul 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?